Class MessageFormatPart

  • All Implemented Interfaces:
    java.lang.Comparable<FormatPart>, FormatPart

    class MessageFormatPart
    extends AbstractFormatPart
    The parameter portion of the a MessageFormat.

    **Note: Currently the format type and format style are not validated

    Date: 14.06.2011

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private MessageFormatPart​(int position, java.lang.String format)  
    • Field Detail

      • originalFormat

        private final java.lang.String originalFormat
      • position

        private final int position
      • index

        private int index
      • formatType

        private java.lang.String formatType
      • formatStyle

        private java.lang.String formatStyle
    • Constructor Detail

      • MessageFormatPart

        private MessageFormatPart​(int position,
                                  java.lang.String format)
    • Method Detail

      • of

        public static MessageFormatPart of​(int position,
                                           java.lang.String format)
      • index

        public int index()
        Description copied from interface: FormatPart
        The parameter index. For default strings (non-parameters) the value is -2.
        Returns:
        the index.
      • position

        public int position()
        Description copied from interface: FormatPart
        The position for the part.
        Returns:
        the position.
      • part

        public java.lang.String part()
        Description copied from interface: FormatPart
        The part of the format.
        Returns:
        the part of the format.
      • init

        private void init​(java.lang.String formatText)