Package org.xmlunit.validation
Class ValidationResult
- java.lang.Object
-
- org.xmlunit.validation.ValidationResult
-
public class ValidationResult extends Object
The result of a validation.
-
-
Constructor Summary
Constructors Constructor Description ValidationResult(boolean valid, 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 Iterable<ValidationProblem>getProblems()Retrieves the problems that have been found.booleanisValid()Has the validation been successful?
-
-
-
Constructor Detail
-
ValidationResult
public ValidationResult(boolean valid, Iterable<ValidationProblem> problems)Creates a result based on a valid flag and an Iterable of iteration problems.- Parameters:
valid- whether validation has been successfulproblems- the problems detected
-
-
Method Detail
-
isValid
public boolean isValid()
Has the validation been successful?A successful validation results in no validation problems of type ERROR.
- Returns:
- whether validation has been successful
-
getProblems
public Iterable<ValidationProblem> getProblems()
Retrieves the problems that have been found.- Returns:
- problems detected
-
-