public enum Command extends java.lang.Enum<Command>
CREATE
- Create command.DELETE
- Delete command.RENEW
- Renew command.UPDATE
- Update command.TRANSFER
- Transfer command.RESTORE
- Restore command.CUSTOM
- Custom command that is defined using a free-form
attribute like the "customName" attribute.Enum Constant and Description |
---|
CREATE |
CUSTOM |
DELETE |
RENEW |
RESTORE |
TRANSFER |
UPDATE |
Modifier and Type | Method and Description |
---|---|
static Command |
getCommand(java.lang.String aString)
Get the command enumerated value given the matching string.
|
java.lang.String |
toString()
Convert the enumerated
Command value to a
String . |
static Command |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Command[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Command CREATE
public static final Command DELETE
public static final Command RENEW
public static final Command UPDATE
public static final Command TRANSFER
public static final Command RESTORE
public static final Command CUSTOM
public static Command[] values()
for (Command c : Command.values()) System.out.println(c);
public static Command 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 Command getCommand(java.lang.String aString)
aString
- Command
enumerated string to convert to an
enumerated Command
instance.Command
value matching the
String
.java.security.InvalidParameterException
- If aString
does not match an enumerated
Command
string value.public java.lang.String toString()
Command
value to a
String
.toString
in class java.lang.Enum<Command>