com.jeantessier.commandline
Class OptionalValueSwitch
java.lang.Object
|
+--com.jeantessier.commandline.CommandLineSwitchBase
|
+--com.jeantessier.commandline.OptionalValueSwitch
- All Implemented Interfaces:
- CommandLineSwitch, Visitable
- public class OptionalValueSwitch
- extends CommandLineSwitchBase
The switch can appear by itself or followed by a value. It can only
appear once 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 |
OptionalValueSwitch
public OptionalValueSwitch()
OptionalValueSwitch
public OptionalValueSwitch(java.lang.String defaultValue)
OptionalValueSwitch
public OptionalValueSwitch(boolean mandatory)
OptionalValueSwitch
public OptionalValueSwitch(java.lang.String 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.