Interface LocalizedValidator

All Known Implementing Classes:
DefaultLocalizedValidator

public interface LocalizedValidator
Validator to validate localized attributes.
  • Method Details

    • validateAllLanguages

      <T> void validateAllLanguages(BiConsumer<String,T> consumer, Function<String,T> function, org.springframework.validation.Errors errors)
      Validate localized attributes for all languages.
      Parameters:
      consumer - - contains the logic to perform the actual validation
      function - - contains the method to use to extract the localized content to be validated
      errors - - contains the current error context
    • validateRequiredLanguages

      <T> void validateRequiredLanguages(BiConsumer<String,T> consumer, Function<String,T> function, org.springframework.validation.Errors errors)
      Validate localized attributes for required languages only.
      Parameters:
      consumer - - contains the logic to perform the actual validation
      function - - contains the method to use to extract the localized content to be validated
      errors - - contains the current error context