public abstract class ChainedInternalContextAdapter extends java.lang.Object implements InternalContextAdapter
| 限定符和类型 | 字段和说明 |
|---|---|
protected InternalContextAdapter |
innerContext
the parent context
|
| 构造器和说明 |
|---|
ChainedInternalContextAdapter(InternalContextAdapter inner)
CTOR, wraps an ICA
|
| 限定符和类型 | 方法和说明 |
|---|---|
EventCartridge |
attachEventCartridge(EventCartridge ec) |
boolean |
containsKey(java.lang.Object key)
Indicates whether the specified key is in the context.
|
java.lang.Object |
get(java.lang.String key)
Retrieves from parent context.
|
InternalContextAdapter |
getBaseContext()
Returns the base full context impl.
|
int |
getCurrentMacroCallDepth()
get the current macro call depth
|
java.lang.String |
getCurrentMacroName()
get the current macro name
|
Resource |
getCurrentResource()
temporary fix to enable #include() to figure out
current encoding.
|
java.lang.String |
getCurrentTemplateName()
get the current template name
|
EventCartridge |
getEventCartridge() |
Context |
getInternalUserContext()
Return the inner / user context.
|
java.lang.Object[] |
getKeys()
Get all the keys for the values in the context.
|
java.util.List |
getMacroLibraries()
Get the macro library list for the current template.
|
java.lang.Object[] |
getMacroNameStack()
Returns the macro name stack in form of an array.
|
java.lang.Object[] |
getTemplateNameStack()
Returns the template name stack in form of an array.
|
IntrospectionCacheData |
icacheGet(java.lang.Object key)
returns an IntrospectionCache Data (@see IntrospectionCacheData)
object if exists for the key
|
void |
icachePut(java.lang.Object key,
IntrospectionCacheData o)
places an IntrospectionCache Data (@see IntrospectionCacheData)
element in the cache for specified key
|
java.lang.Object |
localPut(java.lang.String key,
java.lang.Object value)
Allows callers to explicitly put objects in the local context.
|
void |
popCurrentMacroName()
remove the current macro name from stack
|
void |
popCurrentTemplateName()
remove the current template name from stack
|
void |
pushCurrentMacroName(java.lang.String s)
set the current macro name on top of stack
|
void |
pushCurrentTemplateName(java.lang.String s)
set the current template name on top of stack
|
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)
Removes the value associated with the specified key from the context.
|
void |
setCurrentResource(Resource r) |
void |
setMacroLibraries(java.util.List macroLibraries)
Set the macro library list for the current template.
|
protected InternalContextAdapter innerContext
public ChainedInternalContextAdapter(InternalContextAdapter inner)
inner - contextpublic Context getInternalUserContext()
getInternalUserContext 在接口中 InternalWrapperContextpublic InternalContextAdapter getBaseContext()
InternalWrapperContextgetBaseContext 在接口中 InternalWrapperContextInternalWrapperContext.getBaseContext()public java.lang.Object get(java.lang.String key)
public java.lang.Object put(java.lang.String key,
java.lang.Object value)
public boolean containsKey(java.lang.Object key)
ContextcontainsKey 在接口中 Contextkey - The key to look for.Context.containsKey(java.lang.Object)public java.lang.Object[] getKeys()
ContextgetKeys 在接口中 ContextContext.getKeys()public java.lang.Object remove(java.lang.Object key)
Contextremove 在接口中 Contextkey - The name of the value to remove.null
if unmapped.Context.remove(java.lang.Object)public void pushCurrentTemplateName(java.lang.String s)
s - current template nameInternalHousekeepingContext.pushCurrentTemplateName(java.lang.String)public void popCurrentTemplateName()
InternalHousekeepingContext.popCurrentTemplateName()public java.lang.String getCurrentTemplateName()
InternalHousekeepingContext.getCurrentTemplateName()public java.lang.Object[] getTemplateNameStack()
InternalHousekeepingContext.getTemplateNameStack()public void pushCurrentMacroName(java.lang.String s)
s - current macro nameInternalHousekeepingContext.pushCurrentMacroName(java.lang.String)public void popCurrentMacroName()
InternalHousekeepingContext.popCurrentMacroName()public java.lang.String getCurrentMacroName()
InternalHousekeepingContext.getCurrentMacroName()public int getCurrentMacroCallDepth()
InternalHousekeepingContext.getCurrentMacroCallDepth()public java.lang.Object[] getMacroNameStack()
InternalHousekeepingContext.getMacroNameStack()public IntrospectionCacheData icacheGet(java.lang.Object key)
key - key to find in cacheInternalHousekeepingContext.icacheGet(java.lang.Object)public java.lang.Object localPut(java.lang.String key,
java.lang.Object value)
InternalWrapperContextlocalPut 在接口中 InternalWrapperContextkey - name of item to set.value - object to set to key.InternalWrapperContext.localPut(java.lang.String,java.lang.Object)public void icachePut(java.lang.Object key,
IntrospectionCacheData o)
key - keyo - IntrospectionCacheData object to place in cacheInternalHousekeepingContext.icachePut(java.lang.Object, bboss.org.apache.velocity.util.introspection.IntrospectionCacheData)public void setMacroLibraries(java.util.List macroLibraries)
macroLibraries - list of macro libraries to setInternalHousekeepingContext.setMacroLibraries(List)public java.util.List getMacroLibraries()
InternalHousekeepingContext.getMacroLibraries()public EventCartridge attachEventCartridge(EventCartridge ec)
attachEventCartridge 在接口中 InternalEventContextInternalEventContext.attachEventCartridge(bboss.org.apache.velocity.app.event.EventCartridge)public EventCartridge getEventCartridge()
getEventCartridge 在接口中 InternalEventContextInternalEventContext.getEventCartridge()public void setCurrentResource(Resource r)
InternalHousekeepingContext.setCurrentResource(bboss.org.apache.velocity.runtime.resource.Resource)public Resource getCurrentResource()
InternalHousekeepingContext.getCurrentResource()