| java.lang.Object org.apache.commons.scxml.env.SimpleContext
All known Subclasses: org.apache.commons.scxml.env.jsp.ELContext, org.apache.commons.scxml.env.faces.SessionContext, org.apache.commons.scxml.env.jexl.JexlContext,
Method Summary | |
public Object | get(String name) Get the value of this variable; delegating to parent. | protected Log | getLog() Get the log used by this Context instance. | public Context | getParent() Get the parent Context, may be null. | public Map | getVars() Get the Map of all local variables in this Context. | public boolean | has(String name) Check if this variable exists, delegating to parent. | public void | reset() Clear this Context. | public void | set(String name, Object value) Assigns a new value to an existing variable or creates a new one. | public void | setLocal(String name, Object value) Assigns a new value to an existing variable or creates a new one. | protected void | setLog(Log log) Set the log used by this Context instance. | protected void | setVars(Map vars) Set the variables map. |
SimpleContext | public SimpleContext()(Code) | | Constructor.
|
SimpleContext | public SimpleContext(Context parent)(Code) | | Constructor.
Parameters: parent - A parent Context, can be null |
SimpleContext | public SimpleContext(Map initialVars)(Code) | | Constructor.
Parameters: initialVars - A pre-populated initial variables map |
SimpleContext | public SimpleContext(Context parent, Map initialVars)(Code) | | Constructor.
Parameters: parent - A parent Context, can be null Parameters: initialVars - A pre-populated initial variables map |
getLog | protected Log getLog()(Code) | | Get the log used by this Context instance.
Log The log being used. |
getVars | public Map getVars()(Code) | | Get the Map of all local variables in this Context.
Returns the vars. |
setLog | protected void setLog(Log log)(Code) | | Set the log used by this Context instance.
Parameters: log - The new log. |
setVars | protected void setVars(Map vars)(Code) | | Set the variables map.
Parameters: vars - The new Map of variables. |
|
|