Package org.apache.velocity.example
Class TreeMapContext
java.lang.Object
org.apache.velocity.context.AbstractContext
org.apache.velocity.example.TreeMapContext
- All Implemented Interfaces:
Context,InternalEventContext
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$
- Author:
- Geir Magnusson Jr.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintString[]String[]voidicachePut(Object arg0, IntrospectionCacheData arg1) booleaninternalGet(String key) String[]internalPut(String key, Object value) internalRemove(String key) voidvoidvoidpushCurrentMacroName(String arg0) voidvoidsetCurrentResource(Resource arg0) voidsetMacroLibraries(List<Template> arg0) Methods inherited from class org.apache.velocity.context.AbstractContext
containsKey, get, getChainedContext, getKeys, put, remove
-
Constructor Details
-
TreeMapContext
public TreeMapContext() -
TreeMapContext
-
-
Method Details
-
internalGet
- Specified by:
internalGetin classAbstractContext
-
internalPut
- Specified by:
internalPutin classAbstractContext
-
internalContainsKey
- Specified by:
internalContainsKeyin classAbstractContext
-
internalGetKeys
- Specified by:
internalGetKeysin classAbstractContext
-
internalRemove
- Specified by:
internalRemovein classAbstractContext
-
pushCurrentTemplateName
-
popCurrentTemplateName
public void popCurrentTemplateName() -
getCurrentTemplateName
-
getTemplateNameStack
-
pushCurrentMacroName
-
popCurrentMacroName
public void popCurrentMacroName() -
getCurrentMacroName
-
getCurrentMacroCallDepth
public int getCurrentMacroCallDepth() -
getMacroNameStack
-
icacheGet
-
icachePut
-
setCurrentResource
-
getCurrentResource
-
setMacroLibraries
-
getMacroLibraries
-
attachEventCartridge
- Specified by:
attachEventCartridgein interfaceInternalEventContext
-
getEventCartridge
- Specified by:
getEventCartridgein interfaceInternalEventContext
-