Enum Command.Action
- java.lang.Object
-
- java.lang.Enum<Command.Action>
-
- rocks.xmpp.extensions.commands.model.Command.Action
-
- All Implemented Interfaces:
Serializable
,Comparable<Command.Action>
- Enclosing class:
- Command
public static enum Command.Action extends Enum<Command.Action>
Represents a command action.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCEL
The command should be canceled.COMPLETE
The command should be completed (if possible).EXECUTE
The command should be executed or continue to be executed.NEXT
The command should progress to the next stage of execution.PREV
The command should be digress to the previous stage of execution.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Command.Action
valueOf(String name)
Returns the enum constant of this type with the specified name.static Command.Action[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CANCEL
public static final Command.Action CANCEL
The command should be canceled.
-
COMPLETE
public static final Command.Action COMPLETE
The command should be completed (if possible).
-
EXECUTE
public static final Command.Action EXECUTE
The command should be executed or continue to be executed. This is the default value.
-
NEXT
public static final Command.Action NEXT
The command should progress to the next stage of execution.
-
PREV
public static final Command.Action PREV
The command should be digress to the previous stage of execution.
-
-
Method Detail
-
values
public static Command.Action[] 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 (Command.Action c : Command.Action.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Command.Action 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
-
-