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.StatusBANNED_301static java.lang.StringELEMENTstatic MUCUser.StatusKICKED_307static MUCUser.StatusNEW_NICKNAME_303static MUCUser.StatusPRESENCE_TO_SELF_110static MUCUser.StatusREMOVED_AFFIL_CHANGE_321static MUCUser.StatusREMOVED_FOR_TECHNICAL_REASONS_333static MUCUser.StatusROOM_CREATED_201
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MUCUser.Statuscreate(java.lang.Integer i)static MUCUser.Statuscreate(java.lang.String string)booleanequals(java.lang.Object other)intgetCode()Returns the code that uniquely identifies the reason of the error.java.lang.StringgetElementName()Returns the root element name.inthashCode()java.lang.StringtoString()XmlStringBuildertoXML(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:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getElementName
public java.lang.String getElementName()
Description copied from interface:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
-