public class LocaleConfig extends SafeConfig
Locale
to be configured.Modifier and Type | Field and Description |
---|---|
static java.util.Locale |
DEFAULT_LOCALE
The default
Locale to be used when none is specified. |
private java.util.Locale |
locale |
LOCK_CONFIG_KEY, OLD_LOCK_CONFIG_KEY, SAFE_MODE_KEY
Constructor and Description |
---|
LocaleConfig() |
Modifier and Type | Method and Description |
---|---|
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.
|
configure, isConfigLocked, isSafeMode, setLockConfig, setSafeMode
public static final java.util.Locale DEFAULT_LOCALE
Locale
to be used when none is specified.private java.util.Locale locale
protected void configure(ValueParser values)
configure
in class SafeConfig
public java.util.Locale getLocale()
Locale
for this tool.Locale
protected void setLocale(java.util.Locale locale)
Copyright (c) 2003-2007 Apache Software Foundation