|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<OptionException.Type>
snaq.util.jclap.OptionException.Type
public static enum OptionException.Type
Defines the types of OptionException
that exist.
Enum Constant Summary | |
---|---|
ILLEGAL_OPTION_VALUE
Thrown for illegal/missing value in value-requiring option. |
|
INVALID_OPTION_COUNT
Thrown for invalid option value count. |
|
INVALID_OPTION_VALUE_COUNT
Thrown for trying to assign an invalid number of value to option. |
|
INVALID_RETRIEVAL_TYPE
Thrown for trying to retrieve single value for multiple value option. |
|
NOT_FLAG
Thrown for value-requiring option in concatenated short options. |
|
OPTION_HAS_VALUE
Thrown for trying to reassign value to single-value option. |
|
UNKNOWN_FLAG
Thrown for unknown flag in concatenated short options. |
|
UNKNOWN_OPTION
Thrown for unrecognized option. |
Method Summary | |
---|---|
static OptionException.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static OptionException.Type[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final OptionException.Type INVALID_RETRIEVAL_TYPE
public static final OptionException.Type UNKNOWN_OPTION
public static final OptionException.Type UNKNOWN_FLAG
public static final OptionException.Type NOT_FLAG
public static final OptionException.Type ILLEGAL_OPTION_VALUE
public static final OptionException.Type INVALID_OPTION_COUNT
public static final OptionException.Type OPTION_HAS_VALUE
public static final OptionException.Type INVALID_OPTION_VALUE_COUNT
Method Detail |
---|
public static OptionException.Type[] values()
for (OptionException.Type c : OptionException.Type.values()) System.out.println(c);
public static OptionException.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |