org.incava.jagol

Class NonBooleanOption

Known Direct Subclasses:
DoubleOption, FloatOption, IntegerOption, StringOption

public abstract class NonBooleanOption
extends Option

Base class of all options, except for booleans.

Field Summary

Fields inherited from class org.incava.jagol.Option

longName, shortName

Constructor Summary

NonBooleanOption(String longName, String description)

Method Summary

protected abstract String
getType()
Returns the option type.
boolean
set(String arg, List args)
Sets from a list of command-line arguments.

Methods inherited from class org.incava.jagol.Option

getDescription, getLongName, getShortName, set, setLongName, setShortName, setValue

Constructor Details

NonBooleanOption

public NonBooleanOption(String longName,
                        String description)

Method Details

getType

protected abstract String getType()
Returns the option type.

set

public 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.
Overrides:
set in interface Option