com.opensymphony.workflow.loader
Class RestrictionDescriptor

java.lang.Object
  extended by com.opensymphony.workflow.loader.AbstractDescriptor
      extended by com.opensymphony.workflow.loader.RestrictionDescriptor
All Implemented Interfaces:
Validatable, XMLizable, Serializable

public class RestrictionDescriptor
extends AbstractDescriptor
implements Validatable

Author:
Pat Lightbody
See Also:
Serialized Form

Field Summary
protected  List conditions
           
 
Fields inherited from interface com.opensymphony.workflow.util.XMLizable
INDENT
 
Constructor Summary
RestrictionDescriptor()
           
RestrictionDescriptor(org.w3c.dom.Element restriction)
           
 
Method Summary
 List getConditions()
          Deprecated. A restrict-to can only have one conditions element, please use getConditionsDescriptor() instead.
 ConditionsDescriptor getConditionsDescriptor()
           
protected  void init(org.w3c.dom.Element restriction)
           
 void setConditionsDescriptor(ConditionsDescriptor descriptor)
           
 void validate()
          Validate this element, and propagate validation to all contained sub-elements.
 void writeXML(PrintWriter out, int indent)
           
 
Methods inherited from class com.opensymphony.workflow.loader.AbstractDescriptor
asXML, getEntityId, getId, getParent, hasId, setEntityId, setId, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conditions

protected List conditions
Constructor Detail

RestrictionDescriptor

public RestrictionDescriptor()

RestrictionDescriptor

public RestrictionDescriptor(org.w3c.dom.Element restriction)
Method Detail

getConditions

public List getConditions()
Deprecated. A restrict-to can only have one conditions element, please use getConditionsDescriptor() instead.


setConditionsDescriptor

public void setConditionsDescriptor(ConditionsDescriptor descriptor)

getConditionsDescriptor

public ConditionsDescriptor getConditionsDescriptor()

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 restriction)

OpenSymphony Workflow Project Page