com.jeantessier.commandline
Class SingleValueSwitch
java.lang.Object
|
+--com.jeantessier.commandline.CommandLineSwitchBase
|
+--com.jeantessier.commandline.SingleValueSwitch
- All Implemented Interfaces:
- CommandLineSwitch, Visitable
- public class SingleValueSwitch
- extends CommandLineSwitchBase
The switch must be 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 |
SingleValueSwitch
public SingleValueSwitch()
SingleValueSwitch
public SingleValueSwitch(java.lang.String default_value)
SingleValueSwitch
public SingleValueSwitch(boolean mandatory)
SingleValueSwitch
public SingleValueSwitch(java.lang.String default_value,
boolean mandatory)
Parse
public int Parse(java.lang.String name,
java.lang.String value)
throws CommandLineException
Accept
public void Accept(Visitor visitor)