public final class TextI18n extends Object implements I18nResource
I18nResource which uses an underlying text as the real value, ignoring any
kind of internationalization.| Modifier and Type | Method and Description |
|---|---|
String |
text(Locale locale,
Object... arguments)
Get the localized text for the supplied locale, replacing the parameters in the text with those supplied.
|
String |
text(Object... arguments)
Get the localized text for the
current (default) locale, replacing the parameters in the text
with those supplied. |
public TextI18n(String text)
public String text(Object... arguments)
I18nResourcecurrent (default) locale, replacing the parameters in the text
with those supplied.text in interface I18nResourcearguments - the arguments for the parameter replacement; may be null or emptypublic String text(Locale locale, Object... arguments)
I18nResourcetext in interface I18nResourcelocale - the locale, or null if the current (default) locale should be usedarguments - the arguments for the parameter replacement; may be null or emptyCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.