|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |
interface to encapsulate the 'stuff' for internal operation of velocity. We use the context as a thread-safe storage : we take advantage of the fact that it's a visitor of sorts to all nodes (that matter) of the AST during init() and render(). Currently, it carries the template name for namespace support, as well as node-local context data introspection caching.
Property Summary | |
---|---|
NVelocity.Runtime.Resource.Resource | CurrentResource |
string | CurrentTemplateName |
object[] | TemplateNameStack |
Method Summary | |
---|---|
NVelocity.Util.Introspection.IntrospectionCacheData |
ICacheGet(object key) get the current template name * Returns the template name stack in form of an array. * |
void | ICachePut(object key, NVelocity.Util.Introspection.IntrospectionCacheData o) |
void |
PopCurrentTemplateName() remove the current template name from stack |
void |
PushCurrentTemplateName(string s) set the current template name on top of stack |
Property Detail |
---|
public NVelocity.Runtime.Resource.Resource CurrentResource
public string CurrentTemplateName
public object[] TemplateNameStack
Method Detail |
---|
public NVelocity.Util.Introspection.IntrospectionCacheData ICacheGet(object key)
get the current template name * Returns the template name stack in form of an array. *
Parameters:
key
- key to find in cache
public void ICachePut(object key, NVelocity.Util.Introspection.IntrospectionCacheData o)
Parameters:
key
- key
o
- IntrospectionCacheData object to place in cache
public void PopCurrentTemplateName()
remove the current template name from stack
public void PushCurrentTemplateName(string s)
set the current template name on top of stack
Parameters:
s
- current template name
|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |