Package rocks.xmpp.extensions.muc
Enum OccupantEvent.Type
- java.lang.Object
-
- java.lang.Enum<OccupantEvent.Type>
-
- rocks.xmpp.extensions.muc.OccupantEvent.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<OccupantEvent.Type>
- Enclosing class:
- OccupantEvent
public static enum OccupantEvent.Type extends Enum<OccupantEvent.Type>
The type of the occupant event.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BANNED
The occupant got banned by an admin.ENTERED
The occupant has entered the room.EXITED
The occupant has exited the room in a normal way.KICKED
The occupant got kicked out of the room by a moderator.MEMBERSHIP_REVOKED
The occupant has exited the room, because he's no longer a member of the room.NICKNAME_CHANGED
The occupant has exited the room, because he changed his nickname.ROOM_BECAME_MEMBERS_ONLY
The occupant has exited the room, because the room became member's only.ROOM_DESTROYED
The occupant has exited because the room got destroyed by the owner.STATUS_CHANGED
The occupants has changed his or her presence status.SYSTEM_SHUTDOWN
The occupant has exited the room, because the system was shutdown.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OccupantEvent.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static OccupantEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENTERED
public static final OccupantEvent.Type ENTERED
The occupant has entered the room.
-
EXITED
public static final OccupantEvent.Type EXITED
The occupant has exited the room in a normal way.
-
STATUS_CHANGED
public static final OccupantEvent.Type STATUS_CHANGED
The occupants has changed his or her presence status.
-
KICKED
public static final OccupantEvent.Type KICKED
The occupant got kicked out of the room by a moderator.
-
BANNED
public static final OccupantEvent.Type BANNED
The occupant got banned by an admin.
-
MEMBERSHIP_REVOKED
public static final OccupantEvent.Type MEMBERSHIP_REVOKED
The occupant has exited the room, because he's no longer a member of the room.
-
ROOM_BECAME_MEMBERS_ONLY
public static final OccupantEvent.Type ROOM_BECAME_MEMBERS_ONLY
The occupant has exited the room, because the room became member's only.
-
NICKNAME_CHANGED
public static final OccupantEvent.Type NICKNAME_CHANGED
The occupant has exited the room, because he changed his nickname.
-
SYSTEM_SHUTDOWN
public static final OccupantEvent.Type SYSTEM_SHUTDOWN
The occupant has exited the room, because the system was shutdown.
-
ROOM_DESTROYED
public static final OccupantEvent.Type ROOM_DESTROYED
The occupant has exited because the room got destroyed by the owner.
-
-
Method Detail
-
values
public static OccupantEvent.Type[] 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 (OccupantEvent.Type c : OccupantEvent.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OccupantEvent.Type valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-