public class NlsTemplateImplWithMessage extends NlsTemplateImpl
NlsTemplateImpl with the
internationalized message as fallback.| Modifier and Type | Field and Description |
|---|---|
private String |
message
|
private static long |
serialVersionUID |
| Modifier | Constructor and Description |
|---|---|
protected |
NlsTemplateImplWithMessage()
The constructor for de-serialization in GWT.
|
|
NlsTemplateImplWithMessage(String name,
String key,
String message)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
translate(Locale locale)
This method translates the represented string for the given
locale. |
protected String |
translateFallback(String messageId) |
getKey, getName, toString, translateFallbackcreateFormatter, translategetLoggerprivate static final long serialVersionUID
private String message
protected NlsTemplateImplWithMessage()
public String translate(Locale locale)
NlsTemplatelocale. ResourceBundle).translate in interface NlsTemplatetranslate in class NlsTemplateImpllocale - is the locale to translate to.locale).protected String translateFallback(String messageId)
translateFallback in class NlsTemplateImplmessageId - is the ID of the message composed out of bundle base name and key.NlsTemplateImpl.translateFallback(Exception)Copyright © 2001–2016 mmm-Team. All rights reserved.