public class OgnlTextFormat extends AbstractOgnlFormat implements TextFormat
Modifier and Type | Field and Description |
---|---|
static String |
copyright |
protected String |
encoding |
protected Locale |
locale |
static org.slf4j.Logger |
logger |
protected boolean |
url |
formatString, ognlExpressions, parsedOgnlExpressions, pattern
Constructor and Description |
---|
OgnlTextFormat(String ognlFormat) |
Modifier and Type | Method and Description |
---|---|
static OgnlTextFormat |
create(String ognlFormat) |
protected String |
escapeText(String text) |
String |
format(Object root) |
static String |
format(String expression,
Object root) |
String |
getEncoding() |
Locale |
getLocale() |
boolean |
isUrl() |
protected void |
replaceOgnlExpression(StringBuilder sb,
int index,
String ognlExpression) |
void |
setEncoding(String encoding) |
void |
setLocale(Locale locale) |
void |
setUrl(boolean url) |
evaluateOgnlExpressions, evaluateOneOgnlExpression, getFormatString, getOgnlExpressions, getParsedOgnlExpressions
public static final String copyright
protected boolean url
protected String encoding
protected Locale locale
public static final org.slf4j.Logger logger
public OgnlTextFormat(String ognlFormat)
public static OgnlTextFormat create(String ognlFormat)
public String format(Object root)
format
in interface TextFormat
protected String escapeText(String text)
escapeText
in class AbstractOgnlFormat
protected void replaceOgnlExpression(StringBuilder sb, int index, String ognlExpression)
replaceOgnlExpression
in class AbstractOgnlFormat
public boolean isUrl()
public void setUrl(boolean url)
public String getEncoding()
public void setEncoding(String encoding)
public Locale getLocale()
public void setLocale(Locale locale)