org.apache.velocity.tools.generic
public class FormatConfig extends LocaleConfig
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_FORMAT
The default format to be used when none is specified.
|
private java.lang.String |
format |
static java.lang.String |
FORMAT_KEY
The key used for specifying a default format via tool configuration.
|
DEFAULT_LOCALE
LOCK_CONFIG_KEY, OLD_LOCK_CONFIG_KEY, SAFE_MODE_KEY
Constructor and Description |
---|
FormatConfig() |
Modifier and Type | Method and Description |
---|---|
protected void |
configure(ValueParser values)
Does the actual configuration.
|
java.lang.String |
getFormat()
This returns the configured default format for this tool.
|
protected void |
setFormat(java.lang.String format)
Sets the default format for this instance.
|
getLocale, setLocale
configure, isConfigLocked, isSafeMode, setLockConfig, setSafeMode
public static final java.lang.String DEFAULT_FORMAT
public static final java.lang.String FORMAT_KEY
private java.lang.String format
protected void configure(ValueParser values)
configure
in class LocaleConfig
public java.lang.String getFormat()
String
protected void setFormat(java.lang.String format)
Copyright (c) 2003-2007 Apache Software Foundation