public abstract class TransitionTarget extends Object implements Serializable
Constructor and Description |
---|
TransitionTarget()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addHistory(History h)
This method is used by XML digester.
|
void |
addTransition(Transition transition)
Add a transition to the map of all outgoing transitions for
this transition target.
|
Datamodel |
getDatamodel()
Get the data model for this transition target.
|
List |
getHistory()
Get the list of history pseudo states for this state.
|
String |
getId()
Get the identifier for this transition target (may be null).
|
OnEntry |
getOnEntry()
Get the onentry property.
|
OnExit |
getOnExit()
Get the onexit property.
|
TransitionTarget |
getParent()
Get the parent TransitionTarget.
|
State |
getParentState()
Deprecated.
Will be removed in v1.0
|
Map |
getTransitions()
Deprecated.
Use
getTransitionsList() instead |
List |
getTransitionsList()
Get the outgoing transitions for this target as a java.util.List.
|
List |
getTransitionsList(String event)
Get the list of all outgoing transitions from this target, that
will be candidates for being fired on the given event.
|
boolean |
hasHistory()
Does this state have a history pseudo state.
|
void |
setDatamodel(Datamodel datamodel)
Set the data model for this transition target.
|
void |
setId(String id)
Set the identifier for this transition target.
|
void |
setOnEntry(OnEntry onEntry)
Set the onentry property.
|
void |
setOnExit(OnExit onExit)
Set the onexit property.
|
void |
setParent(TransitionTarget parent)
Set the parent TransitionTarget.
|
public final String getId()
public final void setId(String id)
id
- The id to set.public final OnEntry getOnEntry()
public final void setOnEntry(OnEntry onEntry)
onEntry
- The onEntry to set.public final OnExit getOnExit()
public final void setOnExit(OnExit onExit)
onExit
- The onExit to set.public final Datamodel getDatamodel()
public final void setDatamodel(Datamodel datamodel)
datamodel
- The Datamodel to set.public final TransitionTarget getParent()
public final void setParent(TransitionTarget parent)
parent
- The parent state to setpublic final State getParentState()
public final Map getTransitions()
getTransitionsList()
insteadpublic final List getTransitionsList(String event)
event
- The eventpublic final void addTransition(Transition transition)
transition
- The transitions to set.public final List getTransitionsList()
public final void addHistory(History h)
h
- History pseudo statepublic final boolean hasHistory()
public final List getHistory()
hasHistory()
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.