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.
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. |
BooleanOption
public BooleanOption(String name,
String help)
- Construct a new object.
- Parameters:
name
- The name of the option.help
- Help string for the option.
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.