org.mmbase.bridge.jsp.taglib.util
Class ContextContainer
java.lang.Object
|
+--java.util.AbstractMap
|
+--java.util.HashMap
|
+--org.mmbase.bridge.jsp.taglib.util.ContextContainer
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Map, java.io.Serializable
- public class ContextContainer
- extends java.util.HashMap
This is a HashMap, but the keys can contain 'dots', in which case
there is searched for HashMaps in the HashMap.
- Version:
- $Id: ContextContainer.java,v 1.3.2.1 2003/02/18 10:57:22 michiel Exp $
- Author:
- Michiel Meeuwissen
- See Also:
- Serialized Form
| Inner classes inherited from class java.util.Map |
java.util.Map.Entry |
|
Constructor Summary |
ContextContainer(java.lang.String _id,
ContextContainer _parent)
Since a ContextContainer can contain other ContextContainer, it
has to know which ContextContainer contains this. |
|
Method Summary |
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsKey(java.lang.String key)
|
boolean |
containsKey(java.lang.String key,
boolean checkParent)
Like the containsKey of HashMap. |
java.lang.Object |
get(java.lang.String key)
|
java.lang.Object |
get(java.lang.String key,
boolean checkParent)
Like get, but you can explicity indicate if to search 'parent' Contextes as well |
java.util.Set |
keySet()
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Keys must be Strings, so put(Object, ..) is forbidden in this HashMap! |
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
Not all Strings can be allowed as keys. |
| Methods inherited from class java.util.HashMap |
clear, clone, containsValue, entrySet, get, isEmpty, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
ContextContainer
public ContextContainer(java.lang.String _id,
ContextContainer _parent)
- Since a ContextContainer can contain other ContextContainer, it
has to know which ContextContainer contains this. And it also
has an id.
put
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
- Keys must be Strings, so put(Object, ..) is forbidden in this HashMap!
- Overrides:
put in class java.util.HashMap
put
public java.lang.Object put(java.lang.String key,
java.lang.Object value)
throws javax.servlet.jsp.JspTagException
- Not all Strings can be allowed as keys. Keys are like variable names.
containsKey
public boolean containsKey(java.lang.Object key)
- Overrides:
containsKey in class java.util.HashMap
containsKey
public boolean containsKey(java.lang.String key,
boolean checkParent)
throws javax.servlet.jsp.JspTagException
- Like the containsKey of HashMap.
- Parameters:
key - The key to searchcheckParent - If this is false, it will only look in the current Container (and below).
containsKey
public boolean containsKey(java.lang.String key)
throws javax.servlet.jsp.JspTagException
get
public java.lang.Object get(java.lang.String key,
boolean checkParent)
throws javax.servlet.jsp.JspTagException
- Like get, but you can explicity indicate if to search 'parent' Contextes as well
get
public java.lang.Object get(java.lang.String key)
throws javax.servlet.jsp.JspTagException
keySet
public java.util.Set keySet()
- Overrides:
keySet in class java.util.HashMap
MMBase build 1.6.5.20030923