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(Object key)
Deprecated.
Indicates whether the specified key is in the context.
|
Object |
get(String key)
Deprecated.
Retrieves from local or global context.
|
Object[] |
getKeys()
Deprecated.
Get all the keys for the values in the context.
|
Object |
localPut(String key,
Object value)
Deprecated.
Allows callers to explicitly put objects in the local context.
|
Object |
put(String key,
Object value)
Deprecated.
Put method also stores values in local scope
|
Object |
remove(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, setMacroLibrariespublic EvaluateContext(InternalContextAdapter inner, RuntimeServices rsvc)
inner - context for parent templatersvc - public Object put(String key, Object value)
put in interface Contextput in class ChainedInternalContextAdapterkey - name of item to setvalue - object to set to keypublic Object get(String key)
get in interface Contextget in class ChainedInternalContextAdapterkey - name of item to getpublic boolean containsKey(Object key)
ContextcontainsKey in interface ContextcontainsKey in class ChainedInternalContextAdapterkey - The key to look for.Context.containsKey(java.lang.Object)public Object[] getKeys()
ContextgetKeys in interface ContextgetKeys in class ChainedInternalContextAdapterContext.getKeys()public Object remove(Object key)
Contextremove in interface Contextremove in class ChainedInternalContextAdapterkey - The name of the value to remove.null
if unmapped.Context.remove(java.lang.Object)public Object localPut(String key, Object value)
localPut in interface InternalWrapperContextlocalPut in class ChainedInternalContextAdapterkey - name of item to set.value - object to set to key.InternalWrapperContext.localPut(java.lang.String,java.lang.Object)Copyright © 2000–2016. All rights reserved.