org.jabber.jabberbeans.Extension
Class HashExtensionBuilder

java.lang.Object
  |
  +--org.jabber.jabberbeans.Extension.HashExtensionBuilder
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

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

Field Summary
private  java.util.Hashtable entries
          list of name/value pairs
 
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, registerNatives, toString, wait, wait, wait
 

Field Detail

entries

private java.util.Hashtable entries
list of name/value pairs
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