|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.workflow.base.BaseActivity
public class 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 Step |
firstStep
The first Step associated with this Activity. |
protected String |
id
The unique identifier of this Activity. |
protected Step |
lastStep
The last Step associated with this Activity. |
| Constructor Summary | |
|---|---|
BaseActivity()
|
|
| Method Summary | |
|---|---|
void |
addStep(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. |
Step |
findStep(String id)
Return the identified Step from this Activity, if it exists. |
Step |
getFirstStep()
Return the first Step associated with this Activity. |
String |
getId()
Return the unique identifier of this Activity. |
Step |
getLastStep()
Return the last Step associated with this Activity. |
Step[] |
getSteps()
Return the set of Steps associated with this Activity. |
void |
setId(String id)
Set the unique identifier of this Activity. |
void |
setSteps(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 Step firstStep
protected String id
protected Step lastStep
| Constructor Detail |
|---|
public BaseActivity()
| Method Detail |
|---|
public Step getFirstStep()
getFirstStep in interface Ownerpublic String getId()
getId in interface Activitypublic void setId(String id)
setId in interface Activityid - The new unique identifierpublic Step getLastStep()
getLastStep in interface Ownerpublic void addStep(Step step)
addStep in interface Ownerstep - The new step to be addedpublic void clearSteps()
clearSteps in interface Ownerpublic Step findStep(String id)
null.
findStep in interface Ownerid - Identifier of the desired Steppublic Step[] getSteps()
getSteps in interface Ownerpublic void setSteps(Step[] steps)
setSteps in interface Ownersteps - The new set of steps.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||