public class MUCItem extends Object implements NamedElement
Constructor and Description |
---|
MUCItem(MUCAffiliation affiliation) |
MUCItem(MUCAffiliation affiliation,
org.jxmpp.jid.Jid jid) |
MUCItem(MUCAffiliation affiliation,
org.jxmpp.jid.Jid jid,
String reason) |
MUCItem(MUCAffiliation affiliation,
MUCRole role,
org.jxmpp.jid.Jid actor,
String reason,
org.jxmpp.jid.Jid jid,
org.jxmpp.jid.parts.Resourcepart nick,
org.jxmpp.jid.parts.Resourcepart actorNick)
Creates a new item child.
|
MUCItem(MUCRole role) |
MUCItem(MUCRole role,
org.jxmpp.jid.parts.Resourcepart nick) |
MUCItem(MUCRole role,
org.jxmpp.jid.parts.Resourcepart nick,
String reason) |
Modifier and Type | Method and Description |
---|---|
org.jxmpp.jid.Jid |
getActor()
Returns the actor (JID of an occupant in the room) that was kicked or banned.
|
org.jxmpp.jid.parts.Resourcepart |
getActorNick()
Get the nickname of the actor.
|
MUCAffiliation |
getAffiliation()
Returns the occupant's affiliation to the room.
|
String |
getElementName()
Returns the root element name.
|
org.jxmpp.jid.Jid |
getJid()
Returns the <room@service/nick> by which an occupant is identified within the context of a
room.
|
org.jxmpp.jid.parts.Resourcepart |
getNick()
Returns the new nickname of an occupant that is changing his/her nickname.
|
String |
getReason()
Returns the reason for the item child.
|
MUCRole |
getRole()
Returns the temporary position or privilege level of an occupant within a room.
|
XmlStringBuilder |
toXML(String enclosingNamespace)
Returns the XML representation of this Element.
|
public static final String ELEMENT
public MUCItem(MUCAffiliation affiliation)
public MUCItem(MUCAffiliation affiliation, org.jxmpp.jid.Jid jid, String reason)
public MUCItem(MUCAffiliation affiliation, org.jxmpp.jid.Jid jid)
public MUCItem(MUCAffiliation affiliation, MUCRole role, org.jxmpp.jid.Jid actor, String reason, org.jxmpp.jid.Jid jid, org.jxmpp.jid.parts.Resourcepart nick, org.jxmpp.jid.parts.Resourcepart actorNick)
affiliation
- the actor's affiliation to the roomrole
- the privilege level of an occupant within a room.actor
- reason
- jid
- nick
- actorNick
- public org.jxmpp.jid.Jid getActor()
public org.jxmpp.jid.parts.Resourcepart getActorNick()
public String getReason()
public MUCAffiliation getAffiliation()
public org.jxmpp.jid.Jid getJid()
public org.jxmpp.jid.parts.Resourcepart getNick()
public MUCRole getRole()
public XmlStringBuilder toXML(String enclosingNamespace)
Element
public String getElementName()
NamedElement
getElementName
in interface NamedElement