@Validator public final class ValidationStrategies extends Object
| Constructor and Description |
|---|
ValidationStrategies() |
| Modifier and Type | Method and Description |
|---|---|
void |
all(org.mule.runtime.extension.api.runtime.route.Chain validations,
org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void,Void> callback)
Perform a list of nested validation operations and informs only one
VALIDATION:MULTIPLE error which
summarizes all of the found errors (if any). |
void |
any(org.mule.runtime.extension.api.runtime.route.Chain validations,
org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void,Void> callback)
Perform a list of nested validation operations and informs only one
VALIDATION:MULTIPLE error which summarizes all of
the found errors (if all failed). |
@Throws(value=MultipleErrorType.class) public void all(@AllowedStereotypes(value=org.mule.runtime.extension.api.stereotype.ValidatorStereotype.class) org.mule.runtime.extension.api.runtime.route.Chain validations, org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void,Void> callback) throws MultipleValidationException
VALIDATION:MULTIPLE error which
summarizes all of the found errors (if any).validations - the nested validation operationsMultipleValidationException - if at least one validator fails and throwsException is true@Throws(value=MultipleErrorType.class) public void any(@AllowedStereotypes(value=org.mule.runtime.extension.api.stereotype.ValidatorStereotype.class) org.mule.runtime.extension.api.runtime.route.Chain validations, org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void,Void> callback) throws MultipleValidationException
VALIDATION:MULTIPLE error which summarizes all of
the found errors (if all failed).validations - the nested validation operationsMultipleValidationException - if all validators fail and throwsException is trueCopyright © 2021 MuleSoft, Inc.. All rights reserved.