public enum ArgumentType extends Enum<ArgumentType>
The GNU Lesser General Public License for details.
Enum Constant and Description |
---|
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.
|
Modifier and Type | Field and Description |
---|---|
private String |
name
The name of the DataType
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final ArgumentType NO_ARGUMENT
public static final ArgumentType REQUIRED_ARGUMENT
public static final ArgumentType OPTIONAL_ARGUMENT
private String name
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 nameNullPointerException
- if the argument is nullpublic static ArgumentType fromString(String name)
name
- the name of the ArgumentTypepublic String toString()
toString
in class Enum<ArgumentType>