Package org.mwolff.command
Enum CommandTransition
- java.lang.Object
-
- java.lang.Enum<CommandTransition>
-
- org.mwolff.command.CommandTransition
-
- All Implemented Interfaces:
Serializable
,Comparable<CommandTransition>
public enum CommandTransition extends Enum<CommandTransition>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CommandTransition
valueOf(String name)
Returns the enum constant of this type with the specified name.static CommandTransition[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final CommandTransition SUCCESS
Transition for an execute Method. State can be: SUCCESS : Execution was Successfully done. Used for Command-Mode DONE : For CoR: The work is successfully done, the chain can be aborted. NEXT : For CoR: The work is not done, next chain should overtake. FAILURE : An fatal error has occurred. The chain should be aborted
-
FAILURE
public static final CommandTransition FAILURE
-
NEXT
public static final CommandTransition NEXT
-
DONE
public static final CommandTransition DONE
-
-
Method Detail
-
values
public static CommandTransition[] 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 (CommandTransition c : CommandTransition.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommandTransition 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
-
-