Class MUCUser.Status
- java.lang.Object
-
- org.jivesoftware.smackx.muc.packet.MUCUser.Status
-
- All Implemented Interfaces:
Element
,NamedElement
- Enclosing class:
- MUCUser
public static final class MUCUser.Status extends java.lang.Object implements NamedElement
Status code assists in presenting notification messages. The following link provides the list of existing error codes Multi-User Chat Status Codes.
-
-
Field Summary
Fields Modifier and Type Field Description static MUCUser.Status
BANNED_301
static java.lang.String
ELEMENT
static MUCUser.Status
KICKED_307
static MUCUser.Status
NEW_NICKNAME_303
static MUCUser.Status
PRESENCE_TO_SELF_110
static MUCUser.Status
REMOVED_AFFIL_CHANGE_321
static MUCUser.Status
REMOVED_FOR_TECHNICAL_REASONS_333
static MUCUser.Status
ROOM_CREATED_201
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MUCUser.Status
create(java.lang.Integer i)
static MUCUser.Status
create(java.lang.String string)
boolean
equals(java.lang.Object other)
int
getCode()
Returns the code that uniquely identifies the reason of the error.java.lang.String
getElementName()
Returns the root element name.int
hashCode()
java.lang.String
toString()
XmlStringBuilder
toXML(XmlEnvironment enclosingNamespace)
-
-
-
Field Detail
-
ELEMENT
public static final java.lang.String ELEMENT
- See Also:
- Constant Field Values
-
PRESENCE_TO_SELF_110
public static final MUCUser.Status PRESENCE_TO_SELF_110
-
ROOM_CREATED_201
public static final MUCUser.Status ROOM_CREATED_201
-
BANNED_301
public static final MUCUser.Status BANNED_301
-
NEW_NICKNAME_303
public static final MUCUser.Status NEW_NICKNAME_303
-
KICKED_307
public static final MUCUser.Status KICKED_307
-
REMOVED_AFFIL_CHANGE_321
public static final MUCUser.Status REMOVED_AFFIL_CHANGE_321
-
REMOVED_FOR_TECHNICAL_REASONS_333
public static final MUCUser.Status REMOVED_FOR_TECHNICAL_REASONS_333
-
-
Method Detail
-
create
public static MUCUser.Status create(java.lang.String string)
-
create
public static MUCUser.Status create(java.lang.Integer i)
-
getCode
public int getCode()
Returns the code that uniquely identifies the reason of the error. The code assists in presenting notification messages.- Returns:
- the code that uniquely identifies the reason of the error.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getElementName
public java.lang.String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
-