public static enum MUCRole.Role extends Enum<MUCRole.Role>
Enum Constant and Description |
---|
moderator
Runs moderated discussions.
|
none
An occupant who does not permission to stay in the room (was banned)
|
participant
A normal occupant of the room.
|
visitor
An occupant who does not have voice (can't speak in the room)
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Returns the value for the role.
|
static MUCRole.Role |
valueOf(int value)
Returns the affiliation associated with the specified value.
|
static MUCRole.Role |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MUCRole.Role[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MUCRole.Role moderator
public static final MUCRole.Role participant
public static final MUCRole.Role visitor
public static final MUCRole.Role none
public static MUCRole.Role[] values()
for (MUCRole.Role c : MUCRole.Role.values()) System.out.println(c);
public static MUCRole.Role 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.Role valueOf(int value)
value
- the value.Copyright © 2003–2019 Ignite Realtime. All rights reserved.