public enum Capability extends java.lang.Enum<Capability>
Enum Constant and Description |
---|
None
An ObjectRef with the None capability grants you no actions on
the object.
|
Read
An ObjectRef with the Read capability grants you the ability to
read the object value, its version and its references.
|
ReadWrite
An ObjectRef with the ReadWrite capability grants you both the
Read and Write capabilities.
|
Write
An ObjectRef with the Write capability grants you the ability to
set (write) the object value and references.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canRead()
Tests to see if the capability is either Read or ReadWrite.
|
boolean |
canWrite()
Tests to see if the capability is either Write or ReadWrite.
|
static Capability |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Capability[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Capability None
public static final Capability Read
public static final Capability Write
public static final Capability ReadWrite
public static Capability[] values()
for (Capability c : Capability.values()) System.out.println(c);
public static Capability 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 boolean canRead()
public boolean canWrite()