Package org.daisy.cli
Enum AbstractUI.ExitCode
- java.lang.Object
-
- java.lang.Enum<AbstractUI.ExitCode>
-
- org.daisy.cli.AbstractUI.ExitCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AbstractUI.ExitCode>
- Enclosing class:
- AbstractUI
public static enum AbstractUI.ExitCode extends java.lang.Enum<AbstractUI.ExitCode>
Provides exit codes to be used by implementing classes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAILED_TO_READ
ILLEGAL_ARGUMENT_VALUE
Argument value is illegalMISSING_ARGUMENT
Missing a required argumentMISSING_RESOURCE
OK
Normal application terminationUNKNOWN_ARGUMENT
Argument is unknown to the application
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractUI.ExitCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AbstractUI.ExitCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OK
public static final AbstractUI.ExitCode OK
Normal application termination
-
MISSING_ARGUMENT
public static final AbstractUI.ExitCode MISSING_ARGUMENT
Missing a required argument
-
UNKNOWN_ARGUMENT
public static final AbstractUI.ExitCode UNKNOWN_ARGUMENT
Argument is unknown to the application
-
FAILED_TO_READ
public static final AbstractUI.ExitCode FAILED_TO_READ
-
MISSING_RESOURCE
public static final AbstractUI.ExitCode MISSING_RESOURCE
-
ILLEGAL_ARGUMENT_VALUE
public static final AbstractUI.ExitCode ILLEGAL_ARGUMENT_VALUE
Argument value is illegal
-
-
Method Detail
-
values
public static AbstractUI.ExitCode[] 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 (AbstractUI.ExitCode c : AbstractUI.ExitCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractUI.ExitCode valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-