|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.scxml.model.SCXML
The class in this SCXML object model that corresponds to the <scxml> root element, and serves as the "document root".
| Field Summary | |
static String |
XMLNS
The SCXML XMLNS. |
| Constructor Summary | |
SCXML()
Constructor. |
|
| Method Summary | |
void |
addChild(TransitionTarget tt)
Add an immediate child target of the SCXML root. |
void |
addState(State state)
Deprecated. Use addChild(TransitionTarget) instead. |
void |
addTarget(TransitionTarget target)
Add a target to this SCXML document. |
Map |
getChildren()
Get the immediate child targets of the SCXML root. |
Datamodel |
getDatamodel()
Get the data model placed at document root. |
String |
getInitial()
Get the ID of the initial transition target. |
String |
getInitialstate()
Deprecated. Use getInitial() instead. |
State |
getInitialState()
Deprecated. Use getInitialTarget() instead. Returns null
if the initial target is a Parallel. |
TransitionTarget |
getInitialTarget()
Get the initial TransitionTarget. |
Map |
getNamespaces()
Get the namespace definitions specified on the SCXML element. |
Map |
getStates()
Deprecated. Use getChildren() instead. |
Map |
getTargets()
Get the targets map, which is a Map of all States and Parallels associated with this state machine, keyed by their id. |
String |
getVersion()
Get the SCXML document version. |
String |
getXmlns()
Get the xmlns of this SCXML document. |
boolean |
isLegacy()
Deprecated. Will be removed in v1.0 |
void |
setDatamodel(Datamodel datamodel)
Set the data model at document root. |
void |
setInitial(String initial)
Set the ID of the initial transition target. |
void |
setInitialState(State initialState)
Deprecated. Use setInitialTarget(TransitionTarget) instead. |
void |
setInitialstate(String initialstate)
Deprecated. Use setInitial(String) instead. |
void |
setInitialTarget(TransitionTarget initialTarget)
Set the initial TransitionTarget. |
void |
setLegacy(boolean legacy)
Deprecated. Will be removed in v1.0 |
void |
setNamespaces(Map namespaces)
Set the namespace definitions specified on the SCXML element. |
void |
setVersion(String version)
Set the SCXML document version. |
void |
setXmlns(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 String XMLNS
| Constructor Detail |
public SCXML()
| Method Detail |
public final State getInitialState()
null
if the initial target is a Parallel.
public final void setInitialState(State initialState)
initialState - The initialstate to set.public final TransitionTarget getInitialTarget()
public final void setInitialTarget(TransitionTarget initialTarget)
initialTarget - The initial target to set.public final Datamodel getDatamodel()
public final void setDatamodel(Datamodel datamodel)
datamodel - The Datamodel to set.public final Map getStates()
public final void addState(State state)
state - The state to be added to the states Map.public final Map getChildren()
public final void addChild(TransitionTarget tt)
tt - The transition target to be added to the states Map.public final Map getTargets()
public final void addTarget(TransitionTarget target)
target - The target to be added to the targets Map.public final String getVersion()
public final void setVersion(String version)
version - The version to set.public final String getXmlns()
public final void setXmlns(String xmlns)
xmlns - The xmlns to set.public final Map getNamespaces()
null.
getNamespaces in interface NamespacePrefixesHoldernull.public final void setNamespaces(Map namespaces)
setNamespaces in interface NamespacePrefixesHoldernamespaces - The namespace definitions specified on the
SCXML element.public final String getInitialstate()
getInitial() instead.
getInitialTarget()public final void setInitialstate(String initialstate)
setInitial(String) instead.
initialstate - The initial state ID (used by XML Digester only).setInitialTarget(TransitionTarget)public final String getInitial()
getInitialTarget()public final void setInitial(String initial)
initial - The initial transition target ID
(used by XML Digester only).setInitialTarget(TransitionTarget)public final boolean isLegacy()
public final void setLegacy(boolean legacy)
legacy - True, if legacy parser was used.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||