Class TreeMapContext
java.lang.Object
org.apache.velocity.context.AbstractContext
org.apache.velocity.example.TreeMapContext
- All Implemented Interfaces:
org.apache.velocity.context.Context, org.apache.velocity.context.InternalEventContext
public class TreeMapContext
extends org.apache.velocity.context.AbstractContext
Example context impl that uses a TreeMap
Not much point other than to show how easy it is.
This is unsupported, example code.
- Version:
- $Id$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.velocity.app.event.EventCartridgeattachEventCartridge(org.apache.velocity.app.event.EventCartridge arg0) intorg.apache.velocity.runtime.resource.Resourceorg.apache.velocity.app.event.EventCartridgeList<org.apache.velocity.Template> String[]String[]org.apache.velocity.util.introspection.IntrospectionCacheDatavoidbooleaninternalGet(String key) String[]internalPut(String key, Object value) internalRemove(String key) voidvoidvoidpushCurrentMacroName(String arg0) voidvoidsetCurrentResource(org.apache.velocity.runtime.resource.Resource arg0) voidsetMacroLibraries(List<org.apache.velocity.Template> arg0) Methods inherited from class org.apache.velocity.context.AbstractContext
containsKey, get, getChainedContext, getKeys, put, remove
-
Field Details
-
context
-
-
Constructor Details
-
TreeMapContext
public TreeMapContext() -
TreeMapContext
public TreeMapContext(org.apache.velocity.context.Context inner)
-
-
Method Details
-
internalGet
-
internalPut
-
internalContainsKey
- Specified by:
internalContainsKeyin classorg.apache.velocity.context.AbstractContext
-
internalGetKeys
- Specified by:
internalGetKeysin classorg.apache.velocity.context.AbstractContext
-
internalRemove
-
pushCurrentTemplateName
-
popCurrentTemplateName
public void popCurrentTemplateName() -
getCurrentTemplateName
-
getTemplateNameStack
-
pushCurrentMacroName
-
popCurrentMacroName
public void popCurrentMacroName() -
getCurrentMacroName
-
getCurrentMacroCallDepth
public int getCurrentMacroCallDepth() -
getMacroNameStack
-
icacheGet
-
icachePut
public void icachePut(Object arg0, org.apache.velocity.util.introspection.IntrospectionCacheData arg1) -
setCurrentResource
public void setCurrentResource(org.apache.velocity.runtime.resource.Resource arg0) -
getCurrentResource
public org.apache.velocity.runtime.resource.Resource getCurrentResource() -
setMacroLibraries
-
getMacroLibraries
-
attachEventCartridge
public org.apache.velocity.app.event.EventCartridge attachEventCartridge(org.apache.velocity.app.event.EventCartridge arg0) - Specified by:
attachEventCartridgein interfaceorg.apache.velocity.context.InternalEventContext
-
getEventCartridge
public org.apache.velocity.app.event.EventCartridge getEventCartridge()- Specified by:
getEventCartridgein interfaceorg.apache.velocity.context.InternalEventContext
-