| Enum Constant and Description |
|---|
DATABASE |
HOSTS |
PARTITIONS |
| Modifier and Type | Method and Description |
|---|---|
static TaskScope |
fromId(byte id)
|
static TaskScope |
fromName(java.lang.String name)
Convert the name of a scope to a
TaskScope instance in a case insensitive way. |
byte |
getId() |
static java.lang.String |
translateIdToName(byte id)
Convert a scope ID to the name of that scope
|
static TaskScope |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TaskScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TaskScope DATABASE
public static final TaskScope HOSTS
public static final TaskScope PARTITIONS
public static TaskScope[] values()
for (TaskScope c : TaskScope.values()) System.out.println(c);
public static TaskScope 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 TaskScope fromId(byte id)
public static TaskScope fromName(java.lang.String name)
TaskScope instance in a case insensitive way. If name is
null return the default scope, DATABASEname - of scope or nullTaskScopejava.lang.IllegalArgumentException - If name is not a valid scopepublic static java.lang.String translateIdToName(byte id)
id - of a TaskScopeid referencesjava.lang.IllegalArgumentException - If id is not a valid IDpublic byte getId()