public static class MessageFormatUtils.StringChunk extends MessageFormatUtils.TemplateChunk
Constructor and Description |
---|
StringChunk() |
StringChunk(String str) |
Modifier and Type | Method and Description |
---|---|
void |
accept(MessageFormatUtils.TemplateChunkVisitor visitor) |
void |
append(String str) |
protected String |
getStringValue(boolean quote)
Returns the optionally quoted string value of this chunk as represented
in a MessgeFormat string.
|
boolean |
isLiteral() |
String |
toString() |
getAsMessageFormatString, getString, quoteMessageFormatChars, quoteMessageFormatChars
public StringChunk()
public StringChunk(String str)
public void accept(MessageFormatUtils.TemplateChunkVisitor visitor) throws MessageFormatUtils.VisitorAbortException
accept
in class MessageFormatUtils.TemplateChunk
MessageFormatUtils.VisitorAbortException
public void append(String str)
public boolean isLiteral()
isLiteral
in class MessageFormatUtils.TemplateChunk
protected String getStringValue(boolean quote)
MessageFormatUtils.TemplateChunk
getStringValue
in class MessageFormatUtils.TemplateChunk
quote
- true if the result should be quotedCopyright © 2018. All rights reserved.