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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.pqt.cloptions.Option
      extended byorg.pqt.cloptions.StringOption

public class StringOption
extends Option

this class implements a command line option that is followed by a fixed number of strings, either enclosed in quotes or as words without spaces


Field Summary
(package private)  int num
           
 java.util.Vector value
          this will contain the strings read in
 
Fields inherited from class org.pqt.cloptions.Option
longNames, read, shortNames
 
Constructor Summary
StringOption(java.lang.String shortNames, java.lang.String longNames)
          initialize the option to read a single string
StringOption(java.lang.String shortNames, java.lang.String longNames, int num)
          initialize the option to read num strings
 
Method Summary
 void doRead(OptionProcessor op)
          read in the arguments for this option - this routine should be overridden in subclasses
 
Methods inherited from class org.pqt.cloptions.Option
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

public java.util.Vector value
this will contain the strings read in


num

int num
Constructor Detail

StringOption

public StringOption(java.lang.String shortNames,
                    java.lang.String longNames,
                    int num)
initialize the option to read num strings


StringOption

public StringOption(java.lang.String shortNames,
                    java.lang.String longNames)
initialize the option to read a single string

Method Detail

doRead

public void doRead(OptionProcessor op)
            throws OptionException
Description copied from class: Option
read in the arguments for this option - this routine should be overridden in subclasses

Overrides:
doRead in class Option