|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfoservice.mailsystem.central.MailMessages
public class MailMessages
This class is the implementation of the mail message localizations.
| Field Summary | |
|---|---|
private static java.util.Locale |
DEFAULT_LOCALE
This is the default localization (English as default). |
private java.util.ResourceBundle |
m_messageResource
This stores the resource for the used localization. |
private static java.lang.String |
RESOURCE_BASE
This is the base of the resource files. |
| Constructor Summary | |
|---|---|
MailMessages(java.util.Locale a_localeToUse)
Creates a new MailMessages instance. |
|
| Method Summary | |
|---|---|
java.lang.String |
getString(java.lang.String a_key)
Returns the localized version of the message assigned to the specified key in the resource files. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String RESOURCE_BASE
private static final java.util.Locale DEFAULT_LOCALE
private java.util.ResourceBundle m_messageResource
| Constructor Detail |
|---|
public MailMessages(java.util.Locale a_localeToUse)
a_localeToUse - The localization to use when obtaining strings via the new instance. If
there is no resource for the specified localization, the default one is
used.| Method Detail |
|---|
public java.lang.String getString(java.lang.String a_key)
a_key - A key, which specifies the wanted message.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||