public class SkySysConfigKey extends OptionConfigKey<SkySys>
Constructor and Description |
---|
SkySysConfigKey(ConfigMeta meta,
boolean includeNull,
boolean isViewComparison)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getXmlDescription(SkySys sys)
Returns a description in XML of the given option value.
|
boolean |
isViewComparison()
Indicates whether this key is used to select a sky system that
will be compared with the view system of the plot itself.
|
SkySys |
stringToValue(String str)
Calls
valueToString repeatedly looking for a match. |
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, boolean isViewComparison)
The isViewComparison
parameter does not affect
the behaviour of this key itself, but may be used by external code
that needs to know whether values configured here are resolved
with reference to the sky system applying to the plot as a whole.
meta
- config key metadataincludeNull
- true iff null is a permitted optionisViewComparison
- true iff this key is used to configure
a system that will be compared with
the plot view systempublic 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(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 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 keypublic boolean isViewComparison()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.