|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.workflow.base.BaseActivity
BaseActivity is a convenient base class for more
sophisticated Activity implementations. It includes
management of the static relationships of Steps to each other as part
of an owning Activity.
| Field Summary | |
protected org.apache.commons.workflow.Step |
firstStep
The first Step associated with this Activity. |
protected java.lang.String |
id
The unique identifier of this Activity. |
protected org.apache.commons.workflow.Step |
lastStep
The last Step associated with this Activity. |
| Constructor Summary | |
BaseActivity()
|
|
| Method Summary | |
void |
addStep(org.apache.commons.workflow.Step step)
Add a new Step to the end of the sequence of Steps associated with this Activity. |
void |
clearSteps()
Clear any existing Steps associated with this Activity. |
org.apache.commons.workflow.Step |
findStep(java.lang.String id)
Return the identified Step from this Activity, if it exists. |
org.apache.commons.workflow.Step |
getFirstStep()
Return the first Step associated with this Activity. |
java.lang.String |
getId()
Return the unique identifier of this Activity. |
org.apache.commons.workflow.Step |
getLastStep()
Return the last Step associated with this Activity. |
org.apache.commons.workflow.Step[] |
getSteps()
Return the set of Steps associated with this Activity. |
void |
setId(java.lang.String id)
Set the unique identifier of this Activity. |
void |
setSteps(org.apache.commons.workflow.Step[] steps)
Set the set of Steps associated with this Activity, replacing any existing ones. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected org.apache.commons.workflow.Step firstStep
protected java.lang.String id
protected org.apache.commons.workflow.Step lastStep
| Constructor Detail |
public BaseActivity()
| Method Detail |
public org.apache.commons.workflow.Step getFirstStep()
getFirstStep in interface org.apache.commons.workflow.Ownerpublic java.lang.String getId()
getId in interface org.apache.commons.workflow.Activitypublic void setId(java.lang.String id)
setId in interface org.apache.commons.workflow.Activityid - The new unique identifierpublic org.apache.commons.workflow.Step getLastStep()
getLastStep in interface org.apache.commons.workflow.Ownerpublic void addStep(org.apache.commons.workflow.Step step)
addStep in interface org.apache.commons.workflow.Ownerstep - The new step to be addedpublic void clearSteps()
clearSteps in interface org.apache.commons.workflow.Ownerpublic org.apache.commons.workflow.Step findStep(java.lang.String id)
null.
findStep in interface org.apache.commons.workflow.Ownerid - Identifier of the desired Steppublic org.apache.commons.workflow.Step[] getSteps()
getSteps in interface org.apache.commons.workflow.Ownerpublic void setSteps(org.apache.commons.workflow.Step[] steps)
setSteps in interface org.apache.commons.workflow.Ownersteps - The new set of steps.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||