public final class CLOption extends Object
Modifier and Type | Field and Description |
---|---|
static int |
TEXT_ARGUMENT
Value of
getId() when the option is a text argument. |
Constructor and Description |
---|
CLOption(int id)
Constructor taking an id (that must be a proper character code)
|
CLOption(String argument)
Constructor taking argument for option.
|
Modifier and Type | Method and Description |
---|---|
void |
addArgument(String argument)
Mutator of Argument property.
|
String |
getArgument()
Retrieve argument to option if it takes arguments.
|
String |
getArgument(int index)
Retrieve indexed argument to option if it takes arguments.
|
int |
getArgumentCount()
Get number of arguments.
|
int |
getId()
Retrieve id of option.
|
String |
toString()
Convert to String.
|
public static final int TEXT_ARGUMENT
getId()
when the option is a text argument.public CLOption(int id)
id
- the new idpublic CLOption(String argument)
argument
- the argumentpublic final String getArgument()
public final String getArgument(int index)
index
- The argument index, from 0 to
getArgumentCount()
-1.public final int getId()
public final void addArgument(String argument)
argument
- the argumentpublic final int getArgumentCount()
Copyright © The Apache Software Foundation. All Rights Reserved.