public enum AccessMode extends Enum<AccessMode>
| Enum Constant and Description |
|---|
executable |
feature |
readOnly |
readWrite |
| Modifier and Type | Method and Description |
|---|---|
static AccessMode |
fromValue(int value)
Returns the AccessMode enum corresponding to the given integer value.
|
int |
getCode()
Returns the integer code of the access mode.
|
String |
toString()
Returns the string representation of the access mode.
|
int |
value()
Returns the integer value of the access mode.
|
static AccessMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccessMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccessMode readOnly
public static final AccessMode readWrite
public static final AccessMode executable
public static final AccessMode feature
public static AccessMode[] values()
for (AccessMode c : AccessMode.values()) System.out.println(c);
public static AccessMode 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 value()
public int getCode()
public String toString()
toString in class Enum<AccessMode>public static AccessMode fromValue(int value) throws IllegalArgumentException
value - The integer value to match against the AccessMode enum values.IllegalArgumentException - If the given integer value does not match any AccessMode enum value.