org.jabber.jabberbeans.Extension
Class IQVersion

java.lang.Object
  |
  +--org.jabber.jabberbeans.XMLData
        |
        +--org.jabber.jabberbeans.Extension.IQVersion
All Implemented Interfaces:
Extension, QueryExtension, java.io.Serializable

public class IQVersion
extends XMLData
implements QueryExtension

An IQVersion Extension object is used to query for the version of a remote client. Provided is the name and version of the used software, as well as the OS which the software is executing.

See Also:
Serialized Form

Constructor Summary
IQVersion(IQVersionBuilder builder)
          build an IQVersion object based on an IQVersionBuilder object
 
Method Summary
 void appendItem(java.lang.StringBuffer retval)
          appendItem converts this packet to XML, either an <agent> block in a jabber:iq:agents extension, or its own jabber:iq:agent extension.
 java.lang.String getName()
          get the name of the client software.
 java.lang.String getOS()
          get the OS string for the client software.
 java.lang.String getVersion()
          get a version string for the client software.
 
Methods inherited from class org.jabber.jabberbeans.XMLData
appendAttrib, appendAttrib, appendChild, appendChild, escapeString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jabber.jabberbeans.Extension.Extension
toString
 

Constructor Detail

IQVersion

public IQVersion(IQVersionBuilder builder)
build an IQVersion object based on an IQVersionBuilder object

Parameters:
builder - IQVersionBuilder from which this object will be based
Method Detail

getName

public java.lang.String getName()
get the name of the client software.

Returns:
String holding the name of the client software

getVersion

public java.lang.String getVersion()
get a version string for the client software.

Returns:
String holding a representation of the client software version

getOS

public java.lang.String getOS()
get the OS string for the client software.

Returns:
String holding the OS value for the client software

appendItem

public void appendItem(java.lang.StringBuffer retval)
appendItem converts this packet to XML, either an <agent> block in a jabber:iq:agents extension, or its own jabber:iq:agent extension. It then appends it to a StringBuffer.

Specified by:
appendItem in interface Extension
Specified by:
appendItem in class XMLData
Parameters:
retval - The StringBuffer to append to