public enum AuthorizationType extends java.lang.Enum<AuthorizationType>
Enum Constant and Description |
---|
ACCESS_ALLOWED
Access to the resource is allowed.
|
ACCESS_DENIED
Access to the resource is denied.
|
Modifier and Type | Method and Description |
---|---|
static AuthorizationType |
getDefault()
Get the enum constant that is considered to be the default.
|
static AuthorizationType |
getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
int |
getValue()
Get the numeric value associated with this enum constant.
|
static AuthorizationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AuthorizationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthorizationType ACCESS_DENIED
public static final AuthorizationType ACCESS_ALLOWED
public static AuthorizationType[] values()
for (AuthorizationType c : AuthorizationType.values()) System.out.println(c);
public static AuthorizationType 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 int getValue()
public static AuthorizationType getFromValue(int value)
value
- a numeric value.public static AuthorizationType getDefault()