Interface LocalizedTypeValidator

All Known Implementing Classes:
LocalizedMediaValidator, LocalizedStringValidator

public interface LocalizedTypeValidator
Validator to validate localized attribute value of a given type.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    reject(String language, String fieldName, String errorCode, org.springframework.validation.Errors errors)
    Create a localized error message.
    void
    validate(String language, String fieldName, String value, org.springframework.validation.Errors errors)
    Validate the attribute value.
  • Method Details

    • validate

      void validate(String language, String fieldName, String value, org.springframework.validation.Errors errors)
      Validate the attribute value.
      Parameters:
      language - - the language of the error message
      locale - - the Locale under validation
      fieldName - - the name of the field under validation
      value - - the attribute value value in the given locale
      errors - - the current errors context
    • reject

      void reject(String language, String fieldName, String errorCode, org.springframework.validation.Errors errors)
      Create a localized error message.
      Parameters:
      language - - the language of the error message
      locale - - the Locale under validation
      fieldName - - the name of the field under validation
      value - - the attribute value value in the given locale
      errorCode - - the error code
      errors - - the current errors context