org.incava.jagol

Class Option

public abstract class Option extends Object

Base class of all options.
Field Summary
protected StringlongName
protected charshortName
Constructor Summary
Option(String longName, String description)
Method Summary
StringgetDescription()
Returns the description.
StringgetLongName()
Returns the long option name.
chargetShortName()
Returns the short option name.
abstract booleanset(String arg, List args)
Sets from a list of command-line arguments.
voidsetLongName(String longName)
voidsetShortName(char shortName)
abstract voidsetValue(String value)
Sets the value from the string, for this option type.

Field Detail

longName

protected String longName

shortName

protected char shortName

Constructor Detail

Option

public Option(String longName, String description)

Method Detail

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)
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)
Sets the value from the string, for this option type.