Class ErrorIdentifierValidator

java.lang.Object
com.exasol.errorcodecrawlermavenplugin.validation.ErrorIdentifierValidator
All Implemented Interfaces:
ErrorMessageDeclarationValidator

public class ErrorIdentifierValidator extends Object
This ErrorMessageDeclarationValidator validates that the error identifier has a valid format.
  • Constructor Details

    • ErrorIdentifierValidator

      public ErrorIdentifierValidator()
      Creates a new instance of ErrorIdentifierValidator.

      This validator checks whether the error identifier in a given ErrorMessageDeclaration conforms to the expected syntax. It is typically used as part of the error code validation pipeline.

  • Method Details

    • validateSingleErrorMessageDeclaration

      protected Stream<Finding> validateSingleErrorMessageDeclaration(com.exsol.errorcodemodel.ErrorMessageDeclaration errorMessageDeclaration)
      Validate a single ErrorMessageDeclaration.
      Parameters:
      errorMessageDeclaration - ErrorMessageDeclaration to validate
      Returns:
      validation findings
    • validate

      public final List<Finding> validate(Collection<com.exsol.errorcodemodel.ErrorMessageDeclaration> errorMessageDeclarations)
      Description copied from interface: ErrorMessageDeclarationValidator
      Validate the passed error message declarations.
      Specified by:
      validate in interface ErrorMessageDeclarationValidator
      Parameters:
      errorMessageDeclarations - error codes to validate
      Returns:
      list of findings