com.interface21.context
Interface MessageSourceResolvable

All Known Implementing Classes:
MessageSourceResolvableImpl

public interface MessageSourceResolvable

Interface for objects that are suitable for message resolution, e.g. validation errors.

Author:
Tony Falabella
See Also:
MessageSource.getMessage(java.lang.String, java.lang.Object[], java.lang.String, java.util.Locale)

Method Summary
 java.lang.Object[] getArgs()
          Return the array of args to be used to resolve this message.
 java.lang.String[] getCodes()
          Return the codes to be used to resolve this message, in the order they should get tried.
 java.lang.String getDefaultMessage()
          Return the defaultMessage to be used to resolve this message.
 

Method Detail

getCodes

public java.lang.String[] getCodes()
Return the codes to be used to resolve this message, in the order they should get tried. The last code will therefore be the default one.
Returns:
a String code associated with this message

getArgs

public java.lang.Object[] getArgs()
Return the array of args to be used to resolve this message.
Returns:
An array of objects to be used as params to replace placeholders within the code message text.

getDefaultMessage

public java.lang.String getDefaultMessage()
Return the defaultMessage to be used to resolve this message.
Returns:
The defaultMessage, or null if no default.


Rod Johnson and Spring contributors 2001-2003.