Class MessageFormatPart

java.lang.Object
org.jboss.logging.processor.validation.AbstractFormatPart
org.jboss.logging.processor.validation.MessageFormatPart
All Implemented Interfaces:
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

  • Field Details

    • originalFormat

      private final String originalFormat
    • position

      private final int position
    • index

      private int index
    • formatType

      private String formatType
    • formatStyle

      private String formatStyle
  • Constructor Details

    • MessageFormatPart

      private MessageFormatPart(int position, String format)
  • Method Details

    • of

      public static MessageFormatPart of(int position, 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 String part()
      Description copied from interface: FormatPart
      The part of the format.
      Returns:
      the part of the format.
    • init

      private void init(String formatText)