org.apache.velocity.tools.view.context
Class ToolboxContext

java.lang.Object
  |
  +--org.apache.velocity.context.InternalContextBase
        |
        +--org.apache.velocity.context.AbstractContext
              |
              +--org.apache.velocity.VelocityContext
                    |
                    +--org.apache.velocity.tools.view.context.ToolboxContext
All Implemented Interfaces:
java.lang.Cloneable, org.apache.velocity.context.Context, org.apache.velocity.context.InternalEventContext, org.apache.velocity.context.InternalHousekeepingContext, java.io.Serializable

public class ToolboxContext
extends org.apache.velocity.VelocityContext

Read-only context used to carry a set of view tools.

Writes get dropped.

Version:
$Id: ToolboxContext.java,v 1.2 2003/05/28 00:17:16 nbubna Exp $
Author:
Gabriel Sidler, Geir Magnusson Jr.
See Also:
Serialized Form

Field Summary
private  java.util.Map toolbox
          The collection of view tools in this toolbox.
 
Fields inherited from class org.apache.velocity.VelocityContext
 
Fields inherited from class org.apache.velocity.context.AbstractContext
 
Constructor Summary
ToolboxContext(java.util.Map tb)
          Default constructor.
 
Method Summary
 java.lang.Object internalGet(java.lang.String key)
          Get value for key.
 java.lang.Object internalPut(java.lang.String key, java.lang.Object value)
          Does nothing.
 
Methods inherited from class org.apache.velocity.VelocityContext
clone, internalContainsKey, internalGetKeys, internalRemove
 
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

toolbox

private java.util.Map toolbox
The collection of view tools in this toolbox.

Constructor Detail

ToolboxContext

public ToolboxContext(java.util.Map tb)
Default constructor.

Method Detail

internalGet

public java.lang.Object internalGet(java.lang.String key)
Get value for key.

Overrides:
internalGet in class org.apache.velocity.VelocityContext

internalPut

public java.lang.Object internalPut(java.lang.String key,
                                    java.lang.Object value)
Does nothing. Returns null always.

Overrides:
internalPut in class org.apache.velocity.VelocityContext


Copyright (c) 2003 Apache Software Foundation