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, toString
public BooleanConfigKey(ConfigMeta meta, boolean dflt)
meta
- metadatadflt
- default valuepublic BooleanConfigKey(ConfigMeta meta)
meta
- metadatapublic java.lang.Boolean stringToValue(java.lang.String txt) throws ConfigException
ConfigKey
stringToValue
in class ConfigKey<java.lang.Boolean>
txt
- string representation of valueConfigException
public java.lang.String valueToString(java.lang.Boolean value)
ConfigKey
stringToValue(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()
ConfigKey
createSpecifier
in class ConfigKey<java.lang.Boolean>
Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.