Package com.github.javacliparser
Class ListOption
- java.lang.Object
-
- com.github.javacliparser.AbstractOption
-
- com.github.javacliparser.ListOption
-
- All Implemented Interfaces:
Option
,Serializable
public class ListOption extends AbstractOption
List option.- Version:
- $Revision: 7 $
- Author:
- Richard Kirkby (rkirkby@cs.waikato.ac.nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Option[]
currentList
protected Option[]
defaultList
protected Option
expectedType
protected char
separatorChar
-
Fields inherited from class com.github.javacliparser.AbstractOption
cliChar, illegalNameCharacters, name, purpose
-
-
Constructor Summary
Constructors Constructor Description ListOption(String name, char cliChar, String purpose, Option expectedType, Option[] defaultList, char separatorChar)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Option[]
cliStringToOptionArray(String s, char separator, Option expectedType)
String
getDefaultCLIString()
Gets the Command Line Interface textOption[]
getList()
String
getValueAsCLIString()
Gets the value of a Command Line Interface text as a stringstatic 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-
Methods inherited from class com.github.javacliparser.AbstractOption
copy, getCLIChar, getName, getPurpose, getStateString, nameIsLegal, resetToDefault
-
-
-
-
Method Detail
-
setList
public void setList(Option[] optList)
-
getList
public Option[] getList()
-
getDefaultCLIString
public String getDefaultCLIString()
Description copied from interface:Option
Gets the Command Line Interface text- Returns:
- the Command Line Interface text
-
getValueAsCLIString
public String getValueAsCLIString()
Description copied from interface:Option
Gets the value of a Command Line Interface text as a string- Returns:
- the string with the value of the Command Line Interface text
-
setValueViaCLIString
public void setValueViaCLIString(String s)
Description copied from interface:Option
Sets value of this option via the Command Line Interface text- Parameters:
s
- the Command Line Interface text
-
cliStringToOptionArray
public static Option[] cliStringToOptionArray(String s, char separator, Option expectedType)
-
-