com.plumtree.portaluiinfrastructure.tags.data
Class HashtableDataObject

java.lang.Object
  extended by com.plumtree.portaluiinfrastructure.tags.data.HashtableDataObject
All Implemented Interfaces:
IDataObject

public class HashtableDataObject
extends java.lang.Object
implements IDataObject

This class is wrapper around XPHashtable that allows it to be used as a data collection in Tag memory.


Field Summary
protected  XPHashtable m_hashtable
          The underlying hashtable object.
 
Constructor Summary
HashtableDataObject()
          Constructor for the Hashtable wrapper data object.
HashtableDataObject(XPHashtable _hashtable)
          Constructor for the Hashtable wrapper data object that takes a pre-constructed hashtable.
 
Method Summary
 java.lang.String GetData(java.lang.String _strKey)
          Gets the data stored with a particular key.
 XPHashtable GetHashTable()
          Get the underlying hashtable object.
 void SetData(java.lang.String _strKey, java.lang.String _strValue)
          Sets a name value pair on the hashtable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_hashtable

protected final XPHashtable m_hashtable
The underlying hashtable object.

Constructor Detail

HashtableDataObject

public HashtableDataObject(XPHashtable _hashtable)
Constructor for the Hashtable wrapper data object that takes a pre-constructed hashtable.

Parameters:
_hashtable - A pre-constructed hashtable.

HashtableDataObject

public HashtableDataObject()
Constructor for the Hashtable wrapper data object.

Method Detail

GetData

public java.lang.String GetData(java.lang.String _strKey)
Description copied from interface: IDataObject
Gets the data stored with a particular key.

Specified by:
GetData in interface IDataObject
Parameters:
_strKey - The key for the requested data
Returns:
String The requested data
See Also:
IDataObject.GetData(String)

SetData

public void SetData(java.lang.String _strKey,
                    java.lang.String _strValue)
Sets a name value pair on the hashtable.

Parameters:
_strKey - The name used to store the value.
_strValue - The value to be stored.

GetHashTable

public XPHashtable GetHashTable()
Get the underlying hashtable object.

Returns:
XPHashtable The underlying hashtable object.



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.