Interface LocalizedTypeValidator

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void reject​(java.lang.String language, java.lang.String fieldName, java.lang.String errorCode, org.springframework.validation.Errors errors)
      Create a localized error message.
      void validate​(java.lang.String language, java.lang.String fieldName, java.lang.String value, org.springframework.validation.Errors errors)
      Validate the attribute value.
    • Method Detail

      • validate

        void validate​(java.lang.String language,
                      java.lang.String fieldName,
                      java.lang.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​(java.lang.String language,
                    java.lang.String fieldName,
                    java.lang.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