org.jabber.jabberbeans.Extension
Class HashExtensionBuilder

java.lang.Object
  |
  +--org.jabber.jabberbeans.Extension.HashExtensionBuilder
All Implemented Interfaces:
ExtensionBuilder
Direct Known Subclasses:
IQRegisterBuilder, IQSearchRequestBuilder, SearchResultBuilder

public abstract class HashExtensionBuilder
extends java.lang.Object
implements ExtensionBuilder

A HashExtensionBuilder is used to generate an IQRegisterExtension or an IQSearchRequest, which represent the data stored in the particular namespace. NOTE: it is my personal hope that this extension dies a horrible death at a later date, probably at the hand of XML forms. all parameters are subject to interpretation - the names are meant to be labels to editable text boxes, with instructions being broadcast on how to use the interface. also note that the values do not have default states - is represented by name.equals(""), whereas name=null indicates the element is not present


Constructor Summary
HashExtensionBuilder()
          Creates a new HashExtensionBuilder instance.
 
Method Summary
 java.util.Hashtable getTable()
          getTable returns a hashtable of the internal name/value pair representation.
 void reset()
          reset clears all data values (sets to null), so that the builder may be reused.
 void set(java.lang.String name, java.lang.String value)
          set changes the value associated with a name, or removes the name key from the hashtable altogether if value==null
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jabber.jabberbeans.Extension.ExtensionBuilder
build
 

Constructor Detail

HashExtensionBuilder

public HashExtensionBuilder()
Creates a new HashExtensionBuilder instance.

Method Detail

reset

public void reset()
reset clears all data values (sets to null), so that the builder may be reused.

Specified by:
reset in interface ExtensionBuilder

set

public void set(java.lang.String name,
                java.lang.String value)
set changes the value associated with a name, or removes the name key from the hashtable altogether if value==null

Parameters:
name - a String value
value - a String value

getTable

public java.util.Hashtable getTable()
getTable returns a hashtable of the internal name/value pair representation.

Returns:
a Hashtable