public interface

MessageSourceResolvable

org.springframework.context.MessageSourceResolvable
Known Indirect Subclasses

Class Overview

Interface for objects that are suitable for message resolution in a MessageSource.

Spring's own validation error classes implement this interface.

Summary

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

Public Methods

public abstract 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 message text
See Also
  • java.text.MessageFormat

public abstract 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 array of codes which are associated with this message

public abstract String getDefaultMessage ()

Return the default message to be used to resolve this message.

Returns
  • the default message, or null if no default