Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.taglibs.rdc.scxml.env
Class ELContext  view ELContext download ELContext.java

java.lang.Object
  extended byorg.apache.taglibs.rdc.scxml.env.ELContext
All Implemented Interfaces:
org.apache.taglibs.rdc.scxml.Context, javax.servlet.jsp.el.VariableResolver
Direct Known Subclasses:
RootContext

public class ELContext
extends java.lang.Object
implements org.apache.taglibs.rdc.scxml.Context, javax.servlet.jsp.el.VariableResolver

EL Context for SCXML interpreter.


Field Summary
protected static org.apache.commons.logging.Log log
           
protected  org.apache.taglibs.rdc.scxml.Context parent
           
protected  java.util.HashMap vars
           
 
Constructor Summary
ELContext()
          Constructor
ELContext(org.apache.taglibs.rdc.scxml.Context parent)
           
 
Method Summary
 java.lang.Object get(java.lang.String name)
          Get the value of this variable; delegating to parent
 org.apache.taglibs.rdc.scxml.Context getParent()
          Get the parent Context, may be null
 boolean has(java.lang.String name)
          Check if this variable exists, delegating to parent
 java.util.Iterator iterator()
          Get an Iterator over all variables in this Context
 void reset()
          Clear this Context
 java.lang.Object resolveVariable(java.lang.String pName)
          Resolves the specified variable.
 void set(java.lang.String name, java.lang.Object value)
          Assigns a new value to an existing variable or creates a new one.
 void setLocal(java.lang.String name, java.lang.Object value)
          Assigns a new value to an existing variable or creates a new one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log

parent

protected org.apache.taglibs.rdc.scxml.Context parent

vars

protected java.util.HashMap vars
Constructor Detail

ELContext

public ELContext()
Constructor


ELContext

public ELContext(org.apache.taglibs.rdc.scxml.Context parent)
Method Detail

set

public void set(java.lang.String name,
                java.lang.Object value)
Assigns a new value to an existing variable or creates a new one. The method searches the chain of parent Contexts for variable existence.

Specified by:
set in interface org.apache.taglibs.rdc.scxml.Context

get

public java.lang.Object get(java.lang.String name)
Get the value of this variable; delegating to parent

Specified by:
get in interface org.apache.taglibs.rdc.scxml.Context

has

public boolean has(java.lang.String name)
Check if this variable exists, delegating to parent

Specified by:
has in interface org.apache.taglibs.rdc.scxml.Context

iterator

public java.util.Iterator iterator()
Get an Iterator over all variables in this Context

Specified by:
iterator in interface org.apache.taglibs.rdc.scxml.Context

reset

public void reset()
Clear this Context

Specified by:
reset in interface org.apache.taglibs.rdc.scxml.Context

getParent

public org.apache.taglibs.rdc.scxml.Context getParent()
Get the parent Context, may be null

Specified by:
getParent in interface org.apache.taglibs.rdc.scxml.Context

setLocal

public void setLocal(java.lang.String name,
                     java.lang.Object value)
Assigns a new value to an existing variable or creates a new one. The method allows to shaddow a variable of the same name up the Context chain.

Specified by:
setLocal in interface org.apache.taglibs.rdc.scxml.Context

resolveVariable

public java.lang.Object resolveVariable(java.lang.String pName)
                                 throws javax.servlet.jsp.el.ELException
Resolves the specified variable. Returns null if the variable is not found.

Specified by:
resolveVariable in interface javax.servlet.jsp.el.VariableResolver