Class AdvancedMessageFormat.CompositePart

    • Field Detail

      • conditional

        private boolean conditional
      • hasSections

        private boolean hasSections
    • Constructor Detail

      • CompositePart

        public CompositePart​(boolean conditional)
    • Method Detail

      • newSection

        public void newSection()
      • write

        public void write​(java.lang.StringBuffer sb,
                          java.util.Map<java.lang.String,​java.lang.Object> params)
        Description copied from interface: AdvancedMessageFormat.Part
        Writes the formatted part to a string buffer.
        Specified by:
        write in interface AdvancedMessageFormat.Part
        Parameters:
        sb - the target string buffer
        params - the parameters to work with
      • isGenerated

        public boolean isGenerated​(java.util.Map<java.lang.String,​java.lang.Object> params)
        Description copied from interface: AdvancedMessageFormat.Part
        Indicates whether there is any content that is generated by this message part.
        Specified by:
        isGenerated in interface AdvancedMessageFormat.Part
        Parameters:
        params - the parameters to work with
        Returns:
        true if the part has content
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object