|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.util.ws.wrappers.RemoteI18NBoundMessage
public class RemoteI18NBoundMessage
A wrapper for an 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 Summary | |
|---|---|
RemoteI18NBoundMessage(I18NBoundMessage message)
Creates a new message wrapper that wraps the given message. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteI18NBoundMessage(I18NBoundMessage message)
message - The message, which may be null.| Method Detail |
|---|
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()
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||