Modifier and Type | Class and Description |
---|---|
static class |
Presence.Show
Availability sub-state
|
Stanza.UnkownStanzaTypeException
Modifier and Type | Method and Description |
---|---|
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.
|
addFlag, canBeConverted, create, createIQ, createMessage, createPresence, getErrorCondition, getErrorMessage, getFrom, getId, getTo, getType, getType, hasFlag, removeFlag, setFrom, setId, setTo, setType
getXmppStream, setXmppStream
addChild, equals, findChild, getAsString, getAttribute, getAttributes, getChildAfter, getChildElementValue, getChildElementValue, getChildren, getChildren, getChildrenNS, getChildrenNS, getFirstChild, getFirstChild, getName, getNextSibling, getParent, getValue, getWrappedElement, getXMLNS, hashCode, removeAttribute, removeChild, setAttribute, setAttributes, setChildElementValue, setChildElementValue, setParent, setValue, setXMLNS, toString
public static Presence create() throws JaxmppException
JaxmppException
public String getNickname() throws XMLException
null
if not present.XMLException
public void setNickname(String nickname) throws XMLException
nickname
- nicknameXMLException
public Integer getPriority() throws XMLException
XMLException
public void setPriority(Integer value) throws XMLException
value
- XMLException
public Presence.Show getShow() throws XMLException
XMLException
public void setShow(Presence.Show show) throws XMLException
show
- Presence.ShowXMLException
public String getStatus() throws XMLException
XMLException
public void setStatus(String status) throws XMLException
status
- descriptionXMLException
Copyright © 2006–2023 Tigase. All rights reserved.