| com.opensymphony.workflow.util.Validatable
All known Subclasses: com.opensymphony.workflow.loader.ResultDescriptor, com.opensymphony.workflow.loader.RestrictionDescriptor, com.opensymphony.workflow.loader.StepDescriptor, com.opensymphony.workflow.loader.ConditionsDescriptor, com.opensymphony.workflow.loader.ConditionDescriptor, com.opensymphony.workflow.loader.SplitDescriptor, com.opensymphony.workflow.loader.WorkflowDescriptor, com.opensymphony.workflow.loader.JoinDescriptor, com.opensymphony.workflow.loader.ActionDescriptor,
Validatable | public interface Validatable (Code) | | Abstact base class for elements that can be validated.
author: Michael Vorburger version: $Revision: 1.2 $ |
Method Summary | |
public void | validate() Validate this element, and propagate validation to all contained sub-elements.
Should throw an InvalidWorkflowDescriptorException with details in message if the element
is invalid. |
validate | public void validate() throws InvalidWorkflowDescriptorException(Code) | | 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.
See Also: com.opensymphony.workflow.loader.WorkflowLoader.load throws: InvalidWorkflowDescriptorException - |
|
|