|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Localizer
Interface that describes objects capable of rendering messages into
localized form. The MessageDBO
class is used to represent
internationalized messages within the services layer. If no localizer
is available, then the Localizer.Generic
localizer is used, which renders
the message information directly without formatting it into any language.
If for some reason the selected localizer is unable to localize a message,
then the Generic localizer is used as a fallback.
The APIClientConnection and TextFormatter classes can
be used as localizers. The former localizes messages by requesting the
appropriate format string from the server, while the latter obtains the
format string directly from the database. To set one of these (or some
other implementor of this interface) as the localizer of choice, use
MessageDBO.setLocalizer(Localizer)
.
Nested Class Summary | |
---|---|
static class |
Localizer.Generic
This is the default implementation of the Localizer interface. |
Method Summary | |
---|---|
java.lang.String |
render(MessageDBO msg)
Localize the message to a string, if possible. |
Method Detail |
---|
java.lang.String render(MessageDBO msg)
msg
- the message to localize
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |