com.plumtree.portaluiinfrastructure.tags.data
Class HashtableDataObject

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

public class HashtableDataObject
extends java.lang.Object
implements IHierarchicalDataObject

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


Field Summary
static java.lang.String HIERDATA_DEFAULTKEY
          Default id for hierarchical data.
protected  XPHashtable m_hashtable
          The underlying hashtable object.
protected  XPHashtable m_hiertable
           
 
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.
 XPArrayList GetHierData(java.lang.String _strKey)
          Gets hierarchical data
 void SetData(java.lang.String _strKey, java.lang.String _strValue)
          Sets a name value pair on the hashtable.
 void SetHierData(java.lang.String _strKey, XPArrayList list)
          Sets hierarchical data NOTE: The value is not displayable from tags, this is just used for hierarchical data tags.
 
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.


m_hiertable

protected XPHashtable m_hiertable

HIERDATA_DEFAULTKEY

public static final java.lang.String HIERDATA_DEFAULTKEY
Default id for hierarchical data. NOTE: This definition should realy be in IHierarchicalDataObject but C# doesn't allow constant definitions on interfaces.

See Also:
Constant Field Values
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)

GetHierData

public XPArrayList GetHierData(java.lang.String _strKey)
Description copied from interface: IHierarchicalDataObject
Gets hierarchical data

Specified by:
GetHierData in interface IHierarchicalDataObject
Returns:

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.

SetHierData

public void SetHierData(java.lang.String _strKey,
                        XPArrayList list)
Sets hierarchical data NOTE: The value is not displayable from tags, this is just used for hierarchical data tags.

Specified by:
SetHierData in interface IHierarchicalDataObject
Parameters:
_strKey -
_strValue -

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.