public class I18nTextProvider
extends com.opensymphony.xwork2.TextProviderSupport
implements com.opensymphony.xwork2.ResourceBundleTextProvider
<bean class="org.nuiton.web.struts2.I18nTextProvider" name="i18nTextProvider" type="com.opensymphony.xwork2.TextProvider" />
<constant name="struts.xworkTextProvider" value="i18nTextProvider" />
| Modifier and Type | Field and Description |
|---|---|
static String |
UNTRANSLATED_MARKER |
| Constructor and Description |
|---|
I18nTextProvider(Class clazz,
com.opensymphony.xwork2.LocaleProvider provider,
com.opensymphony.xwork2.LocalizedTextProvider localizedTextProvider) |
I18nTextProvider(ResourceBundle bundle,
com.opensymphony.xwork2.LocaleProvider provider,
com.opensymphony.xwork2.LocalizedTextProvider localizedTextProvider) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getSafeText(String key,
String value) |
String |
getText(String aTextName) |
String |
getText(String aTextName,
List<?> args) |
String |
getText(String aTextName,
String defaultValue) |
String |
getText(String key,
String[] args) |
String |
getText(String aTextName,
String defaultValue,
List<?> args) |
String |
getText(String key,
String defaultValue,
List<?> args,
com.opensymphony.xwork2.util.ValueStack stack) |
String |
getText(String aTextName,
String defaultValue,
String obj) |
String |
getText(String key,
String defaultValue,
String[] args) |
String |
getText(String key,
String defaultValue,
String[] args,
com.opensymphony.xwork2.util.ValueStack stack) |
protected String |
getTextFromLocale(String key,
String defaultValue) |
protected String |
getTextFromLocale(String key,
String defaultValue,
Object... args) |
ResourceBundle |
getTexts() |
ResourceBundle |
getTexts(String bundleName) |
boolean |
hasKey(String key) |
setBundle, setClazz, setLocaleProvider, setLocaleProviderFactory, setLocalizedTextProviderpublic static final String UNTRANSLATED_MARKER
public I18nTextProvider(Class clazz, com.opensymphony.xwork2.LocaleProvider provider, com.opensymphony.xwork2.LocalizedTextProvider localizedTextProvider)
public I18nTextProvider(ResourceBundle bundle, com.opensymphony.xwork2.LocaleProvider provider, com.opensymphony.xwork2.LocalizedTextProvider localizedTextProvider)
public boolean hasKey(String key)
hasKey in interface com.opensymphony.xwork2.TextProviderhasKey in class com.opensymphony.xwork2.TextProviderSupportprotected String getTextFromLocale(String key, String defaultValue, Object... args)
public String getText(String aTextName)
getText in interface com.opensymphony.xwork2.TextProvidergetText in class com.opensymphony.xwork2.TextProviderSupportpublic String getText(String aTextName, String defaultValue)
getText in interface com.opensymphony.xwork2.TextProvidergetText in class com.opensymphony.xwork2.TextProviderSupportpublic String getText(String aTextName, String defaultValue, String obj)
getText in interface com.opensymphony.xwork2.TextProvidergetText in class com.opensymphony.xwork2.TextProviderSupportpublic String getText(String aTextName, List<?> args)
getText in interface com.opensymphony.xwork2.TextProvidergetText in class com.opensymphony.xwork2.TextProviderSupportpublic String getText(String key, String[] args)
getText in interface com.opensymphony.xwork2.TextProvidergetText in class com.opensymphony.xwork2.TextProviderSupportpublic String getText(String aTextName, String defaultValue, List<?> args)
getText in interface com.opensymphony.xwork2.TextProvidergetText in class com.opensymphony.xwork2.TextProviderSupportpublic String getText(String key, String defaultValue, String[] args)
getText in interface com.opensymphony.xwork2.TextProvidergetText in class com.opensymphony.xwork2.TextProviderSupportpublic String getText(String key, String defaultValue, List<?> args, com.opensymphony.xwork2.util.ValueStack stack)
getText in interface com.opensymphony.xwork2.TextProvidergetText in class com.opensymphony.xwork2.TextProviderSupportpublic String getText(String key, String defaultValue, String[] args, com.opensymphony.xwork2.util.ValueStack stack)
getText in interface com.opensymphony.xwork2.TextProvidergetText in class com.opensymphony.xwork2.TextProviderSupportpublic ResourceBundle getTexts(String bundleName)
getTexts in interface com.opensymphony.xwork2.TextProvidergetTexts in class com.opensymphony.xwork2.TextProviderSupportpublic ResourceBundle getTexts()
getTexts in interface com.opensymphony.xwork2.TextProvidergetTexts in class com.opensymphony.xwork2.TextProviderSupportCopyright © 2010–2017 CodeLutin. All rights reserved.