dsto.dfc.commandline
Class IntegerOption

java.lang.Object
  extended by dsto.dfc.commandline.Option
      extended by dsto.dfc.commandline.IntegerOption

public class IntegerOption
extends Option

This type of option handles Integer arguments.


Field Summary
 
Fields inherited from class dsto.dfc.commandline.Option
value
 
Constructor Summary
IntegerOption(char shortForm, String longForm)
           
 
Method Summary
 Object getValue()
           
protected  Object parseValue(String arg)
          Override to extract and convert an option value passed on the command-line
 
Methods inherited from class dsto.dfc.commandline.Option
getValue, longForm, setValue, shortForm, wantsValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerOption

public IntegerOption(char shortForm,
                     String longForm)
Method Detail

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