public enum AccessRights extends Enum<AccessRights>
| Enum Constant and Description |
|---|
ADD
Permission to add to the value under the associated [[URef]].
|
ADD_WRITE
Permission to add to, or write the value under the associated [[URef]].
|
NONE
No permissions
|
READ
Permission to read the value under the associated [[URef]].
|
READ_ADD
Permission to read or add to the value under the associated [[URef]].
|
READ_ADD_WRITE
Permission to read, add to, or write the value under the associated [[URef]].
|
READ_WRITE
Permission to read or write the value under the associated [[URef]].
|
WRITE
Permission to write a value under the associated [[URef]].
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getBits() |
static AccessRights |
valueOf(Number bits)
Obtains the AccessRight enum for the specified bits
|
static AccessRights |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccessRights[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccessRights NONE
public static final AccessRights READ
public static final AccessRights WRITE
public static final AccessRights ADD
public static final AccessRights READ_WRITE
public static final AccessRights READ_ADD
public static final AccessRights ADD_WRITE
public static final AccessRights READ_ADD_WRITE
public static AccessRights[] values()
for (AccessRights c : AccessRights.values()) System.out.println(c);
public static AccessRights 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 static AccessRights valueOf(Number bits)
bits - bits to testpublic byte getBits()
Copyright © 2022. All rights reserved.