Save This Page
Home » velocity-1.5 » org.apache » velocity » context » [javadoc | source]
org.apache.velocity.context
public interface: Context [javadoc | source]

All Known Implementing Classes:
    VMContext, VelocityContext, InternalContextAdapterImpl, ChainedContext, AbstractContext, InternalContextAdapter, NullHolderContext, ToolboxContext

Interface describing the application data context. This set of routines is used by the application to set and remove 'named' data object to pass them to the template engine to use when rendering a template. This is the same set of methods supported by the original Context class
Method from org.apache.velocity.context.Context Summary:
containsKey,   get,   getKeys,   put,   remove
Method from org.apache.velocity.context.Context Detail:
 public boolean containsKey(Object key)
    Indicates whether the specified key is in the context.
 public Object get(String key)
    Gets the value corresponding to the provided key from the context.
 public Object[] getKeys()
    Get all the keys for the values in the context.
 public Object put(String key,
    Object value)
    Adds a name/value pair to the context.
 public Object remove(Object key)
    Removes the value associated with the specified key from the context.