org.apache.commons.workflow.base
Class DescriptorStep

java.lang.Object
  extended byorg.apache.commons.workflow.base.BaseStep
      extended byorg.apache.commons.workflow.base.DescriptorStep
All Implemented Interfaces:
org.apache.commons.workflow.Descriptors, org.apache.commons.workflow.Step
Direct Known Subclasses:
BaseBlock, ConstructStep, DisplayStep, GetStep, GotoStep, InvokeStep, PopulateStep, PutStep, RemoveStep

public abstract class DescriptorStep
extends BaseStep
implements org.apache.commons.workflow.Descriptors

DescriptorStep is a convenient base class for more sophisticated Step implementations that already support the APIs provided by BaseStep, and also implement the Descriptors interafce.

Version:
$Revision: 1.3 $ $Date: 2004/02/28 03:35:54 $

Field Summary
protected  java.util.ArrayList descriptors
          The list of Descriptor objects associated with this Step.
 
Fields inherited from class org.apache.commons.workflow.base.BaseStep
id, nextStep, owner, previousStep
 
Constructor Summary
DescriptorStep()
           
 
Method Summary
 void addDescriptor(org.apache.commons.workflow.Descriptor descriptor)
          Add a new Descriptor to the set associated with this object.
 org.apache.commons.workflow.Descriptor[] findDescriptors()
          Return the set of Descriptor objects associated with this object, in the order that they were originally added.
 void removeDescriptor(org.apache.commons.workflow.Descriptor descriptor)
          Remove an existing Descriptor from the set associated with this object.
 
Methods inherited from class org.apache.commons.workflow.base.BaseStep
execute, getId, getNextStep, getOwner, getPreviousStep, setId, setNextStep, setOwner, setPreviousStep
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

descriptors

protected java.util.ArrayList descriptors
The list of Descriptor objects associated with this Step.

Constructor Detail

DescriptorStep

public DescriptorStep()
Method Detail

addDescriptor

public void addDescriptor(org.apache.commons.workflow.Descriptor descriptor)
Add a new Descriptor to the set associated with this object.

Specified by:
addDescriptor in interface org.apache.commons.workflow.Descriptors
Parameters:
descriptor - The Descriptor to be added

findDescriptors

public org.apache.commons.workflow.Descriptor[] findDescriptors()
Return the set of Descriptor objects associated with this object, in the order that they were originally added.

Specified by:
findDescriptors in interface org.apache.commons.workflow.Descriptors

removeDescriptor

public void removeDescriptor(org.apache.commons.workflow.Descriptor descriptor)
Remove an existing Descriptor from the set associated with this object.

Specified by:
removeDescriptor in interface org.apache.commons.workflow.Descriptors
Parameters:
descriptor - The Descriptor to be removed


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