|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.lenya.workflow.impl.TransitionImpl
public class TransitionImpl
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 |
---|
protected TransitionImpl(java.lang.String sourceState, java.lang.String destinationState)
sourceState
- The source state.destinationState
- The destination state.Method Detail |
---|
public org.apache.lenya.workflow.Action[] getActions()
getActions
in interface org.apache.lenya.workflow.Transition
public void addAction(org.apache.lenya.workflow.Action action)
action
- The action.public org.apache.lenya.workflow.Condition[] getConditions()
getConditions
in interface org.apache.lenya.workflow.Transition
Transition.getConditions()
public void addCondition(org.apache.lenya.workflow.Condition condition)
condition
- The condition.public java.lang.String getEvent()
getEvent
in interface org.apache.lenya.workflow.Transition
public void setEvent(java.lang.String anEvent)
anEvent
- An event.public java.lang.String getSource()
getSource
in interface org.apache.lenya.workflow.Transition
Transition.getSource()
public java.lang.String getDestination()
getDestination
in interface org.apache.lenya.workflow.Transition
Transition.getDestination()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean isSynchronized()
isSynchronized
in interface org.apache.lenya.workflow.Transition
protected void setSynchronized(boolean _isSynchronized)
_isSynchronized
- A boolean value.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |