public class SimpleTransition extends Executable implements NamespacePrefixesHolder, Observable
| Constructor and Description |
|---|
SimpleTransition()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getNamespaces()
Get the XML namespaces at this action node in the SCXML document.
|
String |
getNext()
Get the ID of the transition target (may be null, if, for example,
the target is specified inline).
|
Integer |
getObservableId() |
TransitionalState |
getParent()
Get the TransitionalState (State or Parallel) parent.
|
Set<TransitionTarget> |
getTargets()
Get the set of transition targets (may be an empty list).
|
TransitionalState |
getTransitionDomain()
Returns the transition domain of this transition
If this transition is target-less OR if its transition domain is the SCXML document itself, null is returned.
|
TransitionType |
getType() |
boolean |
isTypeInternal()
Returns the effective Transition type.
|
void |
setNamespaces(Map<String,String> namespaces)
Set the XML namespaces at this action node in the SCXML document.
|
void |
setNext(String next)
Set the transition target by specifying its ID.
|
void |
setObservableId(Integer observableId)
Sets the observableId for this Observable, which must be unique within the SCXML state machine
|
void |
setParent(TransitionalState parent)
Set the TransitionalState (State or Parallel) parent
For transitions of Initial or History elements their TransitionalState parent must be set.
|
void |
setType(TransitionType type)
Sets the Transition type
|
addAction, getActions, setParentpublic SimpleTransition()
public final Integer getObservableId()
getObservableId in interface Observablepublic final void setObservableId(Integer observableId)
observableId - the observableIdpublic TransitionalState getParent()
getParent in class Executablepublic final void setParent(TransitionalState parent)
For transitions of Initial or History elements their TransitionalState parent must be set.
parent - The parent to set.public final TransitionType getType()
public final void setType(TransitionType type)
type - the Transition typepublic final boolean isTypeInternal()
A transition type is only effectively internal if:
getType() == TransitionType.internalgetParent() State.isComposite()getTargets() are proper descendants of its getParent()TransitionType.external
TransitionType.internalpublic TransitionalState getTransitionDomain()
If this transition is target-less OR if its transition domain is the SCXML document itself, null is returned.
This method therefore only is useful to be invoked if the transition has targets!
If the transition has targets then the transition domain is the compound State parent such that:
public final Map<String,String> getNamespaces()
getNamespaces in interface NamespacePrefixesHolderpublic final void setNamespaces(Map<String,String> namespaces)
setNamespaces in interface NamespacePrefixesHoldernamespaces - The document namespaces.public final Set<TransitionTarget> getTargets()
Remarks: Is empty for "stay" transitions.
public final String getNext()
getTargets()Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.