public class SCXML extends Object implements Serializable, Observable, NamespacePrefixesHolder
Modifier and Type | Field and Description |
---|---|
static String |
GENERATED_TT_ID_PREFIX
Reserved prefix for auto generated TransitionTarget id values
|
static String |
XMLNS
The SCXML XMLNS.
|
Constructor and Description |
---|
SCXML()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(EnterableState es)
Add an immediate child of the SCXML root.
|
void |
addTarget(TransitionTarget target)
Add a target to this SCXML document.
|
String |
generateTransitionTargetId()
Simple unique TransitionTarget id value generation
|
List<EnterableState> |
getChildren()
Get the immediate child targets of the SCXML root.
|
Datamodel |
getDatamodel()
Get the data model placed at document root.
|
String |
getDatamodelName()
Get the datamodel name as specified as attribute on this document
|
String |
getExmode()
Get the exmode in use for this state machine.
|
EnterableState |
getFirstChild()
Get the first immediate child of the SCXML root.
|
Script |
getGlobalScript() |
String |
getInitial()
Get the the initial transition target.
|
SimpleTransition |
getInitialTransition()
Get the initial Transition.
|
String |
getName()
Get the name for this state machine.
|
Map<String,String> |
getNamespaces()
Get the namespace definitions specified on the SCXML element.
|
Integer |
getObservableId() |
String |
getProfile()
Get the profile in use for this state machine.
|
Map<String,TransitionTarget> |
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.
|
void |
setDatamodel(Datamodel datamodel)
Set the data model at document root.
|
void |
setDatamodelName(String datamodelName)
Sets the datamodel name as specified as attribute on this document
|
void |
setExmode(String exmode)
Set the exmode to be used for this state machine.
|
void |
setGlobalScript(Script script) |
void |
setInitial(String initial)
Set the initial transition target.
|
void |
setInitialTransition(SimpleTransition initialTransition)
Set the initial Transition.
|
void |
setName(String name)
Set the name for this state machine.
|
void |
setNamespaces(Map<String,String> namespaces)
Set the namespace definitions specified on the SCXML element.
|
void |
setProfile(String profile)
Set the profile in use for this state machine.
|
void |
setVersion(String version)
Set the SCXML document version.
|
void |
setXmlns(String xmlns)
Set the xmlns of this SCXML document.
|
public static final String XMLNS
public static final String GENERATED_TT_ID_PREFIX
public SCXML()
public final Integer getObservableId()
getObservableId
in interface Observable
public final String generateTransitionTargetId()
public final Script getGlobalScript()
public final void setGlobalScript(Script script)
public final SimpleTransition getInitialTransition()
public final void setInitialTransition(SimpleTransition initialTransition)
Note: the initial transition can/may not have executable content!
initialTransition
- The initial transition to set.public final Datamodel getDatamodel()
public final void setDatamodel(Datamodel datamodel)
datamodel
- The Datamodel to set.public final List<EnterableState> getChildren()
public final EnterableState getFirstChild()
public final void addChild(EnterableState es)
es
- The child to be added.public final Map<String,TransitionTarget> 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<String,String> getNamespaces()
null
.getNamespaces
in interface NamespacePrefixesHolder
null
.public final void setNamespaces(Map<String,String> namespaces)
setNamespaces
in interface NamespacePrefixesHolder
namespaces
- The namespace definitions specified on the
SCXML element.public final String getInitial()
getInitialTransition()
public final void setInitial(String initial)
initial
- The initial transition targetsetInitialTransition(SimpleTransition)
public String getName()
public void setName(String name)
name
- The name for this state machine.public String getProfile()
public void setProfile(String profile)
profile
- The profile to be used.public String getExmode()
public void setExmode(String exmode)
exmode
- The exmode to be used.public String getDatamodelName()
public void setDatamodelName(String datamodelName)
datamodelName
- The datamodel nameCopyright © 2005–2015 The Apache Software Foundation. All rights reserved.