org.apache.struts.chain.contexts
Class ContextWrapper

java.lang.Object
  extended by org.apache.struts.chain.contexts.ContextWrapper
All Implemented Interfaces:
Map, org.apache.commons.chain.Context
Direct Known Subclasses:
ActionContextBase

public class ContextWrapper
extends Object
implements org.apache.commons.chain.Context

Provide a base class for any Context Implementation which is primarily intended for use in a subchain.

Classes which extend ContextWrapper may implement typesafe property methods which also leave their values in the underlying context.


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
ContextWrapper(org.apache.commons.chain.Context context)
           Instantiate object as a composite around the given Context.
 
Method Summary
 void clear()
           
 boolean containsKey(Object o)
           
 boolean containsValue(Object o)
           
 Set entrySet()
           
 Object get(Object key)
           
protected  org.apache.commons.chain.Context getBaseContext()
          Provide the underlying Context for this composite.
 boolean isEmpty()
           
 Set keySet()
           
 Object put(Object key, Object value)
           
 void putAll(Map map)
           
 Object remove(Object key)
           
 int size()
           
 Collection values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

ContextWrapper

public ContextWrapper(org.apache.commons.chain.Context context)

Instantiate object as a composite around the given Context.

Parameters:
context - Context instance to wrap
Method Detail

getBaseContext

protected org.apache.commons.chain.Context getBaseContext()
Provide the underlying Context for this composite.

Returns:
The undelrying Context

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map

keySet

public Set keySet()
Specified by:
keySet in interface Map

values

public Collection values()
Specified by:
values in interface Map

clear

public void clear()
Specified by:
clear in interface Map

putAll

public void putAll(Map map)
Specified by:
putAll in interface Map

remove

public Object remove(Object key)
Specified by:
remove in interface Map

put

public Object put(Object key,
                  Object value)
Specified by:
put in interface Map

get

public Object get(Object key)
Specified by:
get in interface Map

containsValue

public boolean containsValue(Object o)
Specified by:
containsValue in interface Map

containsKey

public boolean containsKey(Object o)
Specified by:
containsKey in interface Map

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map

size

public int size()
Specified by:
size in interface Map


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.