public final class ValidationStrategies extends Object
Constructor and Description |
---|
ValidationStrategies() |
Modifier and Type | Method and Description |
---|---|
void |
all(List<NestedProcessor> validations,
MuleEvent muleEvent)
Perform a list of nested validation operations and informs only one
MultipleValidationResult
which summarizes all of the found errors (if any). |
@Operation public void all(@RestrictedTo(value=ValidationExtension.class) List<NestedProcessor> validations, MuleEvent muleEvent) 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 operationsmuleEvent
- the current MuleEvent
MultipleValidationException
- if at least one validator fails and throwsException
is true
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.