org.apache.lenya.cms.usecase
Class StateMachine.Transition

java.lang.Object
  extended by org.apache.lenya.cms.usecase.StateMachine.Transition
Enclosing class:
StateMachine

public static class StateMachine.Transition
extends java.lang.Object

A transition switches from a source state to a destination state if an event is invoked.


Constructor Summary
StateMachine.Transition(java.lang.String source, java.lang.String destination, java.lang.String event)
           
 
Method Summary
 java.lang.String getDestination()
           
 java.lang.String getEvent()
           
 java.lang.String getSource()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateMachine.Transition

public StateMachine.Transition(java.lang.String source,
                               java.lang.String destination,
                               java.lang.String event)
Parameters:
source - The source state.
destination - The destination state.
event - The event.
Method Detail

getDestination

public java.lang.String getDestination()
Returns:
The destination state.

getEvent

public java.lang.String getEvent()
Returns:
The event.

getSource

public java.lang.String getSource()
Returns:
The source state.


Copyright $ Apache Software Foundation. All Rights Reserved.