
public abstract static class MessageFormatUtils.TemplateChunk extends Object
| Constructor and Description | 
|---|
TemplateChunk()  | 
| Modifier and Type | Method and Description | 
|---|---|
abstract void | 
accept(MessageFormatUtils.TemplateChunkVisitor visitor)  | 
String | 
getAsMessageFormatString()
Returns the string as this chunk would be represented in a MessageFormat
 template, with any required quoting such that reparsing this value would
 produce an equivalent (note, not identical) parse. 
 | 
String | 
getString()
Returns the string as this chunk would be represented in a MessageFormat
 template, with any quoting removed. 
 | 
protected abstract String | 
getStringValue(boolean quote)
Returns the optionally quoted string value of this chunk as represented
 in a MessgeFormat string. 
 | 
boolean | 
isLiteral()  | 
protected static String | 
quoteMessageFormatChars(String str)
Quote a string in the MessageFormat-style. 
 | 
protected static String | 
quoteMessageFormatChars(String str,
                       boolean quote)
Possibly quote a string in the MessageFormat-style. 
 | 
protected static String quoteMessageFormatChars(String str)
str - string to quote, must not be nullprotected static String quoteMessageFormatChars(String str, boolean quote)
str - public abstract void accept(MessageFormatUtils.TemplateChunkVisitor visitor) throws MessageFormatUtils.VisitorAbortException
public String getAsMessageFormatString()
public String getString()
public boolean isLiteral()
protected abstract String getStringValue(boolean quote)
quote - true if the result should be quotedCopyright © 2018. All rights reserved.