public class BooleanConfigKey extends ConfigKey<java.lang.Boolean>
| Constructor and Description |
|---|
BooleanConfigKey(ConfigMeta meta)
Constructs a key with a false default.
|
BooleanConfigKey(ConfigMeta meta,
boolean dflt)
Constructs a key with explicit default.
|
| Modifier and Type | Method and Description |
|---|---|
Specifier<java.lang.Boolean> |
createSpecifier()
Constructs a graphical control with which the user can
specify a suitable value for association with this key.
|
java.lang.Boolean |
stringToValue(java.lang.String txt)
Decodes a string value to the value type of this key.
|
java.lang.String |
valueToString(java.lang.Boolean value)
Reports a value as a string.
|
cast, getDefaultValue, getMeta, getValueClass, toStringpublic BooleanConfigKey(ConfigMeta meta, boolean dflt)
meta - metadatadflt - default valuepublic BooleanConfigKey(ConfigMeta meta)
meta - metadatapublic java.lang.Boolean stringToValue(java.lang.String txt)
throws ConfigException
ConfigKeystringToValue in class ConfigKey<java.lang.Boolean>txt - string representation of valueConfigExceptionpublic java.lang.String valueToString(java.lang.Boolean value)
ConfigKeystringToValue(valueToString(v)).equals(v).
A null value, if permitted, should be represented as an empty string.valueToString in class ConfigKey<java.lang.Boolean>value - possible value associated with this keypublic Specifier<java.lang.Boolean> createSpecifier()
ConfigKeycreateSpecifier in class ConfigKey<java.lang.Boolean>Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.