Package org.nlpub.watset.cli
Enum Application.ParseStatus
- java.lang.Object
-
- java.lang.Enum<Application.ParseStatus>
-
- org.nlpub.watset.cli.Application.ParseStatus
-
- All Implemented Interfaces:
Serializable,Comparable<Application.ParseStatus>
- Enclosing class:
- Application
public static enum Application.ParseStatus extends Enum<Application.ParseStatus>
Status of command-line argument parsing.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMMANDA command has been parsed successfully.EMPTYNo command has been found.EMPTY_BUT_VERSIONNo command has been found, but the version has been requested.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Application.ParseStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static Application.ParseStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMMAND
public static final Application.ParseStatus COMMAND
A command has been parsed successfully.
-
EMPTY
public static final Application.ParseStatus EMPTY
No command has been found.
-
EMPTY_BUT_VERSION
public static final Application.ParseStatus EMPTY_BUT_VERSION
No command has been found, but the version has been requested.
-
-
Method Detail
-
values
public static Application.ParseStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Application.ParseStatus c : Application.ParseStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Application.ParseStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-