public static enum MUCRole.Affiliation extends Enum<MUCRole.Affiliation>
Enum Constant and Description |
---|
admin
Administrator of the room.
|
member
A user who is on the "whitelist" for a members-only room or who is registered
with an open room.
|
none
A user who doesn't have an affiliation.
|
outcast
A user who has been banned from a room.
|
owner
Owner of the room.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Returns the value for the role.
|
static MUCRole.Affiliation |
valueOf(int value)
Returns the affiliation associated with the specified value.
|
static MUCRole.Affiliation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MUCRole.Affiliation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MUCRole.Affiliation owner
public static final MUCRole.Affiliation admin
public static final MUCRole.Affiliation member
public static final MUCRole.Affiliation outcast
public static final MUCRole.Affiliation none
public static MUCRole.Affiliation[] values()
for (MUCRole.Affiliation c : MUCRole.Affiliation.values()) System.out.println(c);
public static MUCRole.Affiliation 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 getValue()
public static MUCRole.Affiliation valueOf(int value)
value
- the value.Copyright © 2003–2019 Ignite Realtime. All rights reserved.