org.jabber.jabberbeans.Extension
Class IQVersionBuilder

java.lang.Object
  |
  +--org.jabber.jabberbeans.Extension.IQVersionBuilder

public class IQVersionBuilder
extends java.lang.Object
implements ExtensionBuilder

An IQVersionBuilder is used to generate a jabber:iq:version namespace object.

Version:
$Revision: 1.1.1.1 $
Author:
David Waite <dwaite@jabber.com>, $Author: lucky $

Field Summary
private  java.lang.String name
          The name of the client software
private  java.lang.String OS
          A report of the OS on which the software is running
private  java.lang.String version
          The version of the client software
 
Constructor Summary
IQVersionBuilder()
          Construct a new IQVersionBuilder object
 
Method Summary
 Extension build()
          Build a IQVersion Extension based on the current builder state.
 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 the version of the client software
 void reset()
          reset this object to a default state, for reuse
 void setName(java.lang.String value)
          Set the name of the client software
 void setOS(java.lang.String value)
          set the OS string for the client software
 void setVersion(java.lang.String value)
          set the version of the client software
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name
The name of the client software

version

private java.lang.String version
The version of the client software

OS

private java.lang.String OS
A report of the OS on which the software is running
Constructor Detail

IQVersionBuilder

public IQVersionBuilder()
Construct a new IQVersionBuilder object
Method Detail

reset

public void reset()
reset this object to a default state, for reuse
Specified by:
reset in interface ExtensionBuilder

getName

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

setName

public void setName(java.lang.String value)
Set the name of the client software
Parameters:
value - String holding name of the client software

getVersion

public java.lang.String getVersion()
get the version of the client software
Returns:
String holding a representation of the version of the client software.

setVersion

public void setVersion(java.lang.String value)
set the version of the client software
Parameters:
value - String holding a representation of the version of the client software.

getOS

public java.lang.String getOS()
get the OS string for the client software
Returns:
String holding the OS of the client

setOS

public void setOS(java.lang.String value)
set the OS string for the client software
Parameters:
value - String holding the OS of the client

build

public Extension build()
Build a IQVersion Extension based on the current builder state.
Specified by:
build in interface ExtensionBuilder
Returns:
IQVersion Extension