|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.velocity.context.InternalContextBase
org.apache.velocity.context.AbstractContext
org.apache.velocity.VelocityContext
org.apache.tools.dvsl.DVSLContext
Context implementation that handles wrapping several contexts simultaneously. The style context gets special treatment, getting checked first.
Field Summary | |
protected java.util.List |
contextList
|
protected java.util.Map |
ctx
|
private java.util.Stack |
nodeStack
Used to hold the nodes as we get invoked from within the document for applyTemplates() duties |
protected org.apache.velocity.context.Context |
styleContext
|
Fields inherited from class org.apache.velocity.VelocityContext |
|
Fields inherited from class org.apache.velocity.context.AbstractContext |
|
Constructor Summary | |
(package private) |
DVSLContext()
|
Method Summary | |
void |
addContext(org.apache.velocity.context.Context c)
|
void |
clearContexts()
|
void |
clearNode()
|
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 |
DVSLNode |
peekNode()
|
DVSLNode |
popNode()
|
DVSLNode |
pushNode(DVSLNode n)
|
void |
setStyleContext(org.apache.velocity.context.Context c)
|
Methods inherited from class org.apache.velocity.VelocityContext |
clone |
Methods inherited from class org.apache.velocity.context.AbstractContext |
attachEventCartridge, containsKey, get, getChainedContext, getCurrentResource, getCurrentTemplateName, getEventCartridge, getKeys, getTemplateNameStack, icacheGet, icachePut, popCurrentTemplateName, pushCurrentTemplateName, put, remove, setCurrentResource |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.apache.velocity.context.Context styleContext
protected java.util.List contextList
private java.util.Stack nodeStack
protected java.util.Map ctx
Constructor Detail |
DVSLContext()
Method Detail |
public DVSLNode pushNode(DVSLNode n)
public DVSLNode peekNode()
public DVSLNode popNode()
public void clearNode()
public void clearContexts()
public void addContext(org.apache.velocity.context.Context c)
public void setStyleContext(org.apache.velocity.context.Context c)
public java.lang.Object internalGet(java.lang.String key)
key
- name of value to get
public java.lang.Object internalPut(java.lang.String key, java.lang.Object value)
key
- name of value to storevalue
- value to store
public boolean internalContainsKey(java.lang.Object key)
key
- name of value to check
public java.lang.Object[] internalGetKeys()
public java.lang.Object internalRemove(java.lang.Object key)
key
- name of value to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |