public class FormatConfig extends LocaleConfig
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_FORMAT
The default format to be used when none is specified.
|
static String |
FORMAT_KEY
The key used for specifying a default format via tool configuration.
|
DEFAULT_LOCALELOCK_CONFIG_KEY, log, LOGGER_NAME_KEY, SAFE_MODE_KEY, USE_CLASS_LOGGER_KEY| Constructor and Description |
|---|
FormatConfig() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(ValueParser values)
Does the actual configuration.
|
String |
getFormat()
This returns the configured default format for this tool.
|
protected void |
setFormat(String format)
Sets the default format for this instance.
|
getLocale, setLocale, toLocaleconfigure, getLog, initLogger, isConfigLocked, isSafeMode, setLockConfig, setSafeModepublic static final String DEFAULT_FORMAT
public static final String FORMAT_KEY
protected void configure(ValueParser values)
configure in class LocaleConfigvalues - configuration valuespublic String getFormat()
Stringprotected void setFormat(String format)
format - default formatCopyright © 2002–2018 The Apache Software Foundation. All rights reserved.