org.apache.commons.workflow
Class BlockState

java.lang.Object
  extended by org.apache.commons.workflow.BlockState

public class BlockState
extends Object

BlockState represents the current dynamic execution state of a Block that is executing nested Steps. This class will serve for most Block implementations, but may be subclassed for Blocks with a requirement to maintain additional state information (such as a "for" loop that needs to keep track of the starting and ending indexes, and the iteration counter).

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

Field Summary
protected  Block block
          The Block whose state is represented by this object.
protected  boolean nest
          Should we execute the nested Steps of this Block again when the current execution finishes?
 
Constructor Summary
BlockState(Block block, boolean nest)
          Construct a new BlockState instance, associated with the specified block, and with the specified initial value for the nest property.
 
Method Summary
 Block getBlock()
           
 boolean getNest()
           
 void setNest(boolean nest)
           
 String toString()
          Render a String version of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

block

protected Block block
The Block whose state is represented by this object.


nest

protected boolean nest
Should we execute the nested Steps of this Block again when the current execution finishes?

Constructor Detail

BlockState

public BlockState(Block block,
                  boolean nest)
Construct a new BlockState instance, associated with the specified block, and with the specified initial value for the nest property.

Parameters:
block - The block whose state this object represents
nest - The initial state of the nest property
Method Detail

getBlock

public Block getBlock()

getNest

public boolean getNest()

setNest

public void setNest(boolean nest)

toString

public String toString()
Render a String version of this object.

Overrides:
toString in class Object


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