org.springframework.context
Interface MessageSourceResolvable

All Known Implementing Classes:
DefaultMessageSourceResolvable

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(MessageSourceResolvable, java.util.Locale), ObjectError

Method Summary
 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.
 

Method Detail

getCodes

public java.lang.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

getArguments

public java.lang.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

getDefaultMessage

public java.lang.String getDefaultMessage()
Return the default message to be used to resolve this message.

Returns:
the default message, or null if no default


Copyright (C) 2003-2004 The Spring Framework Project.