|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.workflow.BlockState
public class BlockState
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).
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 |
---|
protected Block block
Block
whose state is represented by this object.
protected boolean nest
Steps
of this
Block
again when the current execution finishes?
Constructor Detail |
---|
public BlockState(Block block, boolean nest)
BlockState
instance, associated with the
specified block
, and with the specified initial value
for the nest
property.
block
- The block
whose state this object representsnest
- The initial state of the nest
propertyMethod Detail |
---|
public Block getBlock()
public boolean getNest()
public void setNest(boolean nest)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |