org.apache.velocity.context
public class EvaluateContext extends ChainedInternalContextAdapter
VelocityContext
.innerContext
Constructor and Description |
---|
EvaluateContext(InternalContextAdapter inner,
RuntimeServices rsvc)
Deprecated.
CTOR, wraps an ICA
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(java.lang.Object key)
Deprecated.
Indicates whether the specified key is in the context.
|
java.lang.Object |
get(java.lang.String key)
Deprecated.
Retrieves from local or global context.
|
java.lang.Object[] |
getKeys()
Deprecated.
Get all the keys for the values in the context.
|
java.lang.Object |
localPut(java.lang.String key,
java.lang.Object value)
Deprecated.
Allows callers to explicitly put objects in the local context.
|
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
Deprecated.
Put method also stores values in local scope
|
java.lang.Object |
remove(java.lang.Object key)
Deprecated.
Removes the value associated with the specified key from the context.
|
attachEventCartridge, getBaseContext, getCurrentMacroCallDepth, getCurrentMacroName, getCurrentResource, getCurrentTemplateName, getEventCartridge, getInternalUserContext, getMacroLibraries, getMacroNameStack, getTemplateNameStack, icacheGet, icachePut, popCurrentMacroName, popCurrentTemplateName, pushCurrentMacroName, pushCurrentTemplateName, setCurrentResource, setMacroLibraries
public EvaluateContext(InternalContextAdapter inner, RuntimeServices rsvc)
inner
- context for parent templatersvc
- public java.lang.Object put(java.lang.String key, java.lang.Object value)
put
in interface Context
put
in class ChainedInternalContextAdapter
key
- name of item to setvalue
- object to set to keypublic java.lang.Object get(java.lang.String key)
get
in interface Context
get
in class ChainedInternalContextAdapter
key
- name of item to getpublic boolean containsKey(java.lang.Object key)
Context
containsKey
in interface Context
containsKey
in class ChainedInternalContextAdapter
key
- The key to look for.Context.containsKey(java.lang.Object)
public java.lang.Object[] getKeys()
Context
getKeys
in interface Context
getKeys
in class ChainedInternalContextAdapter
Context.getKeys()
public java.lang.Object remove(java.lang.Object key)
Context
remove
in interface Context
remove
in class ChainedInternalContextAdapter
key
- The name of the value to remove.null
if unmapped.Context.remove(java.lang.Object)
public java.lang.Object localPut(java.lang.String key, java.lang.Object value)
localPut
in interface InternalWrapperContext
localPut
in class ChainedInternalContextAdapter
key
- name of item to set.value
- object to set to key.InternalWrapperContext.localPut(java.lang.String,java.lang.Object)
Copyright © 2000-2014. All Rights Reserved.