org.incava.jagol
Class Option
public abstract class Option
extends java.lang.Object
Base class of all options.
Option(String longName, String description)
|
String | getDescription() - Returns the description.
|
String | getLongName() - Returns the long option name.
|
char | getShortName() - Returns the short option name.
|
abstract boolean | set(String arg, List args) - Sets from a list of command-line arguments.
|
void | setLongName(String longName)
|
void | setShortName(char shortName)
|
abstract void | setValue(String value) - Sets the value from the string, for this option type.
|
longName
protected String longName
shortName
protected char shortName
Option
public Option(String longName,
String description)
getDescription
public String getDescription()
Returns the description.
getLongName
public String getLongName()
Returns the long option name.
getShortName
public char getShortName()
Returns the short option name.
set
public abstract boolean set(String arg,
List args)
throws OptionException
Sets from a list of command-line arguments. Returns whether this option
could be set from the current head of the list.
setLongName
public void setLongName(String longName)
setShortName
public void setShortName(char shortName)
setValue
public abstract void setValue(String value)
throws InvalidTypeException
Sets the value from the string, for this option type.