|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.stripes.action.SimpleMessage
net.sourceforge.stripes.action.LocalizableMessage
public class LocalizableMessage
A non-error message class that can localize (or at least externalize) the message String
in a resource bundle. The bundle used is the Stripes error message bundle, which can be
configured but by default is called 'StripesResources.properties'. In all other ways
this class behaves like it's parent SimpleMessage
.
Constructor Summary | |
---|---|
LocalizableMessage(String messageKey,
Object... parameter)
Creates a new LocalizableMessage with the message key provided, and optionally zero or more replacement parameters to use in the message. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Generated equals method which will return true if the other object is of the same type as this instance, and would produce the same user message. |
protected String |
getMessageTemplate(Locale locale)
Method responsible for using the information supplied to the message object to find a message template. |
int |
hashCode()
Generated hashCode method. |
Methods inherited from class net.sourceforge.stripes.action.SimpleMessage |
---|
getMessage, getMessage, getReplacementParameters |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalizableMessage(String messageKey, Object... parameter)
messageKey
- a key to lookup a message in the resource bundleparameter
- one or more replacement parameters to insert into the messageMethod Detail |
---|
protected String getMessageTemplate(Locale locale)
getMessageTemplate
in class SimpleMessage
locale
- the Locale of the message template desired
public boolean equals(Object o)
equals
in class SimpleMessage
o
- an instance of LocalizableMessage or subclass thereof
public int hashCode()
hashCode
in class SimpleMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |