|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.taglibs.rdc.scxml.model.SCXML
public class SCXML
The class in this SCXML object model that corresponds to the <scxml> root element, and serves as the "document root". It is also associated with the root Context, via which the SCXMLExecutor may access and the query state of the host environment.
| Field Summary | |
|---|---|
static java.lang.String |
XMLNS
The SCXML XMLNS |
| Constructor Summary | |
|---|---|
SCXML()
Constructor |
|
| Method Summary | |
|---|---|
void |
addListener(SCXMLListener lst)
Register a listener to this document root |
void |
addState(State state)
Add a child state |
void |
addTarget(TransitionTarget target)
Add a target to this SCXML document |
java.lang.String |
getInitialstate()
Get the ID of the initial state |
State |
getInitialState()
Get the initial State |
NotificationRegistry |
getNotificationRegistry()
Get the notification registry |
Context |
getRootContext()
Get the root Context for this document |
java.util.Map |
getStates()
Get the children states |
java.util.Map |
getTargets()
Get the targets map, whichis a Map of all States and Parallels associated with this state machine, keyed by their id |
java.lang.String |
getVersion()
Get the SCXML document version |
java.lang.String |
getXmlns()
Get the xmlns of this SCXML document |
void |
removeListener(SCXMLListener lst)
Deregister a listener from this document root |
void |
setInitialState(State initialState)
Set the initial State |
void |
setInitialstate(java.lang.String initialstate)
Set the ID of the initial state |
void |
setRootContext(Context rootContext)
Set the root Context for this document |
void |
setVersion(java.lang.String version)
Set the SCXML document version |
void |
setXmlns(java.lang.String xmlns)
Set the xmlns of this SCXML document |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String XMLNS
| Constructor Detail |
|---|
public SCXML()
| Method Detail |
|---|
public State getInitialState()
public void setInitialState(State initialState)
initialstate - The initialstate to set.public java.util.Map getStates()
public void addState(State state)
state - The state to be added to the states Map.public java.util.Map getTargets()
public void addTarget(TransitionTarget target)
target - The target to be added to the targets Map.public java.lang.String getVersion()
public void setVersion(java.lang.String version)
version - The version to set.public java.lang.String getXmlns()
public void setXmlns(java.lang.String xmlns)
xmlns - The xmlns to set.public NotificationRegistry getNotificationRegistry()
public java.lang.String getInitialstate()
getInitialState()public void setInitialstate(java.lang.String initialstate)
initialstate - The initial state ID (used by XML Digester only).setInitialState(State)public Context getRootContext()
public void setRootContext(Context rootContext)
rootContext - The rootContext to set.public void addListener(SCXMLListener lst)
addListener in interface Observablelst - The SCXMLListener to add
Remarks: Only valid if StateMachine is non null!public void removeListener(SCXMLListener lst)
removeListener in interface Observablelst - The SCXMLListener to remove
Remarks: Only valid if StateMachine is non null!
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||