public class SkySysConfigKey extends OptionConfigKey<SkySys>
Constructor and Description |
---|
SkySysConfigKey(ConfigMeta meta,
boolean includeNull)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getXmlDescription(SkySys sys)
Returns a description in XML of the given option value.
|
SkySys |
stringToValue(java.lang.String str)
Calls
valueToString repeatedly looking for a match. |
java.lang.String |
valueToString(SkySys sys)
Invokes the
toString method of the supplied option. |
addOptionsXml, createSpecifier, getOptions, getOptionsXml, setOptionUsage
cast, getDefaultValue, getMeta, getValueClass, toString
public SkySysConfigKey(ConfigMeta meta, boolean includeNull)
meta
- config key metadataincludeNull
- true iff null is a permitted optionpublic java.lang.String valueToString(SkySys sys)
OptionConfigKey
toString
method of the supplied option.
May be overridden.valueToString
in class OptionConfigKey<SkySys>
sys
- possible value associated with this keypublic SkySys stringToValue(java.lang.String str) throws ConfigException
OptionConfigKey
valueToString
repeatedly looking for a match.
This means that if valueToString
is overridden it
is usually not necessary to override this method.stringToValue
in class OptionConfigKey<SkySys>
str
- string representation of valueConfigException
public java.lang.String getXmlDescription(SkySys sys)
OptionConfigKey
OptionConfigKey.valueToString(T)
,
is used by the OptionConfigKey.getOptionsXml()
method to assemble
a described list of the options.getXmlDescription
in class OptionConfigKey<SkySys>
sys
- possible value of this keyCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.