Class MessageFormatPart
- java.lang.Object
-
- org.jboss.logging.processor.validation.AbstractFormatPart
-
- org.jboss.logging.processor.validation.MessageFormatPart
-
- All Implemented Interfaces:
java.lang.Comparable<FormatPart>,FormatPart
class MessageFormatPart extends AbstractFormatPart
The parameter portion of the aMessageFormat. **Note: Currently the format type and format style are not validated Date: 14.06.2011
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringformatStyleprivate java.lang.StringformatTypeprivate intindexprivate java.lang.StringoriginalFormatprivate intposition-
Fields inherited from interface org.jboss.logging.processor.validation.FormatPart
STRING
-
-
Constructor Summary
Constructors Modifier Constructor Description privateMessageFormatPart(int position, java.lang.String format)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intindex()The parameter index.private voidinit(java.lang.String formatText)static MessageFormatPartof(int position, java.lang.String format)java.lang.Stringpart()The part of the format.intposition()The position for the part.-
Methods inherited from class org.jboss.logging.processor.validation.AbstractFormatPart
compareTo, toString
-
-
-
-
Method Detail
-
of
public static MessageFormatPart of(int position, java.lang.String format)
-
index
public int index()
Description copied from interface:FormatPartThe parameter index. For default strings (non-parameters) the value is-2.- Returns:
- the index.
-
position
public int position()
Description copied from interface:FormatPartThe position for the part.- Returns:
- the position.
-
part
public java.lang.String part()
Description copied from interface:FormatPartThe part of the format.- Returns:
- the part of the format.
-
init
private void init(java.lang.String formatText)
-
-