|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.jaxmpp.core.client.xml.ElementWrapper
tigase.jaxmpp.core.client.xmpp.stanzas.Stanza
tigase.jaxmpp.core.client.xmpp.stanzas.Presence
public class Presence
Representation of Presence stanza.
| Nested Class Summary | |
|---|---|
static class |
Presence.Show
Availability sub-state |
| Nested classes/interfaces inherited from class tigase.jaxmpp.core.client.xmpp.stanzas.Stanza |
|---|
Stanza.UnkownStanzaTypeException |
| Constructor Summary | |
|---|---|
Presence(Element element)
|
|
| Method Summary | |
|---|---|
static Presence |
create()
Creates new instance of stanza. |
String |
getNickname()
Returns nickname. |
Integer |
getPriority()
Returns priority level of resource. |
Presence.Show |
getShow()
Return avaiability substate. |
String |
getStatus()
Returns natural-language description of an entity's availability. |
void |
setNickname(String nickname)
Sets nickname. |
void |
setPriority(Integer value)
Sets priority level of resource. |
void |
setShow(Presence.Show show)
Sets avaiability sub-state. |
void |
setStatus(String status)
Sets natural-language description of an entity's availability. |
| Methods inherited from class tigase.jaxmpp.core.client.xmpp.stanzas.Stanza |
|---|
canBeConverted, create, getErrorCondition, getFrom, getId, getTo, getType, getType, setFrom, setId, setTo, setType |
| Methods inherited from class tigase.jaxmpp.core.client.xml.ElementWrapper |
|---|
addChild, equals, getAsString, getAttribute, getAttributes, getChildAfter, getChildElementValue, getChildElementValue, getChildren, getChildren, getChildrenNS, getChildrenNS, getFirstChild, getFirstChild, getName, getNextSibling, getParent, getValue, getXMLNS, hashCode, removeAttribute, removeChild, setAttribute, setAttributes, setChildElementValue, setChildElementValue, setParent, setValue, setXMLNS |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Presence(Element element)
throws XMLException
XMLException| Method Detail |
|---|
public static Presence create()
throws XMLException
XMLException
public String getNickname()
throws XMLException
null if not present.
XMLException
public Integer getPriority()
throws XMLException
XMLException
public Presence.Show getShow()
throws XMLException
XMLException
public String getStatus()
throws XMLException
XMLException
public void setNickname(String nickname)
throws XMLException
nickname - nickname
XMLException
public void setPriority(Integer value)
throws XMLException
value -
XMLException
public void setShow(Presence.Show show)
throws XMLException
show - Presence.Show
XMLException
public void setStatus(String status)
throws XMLException
status - description
XMLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||