dsto.dfc.commandline
Class StringOption

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

public class StringOption
extends Option

This is the simplist type of Option, which simply handles string arguements.


Field Summary
 
Fields inherited from class dsto.dfc.commandline.Option
value
 
Constructor Summary
StringOption(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

StringOption

public StringOption(char shortForm,
                    String longForm)
Method Detail

parseValue

protected Object parseValue(String arg)
Description copied from class: Option
Override to extract and convert an option value passed on the command-line

Overrides:
parseValue in class Option

getValue

public Object getValue()
Overrides:
getValue in class Option


Copyright © 2008 Commonwealth of Australia