public class ValidationResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.Iterable<ValidationProblem> |
problems |
private boolean |
valid |
Constructor and Description |
---|
ValidationResult(boolean valid,
java.lang.Iterable<ValidationProblem> problems)
Creates a result based on a valid flag and an Iterable of
iteration problems.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<ValidationProblem> |
getProblems()
Retrieves the problems that have been found.
|
boolean |
isValid()
Has the validation been successful?
|
private final boolean valid
private final java.lang.Iterable<ValidationProblem> problems
public ValidationResult(boolean valid, java.lang.Iterable<ValidationProblem> problems)
public boolean isValid()
A successful validation results in no validation problems of type ERROR.
public java.lang.Iterable<ValidationProblem> getProblems()