|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ArgumentType>
org.crosswire.common.options.ArgumentType
public enum ArgumentType
An ArgumentType indicates whether and/or how an Option is followed by an argument.
The GNU Lesser General Public License for details.| Enum Constant Summary | |
|---|---|
NO_ARGUMENT
The option is not followed by an argument. |
|
OPTIONAL_ARGUMENT
The option may be followed by an argument. |
|
REQUIRED_ARGUMENT
The option is followed by an argument. |
|
| Field Summary | |
|---|---|
private String |
name
The name of the DataType |
| Method Summary | |
|---|---|
static ArgumentType |
fromString(String name)
Lookup method to find an ArgumentType by name |
String |
toString()
|
static ArgumentType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ArgumentType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ArgumentType NO_ARGUMENT
public static final ArgumentType REQUIRED_ARGUMENT
public static final ArgumentType OPTIONAL_ARGUMENT
| Field Detail |
|---|
private String name
| Method Detail |
|---|
public static ArgumentType[] values()
for (ArgumentType c : ArgumentType.values()) System.out.println(c);
public static ArgumentType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static ArgumentType fromString(String name)
name - the name of the ArgumentType
public String toString()
toString in class Enum<ArgumentType>
|
Copyright ยจ 2003-2015 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||