|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap<K,V> java.util.HashMap atg.search.query.formhandlers.HashMapMap
public class HashMapMap
An implementation of a HashMap which by default returns another HashMapMap for any key that has not already been set to some value. This makes it very easy to create nested maps from JSP.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
Constructor Summary | |
---|---|
HashMapMap()
Create a instance of this class |
Method Summary | |
---|---|
void |
accept(HashMapMapVisitor pVisitor)
Accept a visitor to this root node. |
protected void |
accept(java.lang.Object pKey,
HashMapMapVisitor pVisitor)
Accept visitors, recursively. |
void |
acceptChildren(HashMapMapVisitor pVisitor)
Invoke accept( Object, HashMapMapVisitor ) on all value elements which are HashMapMap instances. |
java.lang.Object |
get(java.lang.Object pKey)
Get the value associated with the specified key. |
HashMapMap |
getParent()
Get the parent HashMapMap or null if there is no parent |
java.lang.Object |
put(java.lang.Object pKey,
java.lang.Object pValue)
Associate an object with specified key, return previously associated object. |
java.lang.Object |
remove(java.lang.Object pKey)
Remove value associated with specified key, return that value or null if no current value exists. |
void |
setParent(HashMapMap pParentMap)
Set the parent map |
java.lang.String |
toString()
Don't display as "{}" when empty so empty input fields on the page are actually empty. |
Methods inherited from class java.util.HashMap |
---|
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, putAll, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public HashMapMap()
Method Detail |
---|
public HashMapMap getParent()
public void setParent(HashMapMap pParentMap)
pParentMap
- the parent HashMapMap or nullpublic java.lang.Object get(java.lang.Object pKey)
get
in interface java.util.Map
get
in class java.util.HashMap
pKey
- the key
public java.lang.Object put(java.lang.Object pKey, java.lang.Object pValue)
put
in interface java.util.Map
put
in class java.util.HashMap
pKey
- the keypValue
- the value
public java.lang.Object remove(java.lang.Object pKey)
remove
in interface java.util.Map
remove
in class java.util.HashMap
pKey
- the key
public java.lang.String toString()
toString
in class java.util.AbstractMap
public void accept(HashMapMapVisitor pVisitor)
pVisitor
- the visitorpublic void acceptChildren(HashMapMapVisitor pVisitor)
pVisitor
- the visitorprotected void accept(java.lang.Object pKey, HashMapMapVisitor pVisitor)
pKey
- the element keypVisitor
- the visitor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |