public class TimeConfigKey extends ConfigKey<Double>
TimeMapper, that is unix seconds.| Modifier and Type | Field and Description |
|---|---|
static String |
FORMAT_XML
XML <p> element describing the text input format.
|
| Constructor and Description |
|---|
TimeConfigKey(ConfigMeta meta)
Constructs a key with no default value.
|
TimeConfigKey(ConfigMeta meta,
double dfltUnixSeconds)
Constructs a key with a given default value.
|
| Modifier and Type | Method and Description |
|---|---|
Specifier<Double> |
createSpecifier()
Constructs a graphical control with which the user can
specify a suitable value for association with this key.
|
Double |
stringToValue(String txt)
Decodes a string value to the value type of this key.
|
String |
valueToString(Double value)
Reports a value as a string.
|
cast, getDefaultValue, getMeta, getValueClass, toStringpublic static final String FORMAT_XML
public TimeConfigKey(ConfigMeta meta)
meta - metadatapublic TimeConfigKey(ConfigMeta meta, double dfltUnixSeconds)
meta - metadatadfltUnixSeconds - default value as seconds since Unix epochpublic String valueToString(Double value)
ConfigKeystringToValue(valueToString(v)).equals(v).
A null value, if permitted, should be represented as an empty string.valueToString in class ConfigKey<Double>value - possible value associated with this keypublic Double stringToValue(String txt) throws ConfigException
ConfigKeystringToValue in class ConfigKey<Double>txt - string representation of valueConfigExceptionCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.