com.jeantessier.commandline
Class ToggleSwitch
java.lang.Object
|
+--com.jeantessier.commandline.CommandLineSwitchBase
|
+--com.jeantessier.commandline.ToggleSwitch
- All Implemented Interfaces:
- CommandLineSwitch, Visitable
- public class ToggleSwitch
- extends CommandLineSwitchBase
The switch be followed by a value. It acts as a boolean, false if
absent or true if present on the command-line.
Method Summary |
void |
accept(Visitor visitor)
|
int |
parse(java.lang.String name,
java.lang.String value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ToggleSwitch
public ToggleSwitch()
ToggleSwitch
public ToggleSwitch(boolean defaultValue)
ToggleSwitch
public ToggleSwitch(boolean defaultValue,
boolean mandatory)
parse
public int parse(java.lang.String name,
java.lang.String value)
throws CommandLineException
accept
public void accept(Visitor visitor)
Dependency Finder 1.1.0 © 2001-2004 Jean Tessier.