public final class ValidationStrategies extends Object
| Constructor and Description |
|---|
ValidationStrategies() |
| Modifier and Type | Method and Description |
|---|---|
void |
all(List<org.mule.runtime.core.api.NestedProcessor> validations)
Perform a list of nested validation operations and informs only one
MultipleValidationResult which summarizes all of
the found errors (if any). |
public void all(@RestrictedTo(value=ValidationExtension.class) List<org.mule.runtime.core.api.NestedProcessor> validations) throws MultipleValidationException
MultipleValidationResult which summarizes all of
the found errors (if any).
If throwsException is true, then the ValidationResult is communicated by throwing a
ValidationException. On the other hand, if throwsException is false, then the
ValidationResult is set as the message payload.
When configured through XML, all the validations must include the All the child processors must contain the
validator-message-processor substitution group.
validations - the nested validation operationsMultipleValidationException - if at least one validator fails and throwsException is trueCopyright © 2017 MuleSoft, Inc.. All rights reserved.