Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.dvsl
Class DVSLContext

    java.lang.Object
      org.apache.velocity.context.AbstractContext
          org.apache.velocity.VelocityContext
              org.apache.dvsl.DVSLContext

All Implemented Interfaces:
  java.lang.Cloneable, org.apache.velocity.context.Context, org.apache.velocity.context.InternalEventContext

     class DVSLContext

extends org.apache.velocity.VelocityContext

Context implementation that handles wrapping several contexts simultaneously. The style context gets special treatment, getting checked first.

Author:
  Geir Magnusson Jr.

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`

Constructor Summary
`DVSLContext()`

Method Summary
`void` | `addContext(org.apache.velocity.context.Context c)`
`org.apache.velocity.app.event.EventCartridge` | `attachEventCartridge(org.apache.velocity.app.event.EventCartridge arg0)`
`void` | `clearContexts()`
`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
`DVSLNode` | `peekNode()`
`void` | `popCurrentTemplateName()`
`DVSLNode` | `popNode()`
`void` | `pushCurrentTemplateName(java.lang.String arg0)`
`DVSLNode` | `pushNode(DVSLNode n)`
`void` | `setAllowRendering(boolean arg0)`
`void` | `setCurrentResource(org.apache.velocity.runtime.resource.Resource arg0)`
`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
`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

### styleContext

    protected org.apache.velocity.context.Context styleContext

### contextList

    protected java.util.List contextList

### nodeStack

    private java.util.Stack nodeStack

  Used to hold the nodes as we get invoked from within the document for applyTemplates() duties

### ctx

    protected java.util.Map ctx

Constructor Detail

### DVSLContext

    DVSLContext()

Method Detail

### pushNode

    public DVSLNode pushNode(DVSLNode n)

### peekNode

    public DVSLNode peekNode()

### popNode

    public DVSLNode popNode()

### clearNode

    public void clearNode()

### clearContexts

    public void clearContexts()

### addContext

    public void addContext(org.apache.velocity.context.Context c)

### setStyleContext

    public void setStyleContext(org.apache.velocity.context.Context c)

### internalGet

    public java.lang.Object internalGet(java.lang.String key)

  retrieves value for key from internal storage

  Overrides:
    `internalGet` in class `org.apache.velocity.VelocityContext`
  Parameters:
    `key` - name of value to get
  Returns:
    value as object

### internalPut

    public java.lang.Object internalPut(java.lang.String key,
                                        java.lang.Object value)

  stores the value for key to internal storage

  Overrides:
    `internalPut` in class `org.apache.velocity.VelocityContext`
  Parameters:
    `key` - name of value to store
    `value` - value to store
  Returns:
    previous value of key as Object

### internalContainsKey

    public boolean internalContainsKey(java.lang.Object key)

  determines if there is a value for the given key

  Overrides:
    `internalContainsKey` in class `org.apache.velocity.VelocityContext`
  Parameters:
    `key` - name of value to check
  Returns:
    true if non-null value in store

### internalGetKeys

    public java.lang.Object[] internalGetKeys()

  returns array of keys $$$ GMJ todo

  Overrides:
    `internalGetKeys` in class `org.apache.velocity.VelocityContext`
  Returns:
    keys as []

### internalRemove

    public java.lang.Object internalRemove(java.lang.Object key)

  remove a key/value pair from the internal storage

  Overrides:
    `internalRemove` in class `org.apache.velocity.VelocityContext`
  Parameters:
    `key` - name of value to remove
  Returns:
    value removed

### pushCurrentTemplateName

    public void pushCurrentTemplateName(java.lang.String arg0)

### popCurrentTemplateName

    public void popCurrentTemplateName()

### getCurrentTemplateName

    public java.lang.String getCurrentTemplateName()

### getTemplateNameStack

    public java.lang.Object[] getTemplateNameStack()

### icacheGet

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

### icachePut

    public void icachePut(java.lang.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()

### getAllowRendering

    public boolean getAllowRendering()

### setAllowRendering

    public void setAllowRendering(boolean arg0)

### 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`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright (c) 2001-2007 Apache Software Foundation