Class ConditionalResultDescriptor

All Implemented Interfaces:
Validatable, XMLizable, Serializable

public class ConditionalResultDescriptor extends ResultDescriptor
Author:
Pat Lightbody
See Also:
  • Field Details

    • conditions

      protected List conditions
  • Method Details

    • getConditions

      public List getConditions()
    • getDestination

      public String getDestination()
    • 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
      Overrides:
      validate in class ResultDescriptor
      Throws:
      InvalidWorkflowDescriptorException
      See Also:
    • writeXML

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

      protected void init(Element conditionalResult)
      Overrides:
      init in class ResultDescriptor