public interface Context
Modifier and Type | Field and Description |
---|---|
static String |
NAMESPACES_KEY
Current namespaces are saved under this key in the context.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(String name)
Get the value of this variable; delegating to parent.
|
Context |
getParent()
Get the parent Context, may be null.
|
SCXMLSystemContext |
getSystemContext()
Get the SCXMLSystemContext for this Context, should not be null unless this is the root Context
|
Map<String,Object> |
getVars()
Get the Map of all variables in this Context.
|
boolean |
has(String name)
Check if this variable exists, delegating to parent.
|
boolean |
hasLocal(String name)
Check if this variable exists, only checking this Context
|
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.
|
static final String NAMESPACES_KEY
void set(String name, Object value)
name
- The variable namevalue
- The variable valuevoid setLocal(String name, Object value)
name
- The variable namevalue
- The variable valueObject get(String name)
name
- The name of the variableboolean has(String name)
name
- The name of the variableboolean hasLocal(String name)
name
- The name of the variableMap<String,Object> getVars()
getParent()
void reset()
Context getParent()
SCXMLSystemContext getSystemContext()
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.