com.evelopers.unimod.validation
Class StateTransitionsDecorator
java.lang.Object
com.evelopers.unimod.validation.StateTransitionsDecorator
- class StateTransitionsDecorator
- extends java.lang.Object
Adds some functionality to State
- See Also:
State
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StateTransitionsDecorator
public StateTransitionsDecorator(State state)
getState
public State getState()
getAllTransitions
public java.util.List getAllTransitions()
- Returns:
- All outgoing transitions including superstate transitions.
getAllNotElseTransitions
public java.util.List getAllNotElseTransitions(Event event)
- Returns:
- All outgoing transitions for
event
including
superstate transition.
getElseTransition
public Transition getElseTransition(Event event)
- Returns:
- first found Else transition that is the to the state nearest. Or
null
if no else transition defined in hierarchy.
getHandledEvents
public java.util.Set getHandledEvents()
- Returns all events that are handled in the state without
Event.ANY
.
- Returns:
- All events that are handled in the state without
Event.ANY