|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.velocity.tools.generic.AbstractLockConfig
org.apache.velocity.tools.generic.LocaleConfig
public class LocaleConfig
Implements common logic and constants for tools which allow their
default Locale
to be configured.
Field Summary | |
---|---|
static java.util.Locale |
DEFAULT_LOCALE
The default Locale to be used when none is specified. |
private java.util.Locale |
locale
|
static java.lang.String |
LOCALE_KEY
The key used for specifying a default locale via tool configuration. |
Fields inherited from class org.apache.velocity.tools.generic.AbstractLockConfig |
---|
LOCK_CONFIG_KEY |
Constructor Summary | |
---|---|
LocaleConfig()
|
Method Summary | |
---|---|
protected void |
configure(ValueParser values)
Does the actual configuration. |
java.util.Locale |
getLocale()
This returns the configured default Locale for this tool. |
protected void |
setLocale(java.util.Locale locale)
Sets the default locale for this instance. |
Methods inherited from class org.apache.velocity.tools.generic.AbstractLockConfig |
---|
configure, isConfigLocked |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.util.Locale DEFAULT_LOCALE
Locale
to be used when none is specified.
public static final java.lang.String LOCALE_KEY
private java.util.Locale locale
Constructor Detail |
---|
public LocaleConfig()
Method Detail |
---|
protected void configure(ValueParser values)
configure
in class AbstractLockConfig
public java.util.Locale getLocale()
Locale
for this tool.
Locale
protected void setLocale(java.util.Locale locale)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |