private static class SpringValidatorAdapter.ResolvableAttribute extends java.lang.Object implements MessageSourceResolvable, java.io.Serializable
MessageSource
,
falling back to the original attribute as a default value otherwise.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
resolvableString |
Constructor and Description |
---|
ResolvableAttribute(java.lang.String resolvableString) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getArguments()
Return the array of arguments to be used to resolve this message.
|
java.lang.String[] |
getCodes()
Return the codes to be used to resolve this message, in the order that
they should get tried.
|
java.lang.String |
getDefaultMessage()
Return the default message to be used to resolve this message.
|
java.lang.String |
toString() |
public ResolvableAttribute(java.lang.String resolvableString)
public java.lang.String[] getCodes()
MessageSourceResolvable
getCodes
in interface MessageSourceResolvable
@Nullable public java.lang.Object[] getArguments()
MessageSourceResolvable
The default implementation simply returns null
.
getArguments
in interface MessageSourceResolvable
MessageFormat
public java.lang.String getDefaultMessage()
MessageSourceResolvable
The default implementation simply returns null
.
Note that the default message may be identical to the primary
message code (MessageSourceResolvable.getCodes()
), which effectively enforces
AbstractMessageSource.setUseCodeAsDefaultMessage(boolean)
for this particular message.
getDefaultMessage
in interface MessageSourceResolvable
null
if no defaultpublic java.lang.String toString()
toString
in class java.lang.Object