Class ValidationResult


  • public class ValidationResult
    extends Object
    The result of a schema validation. Contains single results describing the outcome of the validation.
    Author:
    riederb
    • Constructor Detail

      • ValidationResult

        public ValidationResult()
    • Method Detail

      • isOkay

        public boolean isOkay()
        Checks, if the schema validation has any outcome.
        Returns:
        true, if no single result is present.
      • isFatal

        public boolean isFatal()
        Checks, if a single result of severity FATAL_ERROR is present.
        Returns:
        true, if a single result of severity level FATAL_ERROR is present.
      • isError

        public boolean isError()
        Checks, if a single result of severity ERROR is present.
        Returns:
        true, if a single result of severity level ERROR is present.
      • isWarning

        public boolean isWarning()
        Checks, if a single result of severity WARNING is present.
        Returns:
        true, if a single result of severity level WARNING is present.
      • maxSeverityLevel

        public SeverityLevel maxSeverityLevel()
        Iterates single results and returns the highest severity level present.
        Returns:
        the highest severity level contained in a single result.
      • printValidationResults

        public void printValidationResults​(org.apache.logging.log4j.Logger LOGGER)
        Prints all results contained. Results are handed over to the LOGGER level INFO. If no results are present, the LOGGER prints outcome in level DEBUG.
        Parameters:
        LOGGER - the logger of the calling class. Results are handed over to the LOGGER level INFO.