Package com.opensymphony.workflow.loader
Class RestrictionDescriptor
java.lang.Object
com.opensymphony.workflow.loader.AbstractDescriptor
com.opensymphony.workflow.loader.RestrictionDescriptor
- All Implemented Interfaces:
Validatable,XMLizable,Serializable
- Author:
- Pat Lightbody
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.protected voidvoidsetConditionsDescriptor(ConditionsDescriptor descriptor) voidvalidate()Validate this element, and propagate validation to all contained sub-elements.voidwriteXML(PrintWriter out, int indent) Methods inherited from class com.opensymphony.workflow.loader.AbstractDescriptor
asXML, getEntityId, getId, getParent, hasId, setEntityId, setId, setParent
-
Field Details
-
conditions
-
-
Constructor Details
-
RestrictionDescriptor
public RestrictionDescriptor() -
RestrictionDescriptor
-
-
Method Details
-
getConditions
Deprecated.A restrict-to can only have one conditions element, please usegetConditionsDescriptor()instead. -
setConditionsDescriptor
-
getConditionsDescriptor
-
validate
Description copied from interface:ValidatableValidate 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:
validatein interfaceValidatable- Throws:
InvalidWorkflowDescriptorException- See Also:
-
writeXML
-
init
-
getConditionsDescriptor()instead.