public class AbstractOption extends java.lang.Object implements OptionHandler
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OPTION_ABSTRACT |
| Constructor and Description |
|---|
AbstractOption() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getOption()
Indicates the option string
|
void |
handleOption(java.lang.String value)
This function parses the argument at the current index.
|
boolean |
requireArguments()
Indicates whether or not this option requires an argument.
|
java.lang.String |
toString() |
public java.lang.String getOption()
OptionHandlergetOption in interface OptionHandlerpublic boolean requireArguments()
OptionHandlerrequireArguments in interface OptionHandlerpublic void handleOption(java.lang.String value)
throws java.lang.Exception
OptionHandlerhandleOption in interface OptionHandlervalue - the argument for the optionjava.lang.Exception - in case of error.public java.lang.String toString()
toString in class java.lang.Object