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

Quick Search    Search Deep

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

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

public class FlagOption
extends Option

this class implements a command line option that is set simply by appearing on the command line - so the option is not followed by a +/- to indicate the state of the option


Field Summary
 boolean value
           
 
Fields inherited from class org.pqt.cloptions.Option
longNames, read, shortNames
 
Constructor Summary
FlagOption(java.lang.String shortNames, java.lang.String longNames)
           
 
Method Summary
 void doRead(OptionProcessor op)
          do nothing, simply set the value of the option to true
 
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 boolean value
Constructor Detail

FlagOption

public FlagOption(java.lang.String shortNames,
                  java.lang.String longNames)
Method Detail

doRead

public void doRead(OptionProcessor op)
do nothing, simply set the value of the option to true

Overrides:
doRead in class Option