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, setOptionUsagecast, getDefaultValue, getMeta, getValueClass, toStringpublic SkySysConfigKey(ConfigMeta meta, boolean includeNull)
meta - config key metadataincludeNull - true iff null is a permitted optionpublic java.lang.String valueToString(SkySys sys)
OptionConfigKeytoString 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
OptionConfigKeyvalueToString 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 valueConfigExceptionpublic java.lang.String getXmlDescription(SkySys sys)
OptionConfigKeyOptionConfigKey.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.