Class LoggingValidationHandler

java.lang.Object
gov.nist.secauto.metaschema.cli.util.LoggingValidationHandler

public final class LoggingValidationHandler extends Object
  • Method Details

    • instance

      @NonNull public static LoggingValidationHandler instance()
      Get a singleton instance of the logging validation handler.

      This instance will not log exceptions.

      Returns:
      the instance
    • instance

      @NonNull public static LoggingValidationHandler instance(boolean logExceptions)
      Get a singleton instance of the logging validation handler.
      Parameters:
      logExceptions - true if this instance will log exceptions or false otherwise
      Returns:
      the instance
    • isLogExceptions

      public boolean isLogExceptions()
      Determine if exceptions should be logged.
      Returns:
      true if exceptions are logged or false otherwise
    • handleValidationResults

      public boolean handleValidationResults(gov.nist.secauto.metaschema.core.model.validation.IValidationResult result)
      Handle the provided collection of validation results.
      Parameters:
      result - the validation results
      Returns:
      true if the result is passing or false otherwise
    • handleValidationFindings

      public void handleValidationFindings(@NonNull List<? extends gov.nist.secauto.metaschema.core.model.validation.IValidationFinding> findings)
      Handle the provided collection of validation findings.
      Parameters:
      findings - the findings to process