java.lang.Object
org.pqt.cloptions.Option
- Direct Known Subclasses:
- BooleanOption, FlagOption, NumberOption, StringOption
- public class Option
- extends java.lang.Object
|
Method Summary |
void |
doRead(OptionProcessor op)
read in the arguments for this option - this routine should be overridden
in subclasses |
void |
read(OptionProcessor op)
read in the arguments for this option, using the given option processor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
shortNames
protected java.lang.String shortNames
longNames
protected java.lang.String longNames
read
public boolean read
- set to true if this option has been appeared on the command line
Option
public Option(java.lang.String shortNames,
java.lang.String longNames)
- initializes a newly created Option object to have the given list of
shortNames and longNames
read
public void read(OptionProcessor op)
throws OptionException
- read in the arguments for this option, using the given option processor
doRead
public void doRead(OptionProcessor op)
throws OptionException
- read in the arguments for this option - this routine should be overridden
in subclasses