|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.velocity.context.ChainedInternalContextAdapter
org.apache.velocity.runtime.directive.Foreach.NullHolderContext
protected static class Foreach.NullHolderContext
A special context to use when the foreach iterator returns a null. This is required since the standard context may not support nulls. All puts and gets are passed through, except for the foreach iterator key.
| Field Summary |
|---|
| Fields inherited from class org.apache.velocity.context.ChainedInternalContextAdapter |
|---|
innerContext |
| Method Summary | |
|---|---|
java.lang.Object |
get(java.lang.String key)
Get an object from the context, or null if the key is equal to the loop variable |
java.lang.Object |
localPut(java.lang.String key,
java.lang.Object value)
Allows callers to explicitly put objects in the local context. |
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
Put method also stores values in parent context |
java.lang.Object |
remove(java.lang.Object key)
Remove an object from the context |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.lang.Object get(java.lang.String key)
throws MethodInvocationException
get in interface Contextget in class ChainedInternalContextAdapterkey - name of item to get
MethodInvocationException - passes on potential exception from reference method callContext.get(java.lang.String)
public java.lang.Object put(java.lang.String key,
java.lang.Object value)
ChainedInternalContextAdapter
put in interface Contextput in class ChainedInternalContextAdapterkey - name of item to setvalue - object to set to key
Context.put(java.lang.String key, java.lang.Object value)
public java.lang.Object localPut(java.lang.String key,
java.lang.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 java.lang.Object remove(java.lang.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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||