tigase.muc.xmpp.stanzas
Class IQ

java.lang.Object
  extended by tigase.xml.Element
      extended by tigase.muc.xmpp.stanzas.AbstractStanza<IQType>
          extended by tigase.muc.xmpp.stanzas.IQ
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable<tigase.xml.Element>, Stanza<IQType>

public class IQ
extends AbstractStanza<IQType>

Implementation of IQ stanza.

Created: 2005-03-24 13:23:26

Version:
$Rev: 81 $
Author:
bmalkow

Field Summary
 
Fields inherited from class tigase.xml.Element
attributes, cdata, children, name, xmlns
 
Constructor Summary
IQ(tigase.xml.Element packet)
          Construct a IQ from XML element.
IQ(IQType iqType)
          Construct IQ stanza with type.
 
Method Summary
 IQ createResultIQ()
          Create Result IQ stanza.
 IQType getType()
          Get stanza type.
 
Methods inherited from class tigase.muc.xmpp.stanzas.AbstractStanza
getFrom, getId, getTo, getXmlLang, setFrom, setId, setTo, setType, setXmlLang
 
Methods inherited from class tigase.xml.Element
addAttribute, addAttributes, addChild, addChildren, childrenToString, clone, compareTo, equals, findChild, getAttribute, getAttribute, getAttributes, getCData, getCData, getChild, getChild, getChildCData, getChildren, getChildren, getName, getXMLNS, getXMLNS, hashCode, main, removeAttribute, removeChild, setAttribute, setAttribute, setAttributes, setAttributes, setAttributes, setCData, setChildren, setDefXMLNS, setName, setXMLNS, toString, toStringNoChildren
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IQ

public IQ(IQType iqType)
Construct IQ stanza with type.

Parameters:
iqType - IQ stanza type

IQ

public IQ(tigase.xml.Element packet)
Construct a IQ from XML element.

Parameters:
packet - XML element.
Method Detail

createResultIQ

public IQ createResultIQ()
Create Result IQ stanza. TO addres is copied from FROM. ID is copied from current stanza.

Returns:
new IQ stanza.

getType

public IQType getType()
Get stanza type.

Returns:
type of stanza
See Also:
StanzaType}


Copyright © 2007 Tigase. All Rights Reserved.