public class RemoteI18NBoundMessage extends Object implements Serializable
I18NBoundMessage. The message is
marshalled using JAXB or Java serialization as both a bound
internationalized message and a server-localized string. If the
message can be serialized on the server side and recreated on the
client side (which requires all necessary message files and
parameter classes to be available, though no check is made to
ensure the message handle is present in these message files), then
getText() localizes the message on the client; otherwise,
it returns the server-localized string.
Equality and hash code generation rely only upon the result of
getText().
| Constructor and Description |
|---|
RemoteI18NBoundMessage(I18NBoundMessage message)
Creates a new message wrapper that wraps the given message.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
String |
getString()
Returns the receiver's (server-localized) message.
|
String |
getText()
Returns the receiver's message text.
|
SerWrapper<I18NBoundMessage> |
getWrapper()
Returns the receiver's message (wrapper).
|
int |
hashCode() |
void |
setString(String string)
Sets the receiver's (server-localized) message to the given one.
|
void |
setWrapper(SerWrapper<I18NBoundMessage> wrapper)
Sets the receiver's message (wrapper) to the given one.
|
String |
toString() |
public RemoteI18NBoundMessage(I18NBoundMessage message)
message - The message, which may be null.public void setWrapper(SerWrapper<I18NBoundMessage> wrapper)
wrapper - The message (wrapper), which may be null.public SerWrapper<I18NBoundMessage> getWrapper()
public void setString(String string)
string - The (server-localized) message, which may be
null.public String getString()
public String getText()
Copyright © 2015. All Rights Reserved.