org.springframework.validation.MessageCodesResolver |
Known Indirect Subclasses |
Strategy interface for building message codes from validation error codes. Used by DataBinder to build the codes list for ObjectErrors and FieldErrors.
The resulting message codes correspond to the codes of a MessageSourceResolvable (as implemented by ObjectError and FieldError).
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Build message codes for the given error code and object name.
| |||||||||||
Build message codes for the given error code and field specification.
|
Build message codes for the given error code and object name. Used for building the codes list of an ObjectError.
errorCode | the error code used for rejecting the object |
---|---|
objectName | the name of the object |
Build message codes for the given error code and field specification. Used for building the codes list of an FieldError.
errorCode | the error code used for rejecting the value |
---|---|
objectName | the name of the object |
field | the field name |
fieldType | the field type (may be null if not determinable) |