public static class MessageFormatUtils.ArgumentChunk extends MessageFormatUtils.TemplateChunk
Constructor and Description |
---|
ArgumentChunk(int argNumber,
Map<String,String> listArgs,
String format,
Map<String,String> formatArgs,
String subformat) |
Modifier and Type | Method and Description |
---|---|
void |
accept(MessageFormatUtils.TemplateChunkVisitor visitor) |
int |
getArgumentNumber()
Get the argument number this chunk refers to.
|
String |
getFormat() |
Map<String,String> |
getFormatArgs() |
Map<String,String> |
getListArgs() |
protected String |
getStringValue(boolean quote)
Returns the optionally quoted string value of this chunk as represented
in a MessgeFormat string.
|
String |
getSubFormat() |
boolean |
isList() |
String |
toString() |
getAsMessageFormatString, getString, isLiteral, quoteMessageFormatChars, quoteMessageFormatChars
public void accept(MessageFormatUtils.TemplateChunkVisitor visitor) throws MessageFormatUtils.VisitorAbortException
accept
in class MessageFormatUtils.TemplateChunk
MessageFormatUtils.VisitorAbortException
public int getArgumentNumber()
public String getFormat()
public String getSubFormat()
public boolean isList()
protected String getStringValue(boolean quote)
MessageFormatUtils.TemplateChunk
getStringValue
in class MessageFormatUtils.TemplateChunk
quote
- true if the result should be quotedCopyright © 2016. All rights reserved.