org.enhydra.xml.xmlc.commands.options
Class BooleanOption

java.lang.Object
  |
  +--org.enhydra.xml.xmlc.commands.options.Option
        |
        +--org.enhydra.xml.xmlc.commands.options.BooleanOption

public abstract class BooleanOption
extends Option

An option that takes a boolean value of true/false/yes/no.


Fields inherited from class org.enhydra.xml.xmlc.commands.options.Option
help, multipleAllowed, name, numArgs
 
Constructor Summary
BooleanOption(String name, String help)
          Construct a new object.
 
Method Summary
 void parse(String[] args, ErrorReporter errorReporter, Object clientData)
          Parse an instance of the option and set the field in the Options object using Java reflection.
protected abstract  void set(boolean value, Object clientData)
          Method called to set the value.
 
Methods inherited from class org.enhydra.xml.xmlc.commands.options.Option
equals, getHelp, getMultipleAllowed, getName, getNumArgs, hashCode
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanOption

public BooleanOption(String name,
                     String help)
Construct a new object.
Parameters:
name - The name of the option.
help - Help string for the option.
Method Detail

set

protected abstract void set(boolean value,
                            Object clientData)
                     throws XMLCException
Method called to set the value.

parse

public void parse(String[] args,
                  ErrorReporter errorReporter,
                  Object clientData)
           throws XMLCException
Parse an instance of the option and set the field in the Options object using Java reflection.
Overrides:
parse in class Option
Parameters:
args - The option's arguments.


Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.