public enum CommandStatus extends java.lang.Enum<CommandStatus>
Enum Constant and Description |
---|
ACTIVE
Command is active, and in-use.
|
DEPRECATED
Command is deprecated, and will be made inactive in the future.
|
INACTIVE
Command is inactive, and not in-use.
|
Modifier and Type | Method and Description |
---|---|
static CommandStatus |
parse(java.lang.String value)
Parse command status.
|
static CommandStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CommandStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommandStatus ACTIVE
public static final CommandStatus DEPRECATED
public static final CommandStatus INACTIVE
public static CommandStatus[] values()
for (CommandStatus c : CommandStatus.values()) System.out.println(c);
public static CommandStatus 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 namejava.lang.NullPointerException
- if the argument is nullpublic static CommandStatus parse(java.lang.String value) throws GeniePreconditionException
value
- string to parse/convert into command statusGeniePreconditionException
- on invalid value