public class ListOption extends AbstractOption
Modifier and Type | Field and Description |
---|---|
protected Option[] |
currentList |
protected Option[] |
defaultList |
protected Option |
expectedType |
protected char |
separatorChar |
cliChar, illegalNameCharacters, name, purpose
Constructor and Description |
---|
ListOption(String name,
char cliChar,
String purpose,
Option expectedType,
Option[] defaultList,
char separatorChar) |
Modifier and Type | Method and Description |
---|---|
static Option[] |
cliStringToOptionArray(String s,
char separator,
Option expectedType) |
String |
getDefaultCLIString()
Gets the Command Line Interface text
|
Option[] |
getList() |
String |
getValueAsCLIString()
Gets the value of a Command Line Interface text as a string
|
static String |
optionArrayToCLIString(Option[] os,
char separator) |
void |
setList(Option[] optList) |
void |
setValueViaCLIString(String s)
Sets value of this option via the Command Line Interface text
|
copy, getCLIChar, getDescription, getEditComponent, getName, getPurpose, getStateString, nameIsLegal, resetToDefault
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
measureByteSize
protected Option[] currentList
protected Option expectedType
protected Option[] defaultList
protected char separatorChar
public void setList(Option[] optList)
public Option[] getList()
public String getDefaultCLIString()
Option
public String getValueAsCLIString()
Option
public void setValueViaCLIString(String s)
Option
s
- the Command Line Interface textpublic static Option[] cliStringToOptionArray(String s, char separator, Option expectedType)
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.