MessageSource.
Spring's own validation error classes implement this interface.
MessageSource#getMessage(MessageSourceResolvable, java.util.Locale) , org.springframework.validation.ObjectError , org.springframework.validation.FieldError
| Modifier and Type | Method and Description |
|---|---|
| public default Object[] | Returns: an array of objects to be used as parameters to replace placeholders within the message textReturn the array of arguments to be used to resolve this message. |
| public String[] | Returns: a String array of codes which are associated with this messageReturn the codes to be used to resolve this message, in the order that they should get tried. |
| public default String | Returns: the default message, ornull if no defaultReturn the default message to be used to resolve this message. |
| getArguments | back to summary |
|---|---|
| public default Object[] getArguments() Return the array of arguments to be used to resolve this message. The default implementation simply returns
| |
| getCodes | back to summary |
|---|---|
| public String[] getCodes() Return the codes to be used to resolve this message, in the order that they should get tried. The last code will therefore be the default one. | |
| getDefaultMessage | back to summary |
|---|---|
| public default String getDefaultMessage() Return the default message to be used to resolve this message. The default implementation simply returns | |