org.incava.jagol

Class BooleanOption

public class BooleanOption extends Option

Represents an option that is an boolean.
Constructor Summary
BooleanOption(String longName, String description)
BooleanOption(String longName, String description, Boolean value)
Method Summary
BooleangetValue()
Returns the value.
booleanset(String arg, List args)
Sets from a list of command-line arguments.
voidsetValue(Boolean value)
Sets the value.
voidsetValue(String value)
Sets the value from the string, for a boolean type.
StringtoString()

Constructor Detail

BooleanOption

public BooleanOption(String longName, String description)

BooleanOption

public BooleanOption(String longName, String description, Boolean value)

Method Detail

getValue

public Boolean getValue()
Returns the value. This is null if it has not been set.

set

public 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.

setValue

public void setValue(Boolean value)
Sets the value.

setValue

public void setValue(String value)
Sets the value from the string, for a boolean type.

toString

public String toString()