org.apache.commons.resources
Interface Message

All Known Implementing Classes:
BasicMessage, DatabaseBasicMessage

public interface Message

An encapsulation of an individual message stored in a MessageList object, consisting of a message key (to be used to look up message text in an appropriate message resources database) plus up to four placeholder objects that can be used for parametric replacement in the message text.

Orginally based on org.apache.struts.action.ActionMessage, Revision 50677.


Method Summary
 String getKey()
           
 String getResourcesName()
          Return the logical name of the Resources instance this message is associated with.
 Object[] getValues()
           
 

Method Detail

getResourcesName

String getResourcesName()

Return the logical name of the Resources instance this message is associated with.

Returns:
The name of the resources instance.

getKey

String getKey()
Returns:
Get the message key for this message.

getValues

Object[] getValues()
Returns:
Get the replacement values for this message.


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.