public class StyleParameter<T> extends ChoiceParameter<T>
| Constructor and Description |
|---|
StyleParameter(String name,
Class<T> clazz)
Constructs a StyleParameter without initialising any options.
|
StyleParameter(String name,
T[] options)
Constructs a StyleParameter with a given list of options.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getOptionList()
Returns a formatted XML string giving an unordered list of the options
for this parameter.
|
String |
getUsage()
Returns a usage message.
|
void |
setUsage(String usage)
Sets a usage string for this parameter.
|
String |
stringifyOption(T option)
Determines how an option will be represented as a string value of
this parameter if no name has explicitly been supplied.
|
objectToString, setDefaultOption, stringToObjectaddOption, addOption, choiceToString, clearOptions, getName, getOption, getOptionNames, getOptions, getOptionValueList, stringToChoiceclearValue, getDescription, getName, getPosition, getPreferExplicit, getPrompt, getStringDefault, getValueClass, isNullPermitted, objectValue, setDescription, setDescription, setName, setNullPermitted, setPosition, setPreferExplicit, setPrompt, setStringDefault, setValue, setValueFromObject, setValueFromString, stringValue, toArray, toStringpublic StyleParameter(String name, T[] options)
name - parameter nameoptions - list of optionspublic void setUsage(String usage)
ParameterParameter class uses the string "<value>"
as the default usage string.setUsage in class ChoiceParameter<T>usage - usage stringpublic String getUsage()
ChoiceParameterChoiceParameter.setUsage(java.lang.String), this will return a usage message based on
the list of known options.getUsage in class ChoiceParameter<T>Parameter.setUsage(java.lang.String)public String getOptionList()
public String stringifyOption(T option)
AbstractChoiceParameterString.valueOf(option),
but this may be overrridden.stringifyOption in class AbstractChoiceParameter<T,T>option - option valueCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.