Class ValidationStage

java.lang.Object
com.adaptris.transform.validate.ValidationStage

public class ValidationStage extends Object
A Stage within the validation.

In the adapter configuration file this class is aliased as xml-validation-stage which is the preferred alternative to the fully qualified classname when building your configuration.

  • Constructor Details

  • Method Details

    • setIterationXpath

      public void setIterationXpath(String xpath)
      Set the iteration xpath.
      Parameters:
      xpath - the xpath
    • getIterationXpath

      public String getIterationXpath()
      Get the iteration xpath.
      Returns:
      the configured xpath.
    • setElementXpath

      public void setElementXpath(String xpath)
      Set the element xpath.
      Parameters:
      xpath - the xpath.
    • getElementXpath

      public String getElementXpath()
      Get the configured element xpath.
      Returns:
      the xpath.
    • addRule

      public void addRule(ContentValidation validationRule)
      Add a rule to this stage.
      Parameters:
      validationRule - the rule.
    • getRules

      public List<ContentValidation> getRules()
      Get the list of configured rules.
      Returns:
      the configured list.
    • setRules

      public void setRules(List<ContentValidation> l)
      Set the list of configured rules.
      Parameters:
      l - the configured list.
    • getFailOnIterateFailure

      public Boolean getFailOnIterateFailure()
    • setFailOnIterateFailure

      public void setFailOnIterateFailure(Boolean b)
      If the getIterationXpath() returns a zero length nodelist should we fail.
      Parameters:
      b - true to throw an exception of a zero length nodelist is returned, default is null (false)
    • failOnIteratorFailure

      public final boolean failOnIteratorFailure()