org.jabber.jabberbeans.Extension
Class IQTime

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

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.

See Also:
Serialized Form

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, wait, wait, wait
 
Methods inherited from interface org.jabber.jabberbeans.Extension.Extension
toString
 

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.

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