org.apache.commons.resources
Interface Message

All Known Implementing Classes:
BasicMessage

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

public String getResourcesName()

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

Returns:
The name of the resources instance.

getKey

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

getValues

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


Copyright © 2002-2006 The Apache Software Foundation. All Rights Reserved.