Constructor and Description |
---|
StringConfigKey(ConfigMeta meta,
String dflt)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Specifier<String> |
createSpecifier()
Constructs a graphical control with which the user can
specify a suitable value for association with this key.
|
String |
stringToValue(String txt)
Decodes a string value to the value type of this key.
|
String |
valueToString(String value)
Reports a value as a string.
|
cast, getDefaultValue, getMeta, getValueClass, toString
public StringConfigKey(ConfigMeta meta, String dflt)
meta
- metadatadflt
- default valuepublic String stringToValue(String txt)
ConfigKey
stringToValue
in class ConfigKey<String>
txt
- string representation of valuepublic String valueToString(String value)
ConfigKey
stringToValue(valueToString(v)).equals(v)
.
A null value, if permitted, should be represented as an empty string.valueToString
in class ConfigKey<String>
value
- possible value associated with this keyCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.