|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 | |
protected |
DefaultMessageSourceResolvable()
Used only by subclasses who need to do custom initialization before setting code, arguments, and/or the default message. |
|
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. |
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()
|
protected void |
setArguments(java.lang.Object[] arguments)
|
protected void |
setCodes(java.lang.String[] codes)
|
protected void |
setDefaultMessage(java.lang.String defaultMessage)
|
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)
protected DefaultMessageSourceResolvable()
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 void setCodes(java.lang.String[] codes)
protected void setArguments(java.lang.Object[] arguments)
protected void setDefaultMessage(java.lang.String defaultMessage)
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 |