Package org.xmlunit.validation
Class ValidationResult
java.lang.Object
org.xmlunit.validation.ValidationResult
The result of a validation.
-
Constructor Summary
ConstructorDescriptionValidationResult
(boolean valid, Iterable<ValidationProblem> problems) Creates a result based on a valid flag and an Iterable of iteration problems. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the problems that have been found.boolean
isValid()
Has the validation been successful?
-
Constructor Details
-
ValidationResult
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 Details
-
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
Retrieves the problems that have been found.- Returns:
- problems detected
-