站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.0.5 API 文档英文版

MessageSourceResolvable (Spring Framework API 2.0) - Spring Framework 2.0.5 API 文档英文版

The Spring Framework

org.springframework.context
Interface MessageSourceResolvable

All Known Implementing Classes:
DefaultMessageSourceResolvable, FieldError, ObjectError

public interface MessageSourceResolvable

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

Spring's own validation error classes implement this interface.

Author:
Juergen Hoeller
See Also:
MessageSource.getMessage(MessageSourceResolvable, java.util.Locale), ObjectError, FieldError

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.
 String getDefaultMessage()
          Return the default message to be used to resolve this message.
 

Method Detail

getCodes

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

getArguments

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:
MessageFormat

getDefaultMessage

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

Returns:
the default message, or null if no default

The Spring Framework

Copyright © 2002-2007 The Spring Framework.