|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Strategy interface for building message codes from validation error codes. Used by BindException/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).
ObjectError,
FieldError,
MessageSourceResolvable.getCodes()| Method Summary | |
java.lang.String[] |
resolveMessageCodes(java.lang.String errorCode,
java.lang.String objectName)
Build message codes for the given error code and object name. |
java.lang.String[] |
resolveMessageCodes(java.lang.String errorCode,
java.lang.String objectName,
java.lang.String field,
java.lang.Class fieldType)
Build message codes for the given error code and field specification. |
| Method Detail |
public java.lang.String[] resolveMessageCodes(java.lang.String errorCode,
java.lang.String objectName)
errorCode - the error code used for rejecting the objectobjectName - the name of the object
public java.lang.String[] resolveMessageCodes(java.lang.String errorCode,
java.lang.String objectName,
java.lang.String field,
java.lang.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 | ||||||||||