org.apache.commons.workflow.core
Class WhileNotStep
java.lang.Object
org.apache.commons.workflow.base.BaseStep
org.apache.commons.workflow.base.DescriptorStep
org.apache.commons.workflow.base.BaseBlock
org.apache.commons.workflow.core.WhileStep
org.apache.commons.workflow.core.WhileNotStep
- All Implemented Interfaces:
- org.apache.commons.workflow.Block, org.apache.commons.workflow.Descriptors, org.apache.commons.workflow.Iterator, org.apache.commons.workflow.Owner, org.apache.commons.workflow.Step
- public class WhileNotStep
- extends WhileStep
Repeatedly evaluate the properties specified by the associated
Descriptors, and execute the nested Steps if and only if
ANY of them evaluate to a negative result.
To avoid non-deterministic evaluation
stack behavior, all of the specified Descriptors are always
evaluated exactly once.
- Version:
- $Revision: 1.3 $ $Date: 2004/02/28 03:35:54 $
|
Constructor Summary |
WhileNotStep()
Construct a default instance of this Step. |
WhileNotStep(java.lang.String id)
Construct an instance of this Step with the specified identifier. |
WhileNotStep(java.lang.String id,
org.apache.commons.workflow.Descriptor descriptor)
Construct a fully configured instance of this Step. |
|
Method Summary |
protected boolean |
evaluate(org.apache.commons.workflow.Context context)
Evaluate the condition specified by the Descriptors associated with
this Block, and return the resulting boolean value. |
java.lang.String |
toString()
Render a string representation of this Step. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.commons.workflow.Owner |
addStep, clearSteps, findStep, getFirstStep, getLastStep, getSteps, setSteps |
| Methods inherited from interface org.apache.commons.workflow.Step |
execute, getId, getNextStep, getOwner, getPreviousStep, setId, setNextStep, setOwner, setPreviousStep |
WhileNotStep
public WhileNotStep()
- Construct a default instance of this Step.
WhileNotStep
public WhileNotStep(java.lang.String id)
- Construct an instance of this Step with the specified identifier.
- Parameters:
id - Step identifier
WhileNotStep
public WhileNotStep(java.lang.String id,
org.apache.commons.workflow.Descriptor descriptor)
- Construct a fully configured instance of this Step.
- Parameters:
id - Step identifier of this stepdescriptor - Initial descriptor to be added
toString
public java.lang.String toString()
- Render a string representation of this Step.
- Overrides:
toString in class WhileStep
evaluate
protected boolean evaluate(org.apache.commons.workflow.Context context)
- Evaluate the condition specified by the Descriptors associated with
this Block, and return the resulting boolean value.
- Overrides:
evaluate in class WhileStep
- Parameters:
context - Context within which to evaluate the descriptors
Copyright © 2001-2005 The Apache Software Foundation. All Rights Reserved.