|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javawebparts.misc.chain.Chain
This class represents a Chain.
Field Summary | |
private java.util.List |
commands
The collection of Commands that belong to this Chain. |
private int |
executionIndex
The index of the currently executing Command in this Chain. |
private java.lang.String |
extendsID
The ID of the Catalog this Catalog extends, if any |
private java.lang.String |
id
The ID of this Chain. |
private static org.apache.commons.logging.Log |
log
Log instance. |
Constructor Summary | |
Chain()
Constructor. |
|
Chain(java.lang.String inID,
java.lang.String inExtendsID)
Constructor. |
Method Summary | |
void |
addCommand(CommandConfig inCommand)
Adds a Command to this Chain. |
java.util.List |
cloneCommands()
Returns a clone of the commands collection for this Chain. |
Result |
execute(ChainManager chainManager,
ChainContext chainContext)
Executes the Chain. |
java.lang.String |
getExtendsID()
Gets the ID of the Chain that this Chain extends. |
java.lang.String |
getId()
Gets the ID of this Chain. |
void |
setCommands(java.util.List inCommands)
Sets the entire commands collection at once. |
void |
setExtendsID(java.lang.String inExtendsID)
Sets the ID of the Chain that this Chain extends. |
void |
setId(java.lang.String inID)
Sets the ID of this Chain. |
java.lang.String |
toString()
Overridden toString method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static org.apache.commons.logging.Log log
private java.util.List commands
private int executionIndex
private java.lang.String id
private java.lang.String extendsID
Constructor Detail |
public Chain()
public Chain(java.lang.String inID, java.lang.String inExtendsID)
inID
- The ID of this Chain.inExtendsID
- The ID of the Chain this one extends.Method Detail |
public java.util.List cloneCommands()
public void setId(java.lang.String inID)
inID
- The ID of this Chain.public java.lang.String getId()
public void setExtendsID(java.lang.String inExtendsID)
inExtendsID
- The ID of the Chain this one extends.public java.lang.String getExtendsID()
public void addCommand(CommandConfig inCommand)
inCommand
- The CommandConfig to add to this Chain.public void setCommands(java.util.List inCommands)
inCommands
- The collection of CommandConfigs to add to this Chain.public Result execute(ChainManager chainManager, ChainContext chainContext)
chainManager
- The ChainManager instance executing this Chain.chainContext
- The ChainContext instance being used by this Chain.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |