org.mmbase.bridge.jsp.taglib.util
Class StandaloneContextContainer

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by org.mmbase.bridge.jsp.taglib.util.ContextContainer
          extended by org.mmbase.bridge.jsp.taglib.util.StandaloneContextContainer
All Implemented Interfaces:
Map<String,Object>
Direct Known Subclasses:
ContextCollector

public class StandaloneContextContainer
extends ContextContainer

This ContextContainer provides its own 'backing', it is used as 'subcontext' in other contextes.

Since:
MMBase-1.8
Version:
$Id: StandaloneContextContainer.java 39578 2009-11-09 09:57:03Z michiel $
Author:
Michiel Meeuwissen

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
protected  BasicBacking backing
          A simple map, which besides to itself also registers to page-context.
protected  ContextContainer parent
           
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.util.ContextContainer
LOCATION_APPLICATION, LOCATION_ATTRIBUTES, LOCATION_COOKIE, LOCATION_MULTIPART, LOCATION_MULTIPART_OPT, LOCATION_NOTSET, LOCATION_PAGE, LOCATION_PARAMETERS, LOCATION_PARENT, LOCATION_REQUEST, LOCATION_SESSION, LOCATION_THIS
 
Constructor Summary
StandaloneContextContainer(PageContext pc, String i, ContextContainer p)
          Since a ContextContainer can contain other ContextContainer, it has to know which ContextContainer contains this.
StandaloneContextContainer(String i, Map<String,Object> values, boolean ignoreEL)
           
 
Method Summary
protected  BasicBacking createBacking(PageContext pc)
           
 Set<Map.Entry<String,Object>> entrySet(boolean checkParent)
           
 BasicBacking getBacking()
          Returns the Map which will be used for actually storing stuff.
 ContextContainer getParent()
           
protected  Set<String> keySet(boolean checkParent)
           
 void release(PageContext pc, ContextContainer p)
           
 void setParent(PageContext pc, ContextContainer p)
           
protected  boolean simpleContainsKey(String key, boolean checkParent)
          Like containsKey but doesn't check for dots.
protected  Object simpleGet(String key, boolean checkParent)
          Like get, but does not try to search dots, because you know already that there aren't.
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.util.ContextContainer
clear, containsKey, containsKey, entrySet, find, find, findAndRegister, findAndRegister, findAndRegister, findAndRegister, findAndRegister, findAndRegisterString, findAndRegisterString, fixEncoding, fixEncoding, get, get, getDefaultCharacterEncoding, getId, getObject, getPageContext, getPair, isContextIdentifierChar, isPresent, isRegistered, locationToString, put, register, register, register, register, registerAll, registerNode, remove, reregister, setJspVar, stringToLocation, toString, unRegister, unRegister, unRegisterAll
 
Methods inherited from class java.util.AbstractMap
clone, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsValue, equals, hashCode, isEmpty, keySet, putAll, size, values
 

Field Detail

backing

protected final BasicBacking backing
A simple map, which besides to itself also registers to page-context.


parent

protected ContextContainer parent
Constructor Detail

StandaloneContextContainer

public StandaloneContextContainer(PageContext pc,
                                  String i,
                                  ContextContainer p)
Since a ContextContainer can contain other ContextContainer, it has to know which ContextContainer contains this. And it also has an id.


StandaloneContextContainer

public StandaloneContextContainer(String i,
                                  Map<String,Object> values,
                                  boolean ignoreEL)
Since:
MMBase-1.9
Method Detail

setParent

public void setParent(PageContext pc,
                      ContextContainer p)
Overrides:
setParent in class ContextContainer

simpleContainsKey

protected boolean simpleContainsKey(String key,
                                    boolean checkParent)
Description copied from class: ContextContainer
Like containsKey but doesn't check for dots.

Overrides:
simpleContainsKey in class ContextContainer

simpleGet

protected Object simpleGet(String key,
                           boolean checkParent)
Like get, but does not try to search dots, because you know already that there aren't.

Overrides:
simpleGet in class ContextContainer

keySet

protected Set<String> keySet(boolean checkParent)
Overrides:
keySet in class ContextContainer
Since:
MMBase-1.7

getParent

public ContextContainer getParent()
Specified by:
getParent in class ContextContainer

entrySet

public Set<Map.Entry<String,Object>> entrySet(boolean checkParent)
Overrides:
entrySet in class ContextContainer

createBacking

protected BasicBacking createBacking(PageContext pc)

getBacking

public final BasicBacking getBacking()
Description copied from class: ContextContainer
Returns the Map which will be used for actually storing stuff.

Specified by:
getBacking in class ContextContainer

release

public void release(PageContext pc,
                    ContextContainer p)
Overrides:
release in class ContextContainer


MMBase 2.0-SNAPSHOT - null