Interface LocalizedTypeValidator
-
- All Known Implementing Classes:
LocalizedMediaValidator,LocalizedStringValidator
public interface LocalizedTypeValidatorValidator to validate localized attribute value of a given type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidreject(java.lang.String language, java.lang.String fieldName, java.lang.String errorCode, org.springframework.validation.Errors errors)Create a localized error message.voidvalidate(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 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(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 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
-
-