jrowe.getopt
Class AbstractOptionMethod
java.lang.Object
|
+--jrowe.getopt.AbstractOptionMethod
- public abstract class AbstractOptionMethod
- extends Object
- implements OptionMethod
An abstract OptionMethod
object that stores an argument.
This is used when an Option
takes an argument.
- Version:
- 1.1 MAR 10 2000 Moved from package org.jrowe.getopt to
jrowe.getopt.
- Author:
- Joshua T. Rowe
Method Summary |
Option |
getOption()
Returns the Option to which this functionality belongs. |
protected void |
setOption(Option option)
Sets the Option to which this functionality belongs. |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
AbstractOptionMethod
public AbstractOptionMethod()
- Creates an
OptionMethod
with the default properties.
AbstractOptionMethod
public AbstractOptionMethod(Option option)
- Creates an
OptionMethod
with the given properties.
- Parameters:
option
- the Option
to which this functionality
belongs.
setOption
protected void setOption(Option option)
- Sets the
Option
to which this functionality belongs.
- Parameters:
option
- the Option
to which this functionality
belongs.
getOption
public Option getOption()
- Returns the
Option
to which this functionality belongs.
- Specified by:
- getOption in interface OptionMethod
- Returns:
- the
Option
to which this functionality belongs.