public interface MultipleValidationResult extends ValidationResult
ValidationResult which represents a group of validations that were executed together.
This interface redefines the ValidationResult contract so that the isError() and getMessage() methods
consider the results of all the validations.
Additionally, the getFailedValidationResults() method is added to give more detailed access to the validations that
failed| Modifier and Type | Method and Description |
|---|---|
List<ValidationResult> |
getFailedValidationResults()
|
String |
getMessage()
Returns all the messages from the
getFailedValidationResults() which failed separated by a \n character |
boolean |
isError()
Whether the validation has failed or not
|
getErrorTypeboolean isError()
ValidationResultisError in interface ValidationResulttrue if at least one of the getFailedValidationResults() is not empty. false otherwiseString getMessage()
getFailedValidationResults() which failed separated by a \n charactergetMessage in interface ValidationResultString or nullList<ValidationResult> getFailedValidationResults()
ValidationResultCopyright © 2017 MuleSoft, Inc.. All rights reserved.