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, setMacroLibraries
public Object get(String key) throws MethodInvocationException
get
in interface Context
get
in class ChainedInternalContextAdapter
key
- name of item to getMethodInvocationException
- passes on potential exception from reference method callContext.get(java.lang.String)
public Object put(String key, Object value)
ChainedInternalContextAdapter
put
in interface Context
put
in class ChainedInternalContextAdapter
key
- 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 InternalWrapperContext
localPut
in class ChainedInternalContextAdapter
key
- name of item to set.value
- object to set to key.InternalWrapperContext.localPut(String, Object)
public Object remove(Object key)
remove
in interface Context
remove
in class ChainedInternalContextAdapter
key
- The name of the value to remove.null
if unmapped.Context.remove(java.lang.Object key)
Copyright © 2000–2018. All rights reserved.