Package com.adaptris.transform.validate
Class ValidationStage
java.lang.Object
com.adaptris.transform.validate.ValidationStage
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 Summary
ConstructorsConstructorDescriptionValidationStage
(String iterationXpath, String elementXpath, ContentValidation... ruleList) ValidationStage
(String iterationXpath, String elementXpath, List<ContentValidation> ruleList) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRule
(ContentValidation validationRule) Add a rule to this stage.final boolean
Get the configured element xpath.Get the iteration xpath.getRules()
Get the list of configured rules.void
setElementXpath
(String xpath) Set the element xpath.void
If thegetIterationXpath()
returns a zero length nodelist should we fail.void
setIterationXpath
(String xpath) Set the iteration xpath.void
Set the list of configured rules.
-
Constructor Details
-
ValidationStage
public ValidationStage() -
ValidationStage
-
ValidationStage
public ValidationStage(String iterationXpath, String elementXpath, List<ContentValidation> ruleList)
-
-
Method Details
-
setIterationXpath
Set the iteration xpath.- Parameters:
xpath
- the xpath
-
getIterationXpath
Get the iteration xpath.- Returns:
- the configured xpath.
-
setElementXpath
Set the element xpath.- Parameters:
xpath
- the xpath.
-
getElementXpath
Get the configured element xpath.- Returns:
- the xpath.
-
addRule
Add a rule to this stage.- Parameters:
validationRule
- the rule.
-
getRules
Get the list of configured rules.- Returns:
- the configured list.
-
setRules
Set the list of configured rules.- Parameters:
l
- the configured list.
-
getFailOnIterateFailure
-
setFailOnIterateFailure
If thegetIterationXpath()
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()
-