| |
|
| java.lang.Object org.apache.commons.cli.avalon.CLOption
CLOption | final public class CLOption (Code) | | Basic class describing an instance of option.
|
CLOption | public CLOption(CLOptionDescriptor descriptor)(Code) | | Constructor taking an descriptor
Parameters: descriptor - the descriptor iff null, will default to a "text argument"descriptor. |
CLOption | public CLOption(String argument)(Code) | | Constructor taking argument for option.
Parameters: argument - the argument |
addArgument | final public void addArgument(String argument)(Code) | | Mutator of Argument property.
Parameters: argument - the argument |
getArgument | final public String getArgument()(Code) | | Retrieve argument to option if it takes arguments.
the (first) argument |
getArgument | final public String getArgument(int index)(Code) | | Retrieve indexed argument to option if it takes arguments.
Parameters: index - The argument index, from 0 to CLOption.getArgumentCount()-1. the argument |
getArgumentCount | final public int getArgumentCount()(Code) | | Get number of arguments.
the number of arguments |
toString | final public String toString()(Code) | | Convert to String.
the string value |
|
|
|