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 TypeMethodDescriptionvoidreject(String language, String fieldName, String errorCode, org.springframework.validation.Errors errors) Create a localized error message.voidvalidate(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 messagelocale- - the Locale under validationfieldName- - the name of the field under validationvalue- - the attribute value value in the given localeerrors- - 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 messagelocale- - the Locale under validationfieldName- - the name of the field under validationvalue- - the attribute value value in the given localeerrorCode- - the error codeerrors- - the current errors context
-