|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.context.support.DefaultMessageSourceResolvable
Default implementation of the MessageSourceResolvable interface. Easy way to store all the necessary values needed to resolve messages from a MessageSource.
Constructor Summary | |
DefaultMessageSourceResolvable(MessageSourceResolvable resolvable)
Copy constructor: Create a new instance from another resolvable. |
|
DefaultMessageSourceResolvable(java.lang.String[] codes,
java.lang.Object[] arguments)
Create a new instance, using multiple codes. |
|
DefaultMessageSourceResolvable(java.lang.String[] codes,
java.lang.Object[] arguments,
java.lang.String defaultMessage)
Create a new instance, using multiple codes and a default message. |
Method Summary | |
java.lang.Object[] |
getArguments()
Return the array of arguments to be used to resolve this message. |
java.lang.String |
getCode()
Return the default code of this resolvable, i.e. the last one in the codes array. |
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. |
protected java.lang.String |
resolvableToString()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DefaultMessageSourceResolvable(java.lang.String[] codes, java.lang.Object[] arguments)
MessageSourceResolvable.getCodes()
public DefaultMessageSourceResolvable(java.lang.String[] codes, java.lang.Object[] arguments, java.lang.String defaultMessage)
MessageSourceResolvable.getCodes()
public DefaultMessageSourceResolvable(MessageSourceResolvable resolvable)
Method Detail |
public java.lang.String[] getCodes()
MessageSourceResolvable
getCodes
in interface MessageSourceResolvable
public java.lang.String getCode()
public java.lang.Object[] getArguments()
MessageSourceResolvable
getArguments
in interface MessageSourceResolvable
public java.lang.String getDefaultMessage()
MessageSourceResolvable
getDefaultMessage
in interface MessageSourceResolvable
protected java.lang.String resolvableToString()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |