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, translateFallback
createFormatter, translate
getLogger
private static final long serialVersionUID
private String message
protected NlsTemplateImplWithMessage()
public String translate(Locale locale)
NlsTemplate
locale
. ResourceBundle
).translate
in interface NlsTemplate
translate
in class NlsTemplateImpl
locale
- is the locale to translate to.locale
).protected String translateFallback(String messageId)
translateFallback
in class NlsTemplateImpl
messageId
- 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.