Class ValidationResult

java.lang.Object
org.xmlunit.validation.ValidationResult

public class ValidationResult extends Object
The result of a validation.
  • Constructor Details

    • 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 successful
      problems - 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

      public Iterable<ValidationProblem> getProblems()
      Retrieves the problems that have been found.
      Returns:
      problems detected