public enum Permission extends Enum<Permission>
Enum Constant and Description |
---|
ALL |
EXEC |
NONE |
OWNER |
QUERY |
READ |
WRITE |
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Returns the integer value of this permission.
|
boolean |
isSet(int val)
Tests for the presence of this flag in the specified value.
|
int |
or(int val)
Returns the result of or-ing this flag into an integer.
|
int |
or(Permission val)
Returns the result of or-ing this flag into another.
|
static Permission |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Permission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Permission NONE
public static final Permission QUERY
public static final Permission READ
public static final Permission WRITE
public static final Permission EXEC
public static final Permission OWNER
public static final Permission ALL
public static Permission[] values()
for (Permission c : Permission.values()) System.out.println(c);
public static Permission valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
public int or(int val)
val
- the value to OR this enumeration value into.public int or(Permission val)
val
- the value to OR this enumeration value into.public boolean isSet(int val)
val
- the value.true
if this flag is present.Copyright © 2016 Open Grid Forum. All rights reserved.