|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Context or "scope" for storing variables; usually tied to a SCXML root or State object.
Method Summary | |
Object |
get(String name)
Get the value of this variable; delegating to parent. |
Context |
getParent()
Get the parent Context, may be null. |
Map |
getVars()
Get the Map of all variables in this Context. |
boolean |
has(String name)
Check if this variable exists, delegating to parent. |
void |
reset()
Clear this Context. |
void |
set(String name,
Object value)
Assigns a new value to an existing variable or creates a new one. |
void |
setLocal(String name,
Object value)
Assigns a new value to an existing variable or creates a new one. |
Method Detail |
public void set(String name, Object value)
name
- The variable namevalue
- The variable valuepublic void setLocal(String name, Object value)
name
- The variable namevalue
- The variable valuepublic Object get(String name)
name
- The name of the variable
public boolean has(String name)
name
- The name of the variable
public Map getVars()
getParent()
public void reset()
public Context getParent()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |