Class ValidationResult


  • public class ValidationResult
    extends java.lang.Object
    The result of a validation.
    • 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?
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • valid

        private final boolean valid
    • 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.