com.ibm.connections.spi.events.object
Enum Member.Role
java.lang.Object
java.lang.Enum<Member.Role>
com.ibm.connections.spi.events.object.Member.Role
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Member.Role>
- Enclosing interface:
- Member
public static enum Member.Role
- extends java.lang.Enum<Member.Role>
Represents the given role of an individual or group in the membership
or access control of a resource.
|
Method Summary |
static Member.Role |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Member.Role[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
| Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
OWNER
public static final Member.Role OWNER
READER
public static final Member.Role READER
EDITOR
public static final Member.Role EDITOR
CONTRIBUTOR
public static final Member.Role CONTRIBUTOR
MANAGER
public static final Member.Role MANAGER
UNSET
public static final Member.Role UNSET
values
public static Member.Role[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Member.Role c : Member.Role.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Member.Role valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null