类 FormatConfig
java.lang.Object
org.apache.velocity.tools.generic.SafeConfig
org.apache.velocity.tools.generic.LocaleConfig
org.apache.velocity.tools.generic.FormatConfig
- 直接已知子类:
BrowserTool
,DateTool
,MathTool
,NumberTool
Implements common logic and constants for tools which allow their
default format to be configured.
- 从以下版本开始:
- VelocityTools 2.0
- 作者:
- Nathan Bubna
-
字段概要
字段修饰符和类型字段说明static final String
The default format to be used when none is specified.private String
static final String
The key used for specifying a default format via tool configuration.从类继承的字段 org.apache.velocity.tools.generic.LocaleConfig
DEFAULT_LOCALE
从类继承的字段 org.apache.velocity.tools.generic.SafeConfig
LOCK_CONFIG_KEY, OLD_LOCK_CONFIG_KEY, SAFE_MODE_KEY
-
构造器概要
构造器 -
方法概要
从类继承的方法 org.apache.velocity.tools.generic.LocaleConfig
getLocale, setLocale
从类继承的方法 org.apache.velocity.tools.generic.SafeConfig
configure, isConfigLocked, isSafeMode, setLockConfig, setSafeMode
-
字段详细资料
-
构造器详细资料
-
FormatConfig
public FormatConfig()
-
-
方法详细资料
-
configure
Does the actual configuration. This is protected, so subclasses may share the same ValueParser and call configure at any time, while preventing templates from doing so when configure(Map) is locked.- 覆盖:
configure
在类中LocaleConfig
-
getFormat
This returns the configured default format for this tool.- 返回:
- the default
String
-
setFormat
Sets the default format for this instance.
-