org.apache.lenya.workflow.impl
Class TransitionImpl

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.lenya.workflow.impl.TransitionImpl
All Implemented Interfaces:
org.apache.avalon.framework.logger.LogEnabled, org.apache.lenya.workflow.Transition

public class TransitionImpl
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements org.apache.lenya.workflow.Transition

Implementation of a transition.


Constructor Summary
protected TransitionImpl(java.lang.String sourceState, java.lang.String destinationState)
          Ctor.
 
Method Summary
 void addAction(org.apache.lenya.workflow.Action action)
          Assigns an action to this transition.
 void addCondition(org.apache.lenya.workflow.Condition condition)
          Assigns a condition to this transition.
 org.apache.lenya.workflow.Action[] getActions()
          Returns the actions which are assigned tothis transition.
 org.apache.lenya.workflow.Condition[] getConditions()
           
 java.lang.String getDestination()
           
 java.lang.String getEvent()
          Returns the event which invokes this transition.
 java.lang.String getSource()
           
 boolean isSynchronized()
          Returns if this transition is synchronized.
 void setEvent(java.lang.String anEvent)
          Sets the event to invoke this transition.
protected  void setSynchronized(boolean _isSynchronized)
          Sets if this transition is synchronized.
 java.lang.String toString()
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransitionImpl

protected TransitionImpl(java.lang.String sourceState,
                         java.lang.String destinationState)
Ctor.

Parameters:
sourceState - The source state.
destinationState - The destination state.
Method Detail

getActions

public org.apache.lenya.workflow.Action[] getActions()
Returns the actions which are assigned tothis transition.

Specified by:
getActions in interface org.apache.lenya.workflow.Transition
Returns:
An array of actions.

addAction

public void addAction(org.apache.lenya.workflow.Action action)
Assigns an action to this transition.

Parameters:
action - The action.

getConditions

public org.apache.lenya.workflow.Condition[] getConditions()
Specified by:
getConditions in interface org.apache.lenya.workflow.Transition
See Also:
Transition.getConditions()

addCondition

public void addCondition(org.apache.lenya.workflow.Condition condition)
Assigns a condition to this transition.

Parameters:
condition - The condition.

getEvent

public java.lang.String getEvent()
Returns the event which invokes this transition.

Specified by:
getEvent in interface org.apache.lenya.workflow.Transition
Returns:
An event.

setEvent

public void setEvent(java.lang.String anEvent)
Sets the event to invoke this transition.

Parameters:
anEvent - An event.

getSource

public java.lang.String getSource()
Specified by:
getSource in interface org.apache.lenya.workflow.Transition
See Also:
Transition.getSource()

getDestination

public java.lang.String getDestination()
Specified by:
getDestination in interface org.apache.lenya.workflow.Transition
See Also:
Transition.getDestination()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

isSynchronized

public boolean isSynchronized()
Returns if this transition is synchronized.

Specified by:
isSynchronized in interface org.apache.lenya.workflow.Transition
Returns:
A boolean value.

setSynchronized

protected void setSynchronized(boolean _isSynchronized)
Sets if this transition is synchronized.

Parameters:
_isSynchronized - A boolean value.


Copyright © $ Apache Software Foundation. All Rights Reserved.