|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.cli.avalon.CLOption
public final class CLOption
Basic class describing an instance of option.
Field Summary | |
---|---|
static int |
TEXT_ARGUMENT
Value of getId() when the option is a text argument. |
Constructor Summary | |
---|---|
CLOption(CLOptionDescriptor descriptor)
Constructor taking an descriptor |
|
CLOption(String argument)
Constructor taking argument for option. |
Method Summary | |
---|---|
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. |
CLOptionDescriptor |
getDescriptor()
DOCUMENT ME! |
int |
getId()
Deprecated. use getDescriptor().getId() instead |
String |
toString()
Convert to String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int TEXT_ARGUMENT
getId()
when the option is a text argument.
Constructor Detail |
---|
public CLOption(CLOptionDescriptor descriptor)
descriptor
- the descriptor iff null, will default to a "text argument" descriptor.public CLOption(String argument)
argument
- the argumentMethod Detail |
---|
public final String getArgument()
public final String getArgument(int index)
index
- The argument index, from 0 to
getArgumentCount()
-1.
public final int getId()
getDescriptor().getId()
instead
public final CLOptionDescriptor getDescriptor()
public final void addArgument(String argument)
argument
- the argumentpublic final int getArgumentCount()
public final String toString()
toString
in class Object
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |