com.valhalla.jbother.jabber.smack
Class Version

java.lang.Object
  extended byorg.jivesoftware.smack.packet.Packet
      extended byorg.jivesoftware.smack.packet.IQ
          extended bycom.valhalla.jbother.jabber.smack.Version

public class Version
extends org.jivesoftware.smack.packet.IQ

IQ packet for representing jabber:iq:version

Version:
1.0
Author:
Adam Olsen

Nested Class Summary
 
Nested classes inherited from class org.jivesoftware.smack.packet.IQ
org.jivesoftware.smack.packet.IQ.Type
 
Field Summary
 
Fields inherited from class org.jivesoftware.smack.packet.Packet
ID_NOT_AVAILABLE
 
Constructor Summary
Version()
          Default constructor - sets up the packet with no information
Version(java.lang.String name, java.lang.String version, java.lang.String os)
          Sets up the packet with information
 
Method Summary
 java.lang.String getChildElementXML()
          Builds the packet
 java.lang.String getName()
           
 java.lang.String getOs()
           
 java.lang.String getVersion()
           
 void setName(java.lang.String name)
           
 void setOs(java.lang.String os)
           
 void setVersion(java.lang.String version)
           
 
Methods inherited from class org.jivesoftware.smack.packet.IQ
getType, setType, toXML
 
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Version

public Version()
Default constructor - sets up the packet with no information


Version

public Version(java.lang.String name,
               java.lang.String version,
               java.lang.String os)
Sets up the packet with information

Parameters:
name - the client name
version - the client version
os - the client os
Method Detail

getName

public java.lang.String getName()
Returns:
the client name

getVersion

public java.lang.String getVersion()
Returns:
the client version

getOs

public java.lang.String getOs()
Returns:
the client os

setName

public void setName(java.lang.String name)
Parameters:
name - the client name

setVersion

public void setVersion(java.lang.String version)
Parameters:
version - the client version

setOs

public void setOs(java.lang.String os)
Parameters:
os - the client operating system

getChildElementXML

public java.lang.String getChildElementXML()
Builds the packet

Returns:
the XML version of the packet