org.apache.velocity.context
class InternalContextBase extends Object implements InternalHousekeepingContext, InternalEventContext, Serializable
Version: $Id: InternalContextBase.java,v 1.8.12.1 2004/03/03 23:22:54 geirm Exp $
Field Summary | |
---|---|
Resource | currentResource
Current resource - used for carrying encoding and other
information down into the rendering process |
EventCartridge | eventCartridge
EventCartridge we are to carry. |
HashMap | introspectionCache
cache for node/context specific introspection information |
Stack | templateNameStack
Template name stack. |
Method Summary | |
---|---|
EventCartridge | attachEventCartridge(EventCartridge ec) |
Resource | getCurrentResource() |
String | getCurrentTemplateName()
get the current template name
|
EventCartridge | getEventCartridge() |
Object[] | 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
|
void | popCurrentTemplateName()
remove the current template name from stack |
void | pushCurrentTemplateName(String s)
set the current template name on top of stack
|
void | setCurrentResource(Resource r) |
Returns: String current template name
Returns: Object[] with the template name stack contents.
Parameters: key key to find in cache
Returns: cache object
Parameters: key key o IntrospectionCacheData object to place in cache
Parameters: s current template name