public class StringOptionsChoice extends AbstractReflectedChoice implements MultipleChoice
The GNU Lesser General Public License for details.| Modifier and Type | Field and Description |
|---|---|
private String[] |
array
The options that we are presenting the user with
|
| Constructor and Description |
|---|
StringOptionsChoice() |
| Modifier and Type | Method and Description |
|---|---|
Object |
convertToObject(String orig)
Convert from a stored string to an object to use with reflection
|
String |
convertToString(Object orig)
Convert from a reflection return value to a String for storage
|
Class<String> |
getConversionClass()
The class that this Choice works on.
|
String[] |
getOptions()
The available alternative values to be presented as options to the user
where the user interface allows presentation of alternatives.
|
void |
init(org.jdom2.Element option,
ResourceBundle configResources)
String value to associate with the name (key)
|
getFullPath, getHelpText, getKey, getString, getType, isHidden, isIgnored, isSaveable, requiresRestart, setFullPath, setHelpText, setStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFullPath, getHelpText, getKey, getString, getType, isHidden, isIgnored, isSaveable, requiresRestart, setFullPath, setHelpText, setStringprivate String[] array
public void init(org.jdom2.Element option,
ResourceBundle configResources)
throws StartupException
Choiceinit in interface Choiceinit in class AbstractReflectedChoiceoption - the optionconfigResources - the resource bundle to loadStartupException - if startup is not possiblepublic String[] getOptions()
MultipleChoicegetOptions in interface MultipleChoicepublic Class<String> getConversionClass()
ChoicegetConversionClass in interface Choicepublic String convertToString(Object orig)
AbstractReflectedChoiceconvertToString in class AbstractReflectedChoiceorig - the object to be converted to a stringpublic Object convertToObject(String orig)
AbstractReflectedChoiceconvertToObject in class AbstractReflectedChoiceorig - the marshaled representation of the object