|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Context
A Context or "scope" for storing variables; usually tied to a SCXML root or State object
| Method Summary | |
|---|---|
java.lang.Object |
get(java.lang.String name)
Get the value of this variable; delegating to parent |
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 |
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. |
| Method Detail |
|---|
void set(java.lang.String name,
java.lang.Object value)
name - The variable namevalue - The variable value
void setLocal(java.lang.String name,
java.lang.Object value)
name - The variable namevalue - The variable valuejava.lang.Object get(java.lang.String name)
name - The name of the variable
boolean has(java.lang.String name)
name - The name of the variable
java.util.Iterator iterator()
getParent()void reset()
Context getParent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||