dsto.dfc.commandline
Class IntegerOption
java.lang.Object
dsto.dfc.commandline.Option
dsto.dfc.commandline.IntegerOption
public class IntegerOption
- extends Option
This type of option handles Integer arguments.
Fields inherited from class dsto.dfc.commandline.Option |
value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntegerOption
public IntegerOption(char shortForm,
String longForm)
parseValue
protected Object parseValue(String arg)
throws IllegalOptionValueException
- Description copied from class:
Option
- Override to extract and convert an option value passed on the
command-line
- Overrides:
parseValue
in class Option
- Throws:
IllegalOptionValueException
- thrown if arg is not an
Integer.
getValue
public Object getValue()
- Overrides:
getValue
in class Option
Copyright © 2008 Commonwealth of Australia