public class LocalizableMessage extends SimpleMessage
SimpleMessage
.Constructor and Description |
---|
LocalizableMessage(java.lang.String messageKey,
java.lang.Object... parameter)
Creates a new LocalizableMessage with the message key provided, and optionally zero or more
replacement parameters to use in the message.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.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 java.lang.String |
getMessageTemplate(java.util.Locale locale)
Method responsible for using the information supplied to the message object to find a
message template.
|
int |
hashCode()
Generated hashCode method.
|
getMessage, getMessage, getReplacementParameters
public LocalizableMessage(java.lang.String messageKey, java.lang.Object... parameter)
messageKey
- a key to lookup a message in the resource bundleparameter
- one or more replacement parameters to insert into the messageprotected java.lang.String getMessageTemplate(java.util.Locale locale)
getMessageTemplate
in class SimpleMessage
locale
- the Locale of the message template desiredpublic boolean equals(java.lang.Object o)
equals
in class SimpleMessage
o
- an instance of LocalizableMessage or subclass thereofpublic int hashCode()
hashCode
in class SimpleMessage
? Copyright 2005-2006, Stripes Development Team.