org.obe.xpdl.model.transition
Class Transition

java.lang.Object
  extended byorg.obe.util.AbstractBean
      extended byorg.obe.xpdl.model.misc.AbstractWFElement
          extended byorg.obe.xpdl.model.transition.Transition
All Implemented Interfaces:
java.beans.beancontext.BeanContextChild, java.io.Serializable

public final class Transition
extends AbstractWFElement

Implementation of a transition.

Author:
Adrian Price
See Also:
Serialized Form

Constructor Summary
Transition()
           
Transition(java.lang.String id, java.lang.String name, java.lang.String from, java.lang.String to)
          Construct a new Transition.
 
Method Summary
 void accept(PackageVisitor visitor)
           
 Condition getCondition()
          Get the condition which is used to determine whether or not the transition should be executed.
 Event getEvent()
           
 ExecutionType getExecution()
           
 java.lang.String getFrom()
          Get the start activity ID
 Activity getFromActivity()
           
 java.lang.String getTo()
          Get the end activity ID.
 Activity getToActivity()
           
 void setCondition(Condition condition)
          Set the condition which is used to determine whether or not the transition should be executed.
 void setEvent(Event event)
           
 void setExecutionType(ExecutionType executionType)
           
 void setFrom(java.lang.String from)
          Set the start activity ID.
 void setFromActivity(Activity fromActivity)
           
 void setTo(java.lang.String to)
          Set the end activity ID.
 void setToActivity(Activity toActivity)
           
 java.lang.String toString()
           
 
Methods inherited from class org.obe.xpdl.model.misc.AbstractWFElement
createExtendedAttributes, equals, getDescription, getExtendedAttributes, getId, getName, hashCode, setDescription, setExtendedAttributes, setId, setName
 
Methods inherited from class org.obe.util.AbstractBean
add, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clear, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, get, get, getBeanContext, getListModel, hasChangeListeners, hasVetoListeners, remove, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener, set, set, setBeanContext
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Transition

public Transition()

Transition

public Transition(java.lang.String id,
                  java.lang.String name,
                  java.lang.String from,
                  java.lang.String to)
Construct a new Transition.

Parameters:
id - The transition ID
name - The transition name
from - The activity ID where the transition starts
to - The activity ID where the transition ends
Method Detail

accept

public void accept(PackageVisitor visitor)

getCondition

public Condition getCondition()
Get the condition which is used to determine whether or not the transition should be executed.

Returns:
The condition

setCondition

public void setCondition(Condition condition)
Set the condition which is used to determine whether or not the transition should be executed.

Parameters:
condition - The condition

getEvent

public Event getEvent()

setEvent

public void setEvent(Event event)

getFrom

public java.lang.String getFrom()
Get the start activity ID

Returns:
The start activity ID

setFrom

public void setFrom(java.lang.String from)
Set the start activity ID.

Parameters:
from - The new start activity ID

getTo

public java.lang.String getTo()
Get the end activity ID.

Returns:
The end activity ID

setTo

public void setTo(java.lang.String to)
Set the end activity ID.

Parameters:
to - The end activty ID

getToActivity

public Activity getToActivity()

setToActivity

public void setToActivity(Activity toActivity)

getFromActivity

public Activity getFromActivity()

setFromActivity

public void setFromActivity(Activity fromActivity)

getExecution

public ExecutionType getExecution()

setExecutionType

public void setExecutionType(ExecutionType executionType)

toString

public java.lang.String toString()
Overrides:
toString in class AbstractWFElement


SourceForge.net Logo OBE-1.0 Copyright (c) 2002-2006 Adrian Price. All Rights Reserved.