public enum AccessMode extends java.lang.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.
|
java.lang.String |
toString()
Returns the string representation of the access mode.
|
int |
value()
Returns the integer value of the access mode.
|
static AccessMode |
valueOf(java.lang.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(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 int value()
public int getCode()
public java.lang.String toString()
toString in class java.lang.Enum<AccessMode>public static AccessMode fromValue(int value) throws java.lang.IllegalArgumentException
value - The integer value to match against the AccessMode enum values.java.lang.IllegalArgumentException - If the given integer value does not match any AccessMode enum value.