org.apache.commons.workflow
Interface Owner

All Known Subinterfaces:
Activity, Block, Iterator
All Known Implementing Classes:
BaseActivity, BaseBlock, IfAnyStep, IfNotAnyStep, IfNotStep, IfStep, WhileAnyStep, WhileNotAnyStep, WhileNotStep, WhileStep

public interface Owner

Owner represents the common characteristics of Activities and Blocks (that is, Steps that allow nested Steps, such as those that implementat conditionals and iteration).

Version:
$Revision: 155475 $ $Date: 2005-02-26 13:31:11 +0000 (Sat, 26 Feb 2005) $
Author:
Craig R. McClanahan

Method Summary
 void addStep(Step step)
          Add a new Step to the end of the sequence of Steps associated with this Activity or Block.
 void clearSteps()
          Clear any existing Steps associated with this Activity or Block.
 Step findStep(String id)
          Return the identified Step from our current Activity or Block, if it exists.
 Step getFirstStep()
          Return the first Step associated with this Activity or Block.
 Step getLastStep()
          Return the last Step associated with this Activity or Block.
 Step[] getSteps()
          Return the set of Steps associated with this Activity or Block.
 void setSteps(Step[] steps)
          Set the set of Steps associated with this Activity or Block, replacing any existing ones.
 

Method Detail

getFirstStep

Step getFirstStep()
Return the first Step associated with this Activity or Block.


getLastStep

Step getLastStep()
Return the last Step associated with this Activity or Block.


addStep

void addStep(Step step)
Add a new Step to the end of the sequence of Steps associated with this Activity or Block.

Parameters:
step - The new step to be added

clearSteps

void clearSteps()
Clear any existing Steps associated with this Activity or Block.


findStep

Step findStep(String id)
Return the identified Step from our current Activity or Block, if it exists. Otherwise, return null.

Parameters:
id - Identifier of the desired Step

getSteps

Step[] getSteps()
Return the set of Steps associated with this Activity or Block.


setSteps

void setSteps(Step[] steps)
Set the set of Steps associated with this Activity or Block, replacing any existing ones.

Parameters:
steps - The new set of steps.


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.