|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.taglibs.rdc.scxml.model.Executable
org.apache.taglibs.rdc.scxml.model.Transition
public class Transition
The class in this SCXML object model that corresponds to the <transition> SCXML element. Transition rules are triggered by "events" and conditionalized via "guard-conditions".
Field Summary |
---|
Fields inherited from class org.apache.taglibs.rdc.scxml.model.Executable |
---|
parent |
Constructor Summary | |
---|---|
Transition()
Constructor |
Method Summary | |
---|---|
void |
addListener(SCXMLListener lst)
Register a listener to this document root |
java.lang.String |
getCond()
Get the guard condition (may be null) |
java.lang.String |
getEvent()
Get the event that will trigger this transition (pending evaluation of the guard condition in favor) |
java.lang.String |
getNext()
Get the ID of the transition target (may be null, if, for example, the target is specified inline) |
NotificationRegistry |
getNotificationRegistry()
Get the notification registry. |
Path |
getPath()
Get the path of this transiton. |
TransitionTarget |
getRuntimeTarget()
Get the runtime transition target, which always resolves to a TransitionTarget instance. |
TransitionTarget |
getTarget()
Get the transition target (may be null) |
void |
removeListener(SCXMLListener lst)
Deregister a listener from this document root |
void |
setCond(java.lang.String cond)
Set the guard condition |
void |
setEvent(java.lang.String event)
Set the event that will trigger this transition (pending evaluation of the guard condition in favor) |
void |
setNext(java.lang.String next)
Set the transition target by specifying its ID |
void |
setNotificationRegistry(NotificationRegistry reg)
Supply this Transition object a handle to the notification registry. |
void |
setTarget(TransitionTarget target)
Set the transition target |
Methods inherited from class org.apache.taglibs.rdc.scxml.model.Executable |
---|
addAction, getActions, getParent, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Transition()
Method Detail |
---|
public void addListener(SCXMLListener lst)
addListener
in interface Observable
lst
- The SCXMLListener to addpublic void removeListener(SCXMLListener lst)
removeListener
in interface Observable
lst
- The SCXMLListener to removepublic java.lang.String getCond()
public void setCond(java.lang.String cond)
cond
- The cond to set.public java.lang.String getEvent()
public void setEvent(java.lang.String event)
event
- The event to set.public TransitionTarget getTarget()
Remarks: Is null
for "stay" transitions.
Returns parent (the source node) for "self" transitions.
public TransitionTarget getRuntimeTarget()
Remarks: For both the "stay" and "self"
transitions it returns parent (the source node). This method should
never return null
.
public void setTarget(TransitionTarget target)
target
- The target to set.public java.lang.String getNext()
getTarget()
public void setNext(java.lang.String next)
next
- The the transition target ID (used by SCXML Digester only).setTarget(TransitionTarget)
public void setNotificationRegistry(NotificationRegistry reg)
reg
- The notification registrypublic NotificationRegistry getNotificationRegistry()
public Path getPath()
Path
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |