org.apache.axis.utils
Class CLOption
java.lang.Object
org.apache.axis.utils.CLOption
public final class CLOption
extends java.lang.Object
Basic class describing an instance of option.
- Peter Donald
- 4.0
CLOption(String argument) - Constructor taking argument for option.
|
CLOption(int id) - Constructor taking an id (that must be a proper character code)
|
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.
|
TEXT_ARGUMENT
public static final int TEXT_ARGUMENT
Value of
getId()
when the option is a text argument.
- 0
CLOption
public CLOption(String argument)
Constructor taking argument for option.
argument
- the argument
CLOption
public CLOption(int id)
Constructor taking an id (that must be a proper character code)
id
- the new id
addArgument
public final void addArgument(String argument)
Mutator of Argument property.
argument
- the argument
getArgument
public final String getArgument()
Retrieve argument to option if it takes arguments.
- the (first) argument
getArgument
public final String getArgument(int index)
index
- The argument index, from 0 to
- the argument
getArgumentCount
public final int getArgumentCount()
Get number of arguments.
getId
public final int getId()
Retrieve id of option.
The id is eqivalent to character code if it can be a single letter option.
- the id
toString
public final String toString()
Convert to String.
- the string value
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.