|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.livinglogic.struts.workflow.Workflow
Class that represents and stores information about a labeled workflow.
| Constructor Summary | |
Workflow()
|
|
| Method Summary | |
void |
addCleanupObject(String name,
WorkflowCleanup object)
Registers a named implementation of the WorkflowCleanup command pattern to be processed at the termination of this workflow. |
void |
clearAttributes()
Clears all known names/values. |
Object |
getAttribute(String attributeName)
Retrieve the value associated with the specified name. |
Set |
getAttributeNames()
|
Set |
getCleanupObjectNames()
|
String |
getCurrentState()
Returns the label of the current state. |
Object |
removeAttribute(String attributeName)
Remove the value associated with the specified name and return it. |
void |
setAttribute(String attributeName,
Object attributeValue)
Associate a value with the specified name which will remain available until this workflow terminates or it is removed using the removeAttribute() method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Workflow()
| Method Detail |
public Set getCleanupObjectNames()
public Set getAttributeNames()
public Object getAttribute(String attributeName)
attributeName - The name of the requested value
public Object removeAttribute(String attributeName)
attributeName - The name of the value that is to be removed.
public void setAttribute(String attributeName,
Object attributeValue)
throws IllegalArgumentException
attributeName - The name associated with the value to be stored.attributeValue - The value to be associated with the name and stored. If
an attribute is already stored under the specified name for this workflow, it
is replaced by this one.
IllegalArgmentException - If the attribute name is null.
IllegalArgumentExceptionpublic void clearAttributes()
public void addCleanupObject(String name,
WorkflowCleanup object)
throws IllegalArgumentException
name - symbolic name under which the object is known. If an object is
already registered under the specified name for this workflow, an exception
is thrownobject - command pattern implementation to be processed.
IllegalArgumentException, - if a cleanup object with the name of an
already existing one is added
IllegalArgumentExceptionpublic String getCurrentState()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||