Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.pqt.cloptions
Class Option  view Option download Option.java

java.lang.Object
  extended byorg.pqt.cloptions.Option
Direct Known Subclasses:
BooleanOption, FlagOption, NumberOption, StringOption

public class Option
extends java.lang.Object


Field Summary
protected  java.lang.String longNames
           
 boolean read
          set to true if this option has been appeared on the command line
protected  java.lang.String shortNames
           
 
Constructor Summary
Option(java.lang.String shortNames, java.lang.String longNames)
          initializes a newly created Option object to have the given list of shortNames and longNames
 
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
 

Field Detail

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

Constructor Detail

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

Method Detail

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