net.lessy.util.template.velocity
Class VelocityTemplateContext

java.lang.Object
  extended by org.apache.velocity.context.AbstractContext
      extended by org.apache.velocity.VelocityContext
          extended by net.lessy.util.template.velocity.VelocityTemplateContext
All Implemented Interfaces:
Cloneable, TemplateContext, org.apache.velocity.context.Context, org.apache.velocity.context.InternalEventContext

public class VelocityTemplateContext
extends org.apache.velocity.VelocityContext
implements TemplateContext

Wrapper to implement the TemplateContext. This implementation is a Velocity-Implementation

Author:
Hans Lesmeister

Constructor Summary
VelocityTemplateContext()
           
 
Method Summary
 org.apache.velocity.app.event.EventCartridge attachEventCartridge(org.apache.velocity.app.event.EventCartridge arg0)
           
 int getCurrentMacroCallDepth()
           
 String getCurrentMacroName()
           
 org.apache.velocity.runtime.resource.Resource getCurrentResource()
           
 String getCurrentTemplateName()
           
 org.apache.velocity.app.event.EventCartridge getEventCartridge()
           
 List getMacroLibraries()
           
 Object[] getMacroNameStack()
           
 Object[] getTemplateNameStack()
           
 org.apache.velocity.util.introspection.IntrospectionCacheData icacheGet(Object arg0)
           
 void icachePut(Object arg0, org.apache.velocity.util.introspection.IntrospectionCacheData arg1)
           
 void popCurrentMacroName()
           
 void popCurrentTemplateName()
           
 void pushCurrentMacroName(String arg0)
           
 void pushCurrentTemplateName(String arg0)
           
 void setCurrentResource(org.apache.velocity.runtime.resource.Resource arg0)
           
 void setMacroLibraries(List arg0)
           
 
Methods inherited from class org.apache.velocity.VelocityContext
clone, internalContainsKey, internalGet, internalGetKeys, internalPut, internalRemove
 
Methods inherited from class org.apache.velocity.context.AbstractContext
containsKey, get, getChainedContext, getKeys, put, remove
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.lessy.util.template.TemplateContext
containsKey, get, getKeys, put, remove
 

Constructor Detail

VelocityTemplateContext

public VelocityTemplateContext()
Method Detail

pushCurrentTemplateName

public void pushCurrentTemplateName(String arg0)

popCurrentTemplateName

public void popCurrentTemplateName()

getCurrentTemplateName

public String getCurrentTemplateName()

getTemplateNameStack

public Object[] getTemplateNameStack()

pushCurrentMacroName

public void pushCurrentMacroName(String arg0)

popCurrentMacroName

public void popCurrentMacroName()

getCurrentMacroName

public String getCurrentMacroName()

getCurrentMacroCallDepth

public int getCurrentMacroCallDepth()

getMacroNameStack

public Object[] getMacroNameStack()

icacheGet

public org.apache.velocity.util.introspection.IntrospectionCacheData icacheGet(Object arg0)

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

public void setMacroLibraries(List arg0)

getMacroLibraries

public List getMacroLibraries()

attachEventCartridge

public org.apache.velocity.app.event.EventCartridge attachEventCartridge(org.apache.velocity.app.event.EventCartridge arg0)
Specified by:
attachEventCartridge in interface org.apache.velocity.context.InternalEventContext

getEventCartridge

public org.apache.velocity.app.event.EventCartridge getEventCartridge()
Specified by:
getEventCartridge in interface org.apache.velocity.context.InternalEventContext


Copyright © 2012. All Rights Reserved.