Interface ValidationMatcher

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ValidationMatcher
General validation matcher interface.
Author:
Christian Wied
  • Field Details

  • Method Details

    • lookup

      static Map<String,ValidationMatcher> lookup()
      Resolves all available validators from resource path lookup. Scans classpath for validator meta information and instantiates those validators.
      Returns:
    • validate

      void validate(String fieldName, String value, List<String> controlParameters, TestContext context) throws ValidationException
      Method called on validation.
      Parameters:
      fieldName - the fieldName for logging purpose.
      value - the value to be validated.
      controlParameters - the control parameters.
      context -
      Throws:
      ValidationException - when validation fails