com.opensymphony.workflow.loader
Class ActionDescriptor
java.lang.Object
com.opensymphony.workflow.loader.AbstractDescriptor
com.opensymphony.workflow.loader.ActionDescriptor
- All Implemented Interfaces:
- Validatable, XMLizable, Serializable
public class ActionDescriptor
- extends AbstractDescriptor
- implements Validatable
- Author:
- Pat Lightbody
- See Also:
- Serialized Form
| Fields inherited from interface com.opensymphony.workflow.util.XMLizable |
INDENT |
conditionalResults
protected List conditionalResults
postFunctions
protected List postFunctions
preFunctions
protected List preFunctions
validators
protected List validators
metaAttributes
protected Map metaAttributes
restriction
protected RestrictionDescriptor restriction
unconditionalResult
protected ResultDescriptor unconditionalResult
name
protected String name
view
protected String view
autoExecute
protected boolean autoExecute
common
protected boolean common
finish
protected boolean finish
setAutoExecute
public void setAutoExecute(boolean autoExecute)
getAutoExecute
public boolean getAutoExecute()
isCommon
public boolean isCommon()
getConditionalResults
public List getConditionalResults()
setFinish
public void setFinish(boolean finish)
isFinish
public boolean isFinish()
setMetaAttributes
public void setMetaAttributes(Map metaAttributes)
getMetaAttributes
public Map getMetaAttributes()
setName
public void setName(String name)
getName
public String getName()
getPostFunctions
public List getPostFunctions()
getPreFunctions
public List getPreFunctions()
setRestriction
public void setRestriction(RestrictionDescriptor restriction)
getRestriction
public RestrictionDescriptor getRestriction()
setUnconditionalResult
public void setUnconditionalResult(ResultDescriptor unconditionalResult)
getUnconditionalResult
public ResultDescriptor getUnconditionalResult()
getValidators
public List getValidators()
setView
public void setView(String view)
getView
public String getView()
toString
public String toString()
- Overrides:
toString in class Object
validate
public void validate()
throws InvalidWorkflowDescriptorException
- Description copied from interface:
Validatable
- Validate this element, and propagate validation to all contained sub-elements.
Should throw an InvalidWorkflowDescriptorException with details in message if the element
is invalid. Validity checks should be checks that cannot be encapsulated in the DTD.
Validation has to be called explicitly on writting, a writeXML() does not validate implicitly;
it *IS* thus possible to write invalid descriptor files. This could be useful for e.g.
a graphical workflow definition editor which would like to write incomplete definitions.
Validation *IS* performed on loading a workflow definition.
- Specified by:
validate in interface Validatable
- Throws:
InvalidWorkflowDescriptorException- See Also:
WorkflowLoader.load(java.io.InputStream)
writeXML
public void writeXML(PrintWriter out,
int indent)
- Specified by:
writeXML in interface XMLizable
init
protected void init(org.w3c.dom.Element action)