|
||||||||||
| 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
public abstract class Stanza
Abstract representation of Stanza.
| Nested Class Summary | |
|---|---|
static class |
Stanza.UnkownStanzaTypeException
|
| Constructor Summary | |
|---|---|
Stanza(Element element)
|
|
| Method Summary | |
|---|---|
static boolean |
canBeConverted(Element element)
|
static Stanza |
create(Element element)
Creates new stanza. |
XMPPException.ErrorCondition |
getErrorCondition()
Returns XMPPException.ErrorCondition element. |
JID |
getFrom()
Returns 'from' attribute. |
String |
getId()
Returns id of stanza. |
JID |
getTo()
Returns 'to' attribute. |
StanzaType |
getType()
Returns type of stanza. |
StanzaType |
getType(StanzaType defaultValue)
Returns type of stanza. |
void |
setFrom(JID jid)
Sets 'from' attribute. |
void |
setId(String id)
Sets id of stanza |
void |
setTo(JID jid)
Sets 'to' attribute. |
void |
setType(StanzaType type)
Sets type of stanza. |
| 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 Stanza(Element element)
| Method Detail |
|---|
public static boolean canBeConverted(Element element)
throws XMLException
XMLException
public static final Stanza create(Element element)
throws JaxmppException
element - element containing stanza.
JaxmppException
public XMPPException.ErrorCondition getErrorCondition()
throws XMLException
null is element not
present.
XMLException
public JID getFrom()
throws XMLException
XMLException
public String getId()
throws XMLException
XMLException
public JID getTo()
throws XMLException
XMLException
public StanzaType getType()
throws XMLException
null if type not present.
XMLException
public StanzaType getType(StanzaType defaultValue)
throws XMLException
defaultValue - default value. Will be returned if type of stanza id
null.
defaultValue if type not
present.
XMLException
public void setFrom(JID jid)
throws XMLException
jid - JID
XMLException
public void setId(String id)
throws XMLException
id - id
XMLException
public void setTo(JID jid)
throws XMLException
jid - JID
XMLException
public void setType(StanzaType type)
throws XMLException
type - StanzaType
XMLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||