public interface MessageCodesResolver
The resulting message codes correspond to the codes of a MessageSourceResolvable (as implemented by ObjectError and DefaultFieldObjectError).
| Modifier and Type | Method and Description |
|---|---|
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.
|
@Nonnull String[] resolveMessageCodes(@Nonnull String errorCode, @Nonnull String objectName)
errorCode - the error code used for rejecting the objectobjectName - the name of the object@Nonnull String[] resolveMessageCodes(@Nonnull String errorCode, @Nonnull String objectName, @Nonnull String field, @Nonnull 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)