|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.velocity.context.AbstractContext
org.apache.velocity.VelocityContext
org.apache.dvsl.DVSLNodeContext
class DVSLNodeContext
Context implementation that is the outer context during the transformation. Holds the node stack and also protects the 'special' context elements like 'node'
There are special elements like 'node', which is readonly and corresponds to the current node, and 'attrib', which corresponds to a map of attributes for the current node.
| Field Summary | |
|---|---|
private static java.lang.String |
ATTRIB
Magic context entity that corresponds to a Map of attributes for the current node |
protected java.util.Map |
ctx
|
private static java.lang.String |
NODE
Magic context entity that corresponds to the current node |
private java.util.Stack |
nodeStack
Used to hold the nodes as we get invoked from within the document for applyTemplates() duties |
| Constructor Summary | |
|---|---|
private |
DVSLNodeContext()
|
|
DVSLNodeContext(org.apache.velocity.context.Context context)
|
| Method Summary | |
|---|---|
org.apache.velocity.app.event.EventCartridge |
attachEventCartridge(org.apache.velocity.app.event.EventCartridge arg0)
|
(package private) void |
clearNode()
|
boolean |
getAllowRendering()
|
org.apache.velocity.runtime.resource.Resource |
getCurrentResource()
|
java.lang.String |
getCurrentTemplateName()
|
org.apache.velocity.app.event.EventCartridge |
getEventCartridge()
|
java.lang.Object[] |
getTemplateNameStack()
|
org.apache.velocity.util.introspection.IntrospectionCacheData |
icacheGet(java.lang.Object arg0)
|
void |
icachePut(java.lang.Object arg0,
org.apache.velocity.util.introspection.IntrospectionCacheData arg1)
|
boolean |
internalContainsKey(java.lang.Object key)
determines if there is a value for the given key |
java.lang.Object |
internalGet(java.lang.String key)
retrieves value for key from internal storage |
java.lang.Object[] |
internalGetKeys()
returns array of keys $$$ GMJ todo |
java.lang.Object |
internalPut(java.lang.String key,
java.lang.Object value)
stores the value for key to internal storage |
java.lang.Object |
internalRemove(java.lang.Object key)
remove a key/value pair from the internal storage |
(package private) DVSLNode |
peekNode()
|
void |
popCurrentTemplateName()
|
(package private) DVSLNode |
popNode()
|
void |
pushCurrentTemplateName(java.lang.String arg0)
|
(package private) DVSLNode |
pushNode(DVSLNode n)
|
void |
setAllowRendering(boolean arg0)
|
void |
setCurrentResource(org.apache.velocity.runtime.resource.Resource arg0)
|
| Methods inherited from class org.apache.velocity.VelocityContext |
|---|
clone |
| 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 |
| Field Detail |
|---|
private static final java.lang.String NODE
private static final java.lang.String ATTRIB
private java.util.Stack nodeStack
protected java.util.Map ctx
| Constructor Detail |
|---|
public DVSLNodeContext(org.apache.velocity.context.Context context)
private DVSLNodeContext()
| Method Detail |
|---|
public java.lang.Object internalGet(java.lang.String key)
internalGet in class org.apache.velocity.VelocityContextkey - name of value to get
public java.lang.Object internalPut(java.lang.String key,
java.lang.Object value)
internalPut in class org.apache.velocity.VelocityContextkey - name of value to storevalue - value to store
public boolean internalContainsKey(java.lang.Object key)
internalContainsKey in class org.apache.velocity.VelocityContextkey - name of value to check
public java.lang.Object[] internalGetKeys()
internalGetKeys in class org.apache.velocity.VelocityContextpublic java.lang.Object internalRemove(java.lang.Object key)
internalRemove in class org.apache.velocity.VelocityContextkey - name of value to remove
DVSLNode pushNode(DVSLNode n)
DVSLNode peekNode()
DVSLNode popNode()
void clearNode()
public void pushCurrentTemplateName(java.lang.String arg0)
public void popCurrentTemplateName()
public java.lang.String getCurrentTemplateName()
public java.lang.Object[] getTemplateNameStack()
public org.apache.velocity.util.introspection.IntrospectionCacheData icacheGet(java.lang.Object arg0)
public void icachePut(java.lang.Object arg0,
org.apache.velocity.util.introspection.IntrospectionCacheData arg1)
public void setCurrentResource(org.apache.velocity.runtime.resource.Resource arg0)
public org.apache.velocity.runtime.resource.Resource getCurrentResource()
public boolean getAllowRendering()
public void setAllowRendering(boolean arg0)
public org.apache.velocity.app.event.EventCartridge attachEventCartridge(org.apache.velocity.app.event.EventCartridge arg0)
attachEventCartridge in interface org.apache.velocity.context.InternalEventContextpublic org.apache.velocity.app.event.EventCartridge getEventCartridge()
getEventCartridge in interface org.apache.velocity.context.InternalEventContext
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||