public class LocaleConfig extends SafeConfig
Locale to be configured.| Modifier and Type | Field and Description |
|---|---|
static Locale |
DEFAULT_LOCALE
The default
Locale to be used when none is specified. |
LOCK_CONFIG_KEY, log, LOGGER_NAME_KEY, SAFE_MODE_KEY, USE_CLASS_LOGGER_KEY| Constructor and Description |
|---|
LocaleConfig() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(ValueParser values)
Does the actual configuration.
|
Locale |
getLocale()
This returns the configured default
Locale for this tool. |
protected void |
setLocale(Locale locale)
Sets the default locale for this instance.
|
Locale |
toLocale(Object value) |
configure, getLog, initLogger, isConfigLocked, isSafeMode, setLockConfig, setSafeModeprotected void configure(ValueParser values)
configure in class SafeConfigvalues - configuration valuespublic Locale getLocale()
Locale for this tool.Localeprotected void setLocale(Locale locale)
locale - default locale to useCopyright © 2002–2021 The Apache Software Foundation. All rights reserved.