|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageCodesResolver
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).
DataBinder.setMessageCodesResolver(org.springframework.validation.MessageCodesResolver)
,
ObjectError
,
FieldError
,
MessageSourceResolvable.getCodes()
Method Summary | |
---|---|
String[] |
resolveMessageCodes(String errorCode,
String objectName)
Build message codes for the given error code and object name. |
String[] |
resolveMessageCodes(String errorCode,
String objectName,
String field,
Class fieldType)
Build message codes for the given error code and field specification. |
Method Detail |
---|
String[] resolveMessageCodes(String errorCode, String objectName)
errorCode
- the error code used for rejecting the objectobjectName
- the name of the object
String[] resolveMessageCodes(String errorCode, String objectName, String field, Class fieldType)
errorCode
- the error code used for rejecting the valueobjectName
- the name of the objectfield
- the field namefieldType
- the field type (may be null
if not determinable)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |