com.evelopers.unimod.validation
Class StateTransitionsDecorator

java.lang.Object
  extended bycom.evelopers.unimod.validation.StateTransitionsDecorator

class StateTransitionsDecorator
extends java.lang.Object

Adds some functionality to State

See Also:
State

Constructor Summary
StateTransitionsDecorator(State state)
           
 
Method Summary
 java.util.List getAllNotElseTransitions(Event event)
           
 java.util.List getAllTransitions()
           
 Transition getElseTransition(Event event)
           
 java.util.Set getHandledEvents()
          Returns all events that are handled in the state without Event.ANY.
 State getState()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateTransitionsDecorator

public StateTransitionsDecorator(State state)
Method Detail

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