Package org.xmlunit.validation
Class ValidationResult
- java.lang.Object
-
- org.xmlunit.validation.ValidationResult
-
public class ValidationResult extends java.lang.Object
The result of a validation.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Iterable<ValidationProblem>
problems
private boolean
valid
-
Constructor Summary
Constructors Constructor Description ValidationResult(boolean valid, java.lang.Iterable<ValidationProblem> problems)
Creates a result based on a valid flag and an Iterable of iteration problems.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Iterable<ValidationProblem>
getProblems()
Retrieves the problems that have been found.boolean
isValid()
Has the validation been successful?
-
-
-
Field Detail
-
valid
private final boolean valid
-
problems
private final java.lang.Iterable<ValidationProblem> problems
-
-
Constructor Detail
-
ValidationResult
public ValidationResult(boolean valid, java.lang.Iterable<ValidationProblem> problems)
Creates a result based on a valid flag and an Iterable of iteration problems.
-
-
Method Detail
-
isValid
public boolean isValid()
Has the validation been successful?A successful validation results in no validation problems of type ERROR.
-
getProblems
public java.lang.Iterable<ValidationProblem> getProblems()
Retrieves the problems that have been found.
-
-