org.springframework.context
Interface MessageSourceResolvable

All Known Implementing Classes:
MessageSourceResolvableImpl

public interface MessageSourceResolvable

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

Author:
Tony Falabella, Juergen Hoeller
See Also: MessageSource.getMessage(org.springframework.context.MessageSourceResolvable,java.util.Locale), ObjectError

Method Summary
 Object[]getArguments()
          Return the array of arguments to be used to resolve this message.
 String[]getCodes()
          Return the codes to be used to resolve this message, in the order that they should get tried.
 StringgetDefaultMessage()
          Return the default message to be used to resolve this message.

Method Detail

getArguments

public Object[] getArguments()
Return the array of arguments to be used to resolve this message.
Returns: an array of objects to be used as parameters to replace placeholders within the code message text
See Also:
java.text.MessageFormat

getCodes

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.
Returns: a String code associated with this message

getDefaultMessage

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