public enum FieldAccessibility extends Enum<FieldAccessibility>
Enum Constant and Description |
---|
NONE
No permissions to view and edit the field.
|
READ
Permissions to view the field only.
|
WRITE
Permissions to view and edit the field.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isReadable() |
boolean |
isWritable() |
static FieldAccessibility |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FieldAccessibility[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FieldAccessibility WRITE
public static final FieldAccessibility READ
public static final FieldAccessibility NONE
public static FieldAccessibility[] values()
for (FieldAccessibility c : FieldAccessibility.values()) System.out.println(c);
public static FieldAccessibility 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 boolean isReadable()
public boolean isWritable()