| org.apache.hivemind.Messages
All known Subclasses: org.apache.hivemind.impl.AbstractMessages,
Messages | public interface Messages (Code) | | A set of localized message strings. This is somewhat like a
java.util.ResourceBundle ,
but with more flexibility about where the messages come from. In addition, it includes methods
similar to
java.text.MessageFormat for treating the messages as patterns.
author: Howard Lewis Ship |
Method Summary | |
public String | format(String key, Object[] arguments) Formats a string, using
java.text.MessageFormat.format(java.lang.Stringjava.lang.Object[]) . | public String | format(String key, Object argument) Convienience method for invoking
Messages.format(String,Object[]) . | public String | format(String key, Object argument1, Object argument2) Convienience method for invoking
Messages.format(String,Object[]) . | public String | format(String key, Object argument1, Object argument2, Object argument3) Convienience method for invoking
Messages.format(String,Object[]) . | public String | getMessage(String key) Searches for a localized string with the given key. |
getMessage | public String getMessage(String key)(Code) | | Searches for a localized string with the given key. If not found, a modified version of the
key is returned (all upper-case and surrounded by square brackets).
|
|
|