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 failedModifier 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
|
boolean isError()
ValidationResult
isError
in interface ValidationResult
true
if at least one of the getFailedValidationResults()
is not empty. false
otherwiseString getMessage()
getFailedValidationResults()
which failed
separated by a \n
charactergetMessage
in interface ValidationResult
String
or null
List<ValidationResult> getFailedValidationResults()
ValidationResult
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.