public class CompositeContext
extends java.lang.Object
implements org.apache.velocity.context.Context
Context
implementation that delegates
to a collection of other contexts. The order of the contexts is important
as it checks them in iteration order.
Note: If passed to Velocity it should be wrapped in a VelocityContext
or other chained context that keeps its own local map for mutability as Velocity
likes to put(String, Object)
stuff in the passed in context.
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(java.lang.Object key) |
java.lang.Object |
get(java.lang.String key) |
java.lang.Object[] |
getKeys()
Union of all keys for all contexts.
|
java.lang.Object |
put(java.lang.String key,
java.lang.Object value) |
java.lang.Object |
remove(java.lang.Object key) |
public boolean containsKey(java.lang.Object key)
containsKey
in interface org.apache.velocity.context.Context
public java.lang.Object get(java.lang.String key)
get
in interface org.apache.velocity.context.Context
public java.lang.Object[] getKeys()
getKeys
in interface org.apache.velocity.context.Context
public java.lang.Object put(java.lang.String key, java.lang.Object value)
put
in interface org.apache.velocity.context.Context
public java.lang.Object remove(java.lang.Object key)
remove
in interface org.apache.velocity.context.Context
Copyright © 2003-2014 Atlassian. All Rights Reserved.