Class ConditionDescriptor

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

public class ConditionDescriptor extends AbstractDescriptor implements Validatable
DOCUMENT ME!
See Also:
  • Field Details

    • args

      protected Map args
    • name

      protected String name
      The name field helps the editor identify the condition template used.
    • type

      protected String type
    • negate

      protected boolean negate
  • Method Details

    • getArgs

      public Map getArgs()
    • setName

      public void setName(String name)
    • getName

      public String getName()
    • setNegate

      public void setNegate(boolean negate)
    • isNegate

      public boolean isNegate()
    • setType

      public void setType(String type)
    • getType

      public String getType()
    • 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:
    • writeXML

      public void writeXML(PrintWriter out, int indent)
      Specified by:
      writeXML in interface XMLizable
    • init

      protected void init(Element condition)