Package org.apache.velocity.example
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.EventCartridge
attachEventCartridge
(org.apache.velocity.app.event.EventCartridge arg0) int
org.apache.velocity.runtime.resource.Resource
org.apache.velocity.app.event.EventCartridge
List
<org.apache.velocity.Template> String[]
String[]
org.apache.velocity.util.introspection.IntrospectionCacheData
void
boolean
internalGet
(String key) String[]
internalPut
(String key, Object value) internalRemove
(String key) void
void
void
pushCurrentMacroName
(String arg0) void
void
setCurrentResource
(org.apache.velocity.runtime.resource.Resource arg0) void
setMacroLibraries
(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
- Specified by:
internalGet
in classorg.apache.velocity.context.AbstractContext
-
internalPut
- Specified by:
internalPut
in classorg.apache.velocity.context.AbstractContext
-
internalContainsKey
- Specified by:
internalContainsKey
in classorg.apache.velocity.context.AbstractContext
-
internalGetKeys
- Specified by:
internalGetKeys
in classorg.apache.velocity.context.AbstractContext
-
internalRemove
- Specified by:
internalRemove
in classorg.apache.velocity.context.AbstractContext
-
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:
attachEventCartridge
in interfaceorg.apache.velocity.context.InternalEventContext
-
getEventCartridge
public org.apache.velocity.app.event.EventCartridge getEventCartridge()- Specified by:
getEventCartridge
in interfaceorg.apache.velocity.context.InternalEventContext
-