public class TreeMapContext extends AbstractContext
| Constructor and Description |
|---|
TreeMapContext() |
TreeMapContext(Context inner) |
| Modifier and Type | Method and Description |
|---|---|
EventCartridge |
attachEventCartridge(EventCartridge ec) |
int |
getCurrentMacroCallDepth()
get the current macro call depth
|
String |
getCurrentMacroName()
get the current macro name
|
Resource |
getCurrentResource()
temporary fix to enable #include() to figure out
current encoding.
|
String |
getCurrentTemplateName()
get the current template name
|
EventCartridge |
getEventCartridge() |
List |
getMacroLibraries()
Get the macro library list for the current template.
|
String[] |
getMacroNameStack()
get the current macro name stack
|
String[] |
getTemplateNameStack()
get the current template name stack
|
IntrospectionCacheData |
icacheGet(Object key)
returns an IntrospectionCache Data (@see IntrospectionCacheData)
object if exists for the key
|
void |
icachePut(Object key,
IntrospectionCacheData o)
places an IntrospectionCache Data (@see IntrospectionCacheData)
element in the cache for specified key
|
boolean |
internalContainsKey(String key)
Implement to determine if a key is in the storage.
|
Object |
internalGet(String key)
Implement to return a value from the context storage.
|
String[] |
internalGetKeys()
Implement to return an object array of key
strings from your storage.
|
Object |
internalPut(String key,
Object value)
Implement to put a value into the context storage.
|
Object |
internalRemove(String key)
Implement to remove an item from your storage.
|
void |
popCurrentMacroName()
remove the current macro name from stack
|
void |
popCurrentTemplateName()
remove the current template name from stack
|
void |
pushCurrentMacroName(String s)
set the current macro name on top of stack
|
void |
pushCurrentTemplateName(String s)
set the current template name on top of stack
|
void |
setCurrentResource(Resource r) |
void |
setMacroLibraries(List macroLibraries)
Set the macro library list for the current template.
|
containsKey, get, getChainedContext, getKeys, put, removepublic TreeMapContext()
public TreeMapContext(Context inner)
public Object internalGet(String key)
AbstractContextinternalGet in class AbstractContextkey - key whose associated value is to be returnedpublic Object internalPut(String key, Object value)
AbstractContextinternalPut in class AbstractContextkey - key with which to associate the valuevalue - value to be associated with the keypublic boolean internalContainsKey(String key)
AbstractContextinternalContainsKey in class AbstractContextkey - key to test for existencepublic String[] internalGetKeys()
AbstractContextinternalGetKeys in class AbstractContextpublic Object internalRemove(String key)
AbstractContextinternalRemove in class AbstractContextkey - key to removepublic void pushCurrentTemplateName(String s)
s - current template namepublic void popCurrentTemplateName()
public String getCurrentTemplateName()
public String[] getTemplateNameStack()
public void pushCurrentMacroName(String s)
s - current macro namepublic void popCurrentMacroName()
public String getCurrentMacroName()
public int getCurrentMacroCallDepth()
public String[] getMacroNameStack()
public IntrospectionCacheData icacheGet(Object key)
key - key to find in cachepublic void icachePut(Object key, IntrospectionCacheData o)
key - keyo - IntrospectionCacheData object to place in cachepublic void setCurrentResource(Resource r)
InternalHousekeepingContext.setCurrentResource(org.apache.velocity.runtime.resource.Resource)public Resource getCurrentResource()
InternalHousekeepingContext.getCurrentResource()public void setMacroLibraries(List macroLibraries)
macroLibraries - list of macro libraries to setInternalHousekeepingContext.setMacroLibraries(List)public List getMacroLibraries()
InternalHousekeepingContext.getMacroLibraries()public EventCartridge attachEventCartridge(EventCartridge ec)
attachEventCartridge in interface InternalEventContextInternalEventContext.attachEventCartridge(org.apache.velocity.app.event.EventCartridge)public EventCartridge getEventCartridge()
getEventCartridge in interface InternalEventContextInternalEventContext.getEventCartridge()Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.