org.incava.jagol
Class BooleanOption
public class BooleanOption
Represents an option that is an boolean.
Boolean | getValue() - Returns the value.
|
boolean | set(String arg, List args) - Sets from a list of command-line arguments.
|
void | setValue(Boolean value) - Sets the value.
|
void | setValue(String value) - Sets the value from the string, for a boolean type.
|
String | toString()
|
BooleanOption
public BooleanOption(String longName,
String description)
BooleanOption
public BooleanOption(String longName,
String description,
Boolean value)
getValue
public Boolean getValue()
Returns the value. This is null if it has not been set.
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.
- set in interface Option
setValue
public void setValue(Boolean value)
Sets the value.
toString
public String toString()