protected static class Foreach.NullHolderContext extends ChainedInternalContextAdapter
innerContext| Modifier and Type | Method and Description |
|---|---|
Object |
get(String key)
Get an object from the context, or null if the key is equal to the loop variable
|
Object |
localPut(String key,
Object value)
Allows callers to explicitly put objects in the local context.
|
Object |
put(String key,
Object value)
Put method also stores values in parent context
|
Object |
remove(Object key)
Remove an object from the context
|
attachEventCartridge, containsKey, getBaseContext, getCurrentMacroCallDepth, getCurrentMacroName, getCurrentResource, getCurrentTemplateName, getEventCartridge, getInternalUserContext, getKeys, getMacroLibraries, getMacroNameStack, getTemplateNameStack, icacheGet, icachePut, popCurrentMacroName, popCurrentTemplateName, pushCurrentMacroName, pushCurrentTemplateName, setCurrentResource, setMacroLibrariespublic Object get(String key) throws MethodInvocationException
get in interface Contextget in class ChainedInternalContextAdapterkey - name of item to getMethodInvocationException - passes on potential exception from reference method callContext.get(java.lang.String)public Object put(String key, Object value)
ChainedInternalContextAdapterput in interface Contextput in class ChainedInternalContextAdapterkey - name of item to setvalue - object to set to keyContext.put(java.lang.String key, java.lang.Object value)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(String, Object)public Object remove(Object key)
remove in interface Contextremove in class ChainedInternalContextAdapterkey - The name of the value to remove.null
if unmapped.Context.remove(java.lang.Object key)Copyright © 2000–2016. All rights reserved.