public final class ImmutableMultipleValidationResult extends Object implements MultipleValidationResult
MultipleValidationResult
.
Instances are to be created using the of(Iterable)
factory methodModifier and Type | Method and Description |
---|---|
List<ValidationResult> |
getFailedValidationResults()
|
String |
getMessage()
Returns all the messages from the
MultipleValidationResult.getFailedValidationResults() which failed
separated by a \n character |
boolean |
isError()
Whether the validation has failed or not
|
static MultipleValidationResult |
of(Iterable<ValidationResult> results)
A
Iterable with all the ValidationResult that were generated
together, both failed and successful alike. |
public static MultipleValidationResult of(Iterable<ValidationResult> results)
Iterable
with all the ValidationResult
that were generated
together, both failed and successful alike.results
- the obtained ValidationResult
objectsMultipleValidationResult
public boolean isError()
isError
in interface MultipleValidationResult
isError
in interface ValidationResult
true
if at least one of the MultipleValidationResult.getFailedValidationResults()
is not empty. false
otherwisepublic String getMessage()
MultipleValidationResult.getFailedValidationResults()
which failed
separated by a \n
charactergetMessage
in interface MultipleValidationResult
getMessage
in interface ValidationResult
String
or null
public List<ValidationResult> getFailedValidationResults()
getFailedValidationResults
in interface MultipleValidationResult
ValidationResult
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.