public class MUCItem extends Object implements NamedElement
Constructor and Description |
---|
MUCItem(MUCAffiliation affiliation) |
MUCItem(MUCAffiliation affiliation,
Jid jid) |
MUCItem(MUCAffiliation affiliation,
Jid jid,
String reason) |
MUCItem(MUCAffiliation affiliation,
MUCRole role,
Jid actor,
String reason,
Jid jid,
Resourcepart nick,
Resourcepart actorNick)
Creates a new item child.
|
MUCItem(MUCRole role) |
MUCItem(MUCRole role,
Resourcepart nick) |
MUCItem(MUCRole role,
Resourcepart nick,
String reason) |
Modifier and Type | Method and Description |
---|---|
Jid |
getActor()
Returns the actor (JID of an occupant in the room) that was kicked or banned.
|
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.
|
Jid |
getJid()
Returns the <room@service/nick> by which an occupant is identified within the context of a
room.
|
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(MUCRole role, Resourcepart nick)
public MUCItem(MUCAffiliation affiliation, Jid jid, String reason)
public MUCItem(MUCAffiliation affiliation, Jid jid)
public MUCItem(MUCRole role, Resourcepart nick, String reason)
public MUCItem(MUCAffiliation affiliation, MUCRole role, Jid actor, String reason, Jid jid, Resourcepart nick, 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 Jid getActor()
public Resourcepart getActorNick()
public String getReason()
public MUCAffiliation getAffiliation()
public Jid getJid()
public Resourcepart getNick()
public MUCRole getRole()
public XmlStringBuilder toXML(String enclosingNamespace)
Element
public String getElementName()
NamedElement
getElementName
in interface NamedElement