org.jabber.jabberbeans.Extension
Class IQTime

java.lang.Object
  |
  +--org.jabber.jabberbeans.XMLData
        |
        +--org.jabber.jabberbeans.Extension.IQTime

public class IQTime
extends XMLData
implements QueryExtension

An IQTime Extension object is used to query for the time of a remote client. Provided is the time information in GMT, the timezone of the responding party, and a textual display for the time data. Any data parsing or handling code is located outside this class.

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

Field Summary
private  java.lang.String display
          A textual description of the time which the client is located
private  java.lang.String time
          The time in GMT/UTC, in the ISO format (YYYYMMDDTHH:MM:SS
private  java.lang.String zone
          The zone which the remote party is located
 
Constructor Summary
IQTime(IQTimeBuilder builder)
          Construct a new IQTime object, based on the builder state.
 
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 getDisplay()
          return a textual string for displaying the current time
 java.lang.String getTime()
          return the time in GMT/UTC, in ISO format (yyyymmddThh:mm:ss)
 java.lang.String getZone()
          return the time zone which the party is located, if any
 
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, registerNatives, wait, wait, wait
 

Field Detail

time

private java.lang.String time
The time in GMT/UTC, in the ISO format (YYYYMMDDTHH:MM:SS

zone

private java.lang.String zone
The zone which the remote party is located

display

private java.lang.String display
A textual description of the time which the client is located
Constructor Detail

IQTime

public IQTime(IQTimeBuilder builder)
Construct a new IQTime object, based on the builder state.
Parameters:
builder - IQTimeBuilder which holds the state this object will be based on
Method Detail

getTime

public java.lang.String getTime()
return the time in GMT/UTC, in ISO format (yyyymmddThh:mm:ss)

getZone

public java.lang.String getZone()
return the time zone which the party is located, if any

getDisplay

public java.lang.String getDisplay()
return a textual string for displaying the current time

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.
Overrides:
appendItem in class XMLData
Parameters:
retval - The StringBuffer to append to