org.enhydra.xml.xmlc.commands.options
Class FlagOption
java.lang.Object
|
+--org.enhydra.xml.xmlc.commands.options.Option
|
+--org.enhydra.xml.xmlc.commands.options.FlagOption
- public abstract class FlagOption
- extends Option
A flag option that takes no arguments.
Method Summary |
protected void |
parse(String[] args,
ErrorReporter errorReporter,
Object clientData)
Parse an instance of the option. |
protected abstract void |
set(Object clientData)
Method called to set the value. |
FlagOption
public FlagOption(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(Object clientData)
throws XMLCException
- Method called to set the value.
parse
protected void parse(String[] args,
ErrorReporter errorReporter,
Object clientData)
throws XMLCException
- Parse an instance of the option.
- Overrides:
parse
in class Option
- Following copied from class:
org.enhydra.xml.xmlc.commands.options.Option
- Parameters:
args
- The option's arguments. Will always have the number of
arguments defined for an option.errorReporter
- Used to report warnings, such as deprecated
options. Errors should be thrown.clientData
- Object that is passed to the parser. Normally
contains the object to store the configuration in.
Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.