Interface ValidationAgent


public interface ValidationAgent
Agent providing means to validate form data against defined rules.
Since:
5.0.8
  • Field Details

    • TYPE

      static final SpecialistType<ValidationAgent> TYPE
      Agent providing means to validate some store element against defined rules.
      Since:
      5.0.8
  • Method Details

    • validate

      Validate the data of the given element in given validation.
      Note: Child elements of the given element are not included in this validation and have to be validated separately, e.g., sections of a page.
      Parameters:
      element - Element whose data will be checked.
      scope - Scope for validation.
      Returns:
      A report on the validation results.
      Since:
      5.0.8
    • validate

      Validate the given data for the provided languages in given validation scope.
      Parameters:
      formData - The form data to validate.
      languages - The languages to be validated for.
      scope - Scope for validation.
      Returns:
      A report on the validation results.
      Since:
      5.0.8