public class I18nTextProvider extends Object 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 |
|---|---|
protected com.opensymphony.xwork2.LocaleProvider |
localeProvider |
static String |
UNTRANSLATED_MARKER |
| Constructor and Description |
|---|
I18nTextProvider() |
| 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) |
void |
setBundle(ResourceBundle bundle) |
void |
setClazz(Class clazz) |
void |
setLocaleProvider(com.opensymphony.xwork2.LocaleProvider localeProvider) |
public static final String UNTRANSLATED_MARKER
protected com.opensymphony.xwork2.LocaleProvider localeProvider
public void setBundle(ResourceBundle bundle)
setBundle in interface com.opensymphony.xwork2.ResourceBundleTextProviderpublic void setClazz(Class clazz)
setClazz in interface com.opensymphony.xwork2.ResourceBundleTextProviderpublic void setLocaleProvider(com.opensymphony.xwork2.LocaleProvider localeProvider)
setLocaleProvider in interface com.opensymphony.xwork2.ResourceBundleTextProviderpublic boolean hasKey(String key)
hasKey in interface com.opensymphony.xwork2.TextProviderprotected String getTextFromLocale(String key, String defaultValue, Object... args)
public String getText(String aTextName)
getText in interface com.opensymphony.xwork2.TextProviderpublic String getText(String aTextName, String defaultValue)
getText in interface com.opensymphony.xwork2.TextProviderpublic String getText(String aTextName, String defaultValue, String obj)
getText in interface com.opensymphony.xwork2.TextProviderpublic String getText(String aTextName, List<?> args)
getText in interface com.opensymphony.xwork2.TextProviderpublic String getText(String key, String[] args)
getText in interface com.opensymphony.xwork2.TextProviderpublic String getText(String aTextName, String defaultValue, List<?> args)
getText in interface com.opensymphony.xwork2.TextProviderpublic String getText(String key, String defaultValue, String[] args)
getText in interface com.opensymphony.xwork2.TextProviderpublic String getText(String key, String defaultValue, List<?> args, com.opensymphony.xwork2.util.ValueStack stack)
getText in interface com.opensymphony.xwork2.TextProviderpublic String getText(String key, String defaultValue, String[] args, com.opensymphony.xwork2.util.ValueStack stack)
getText in interface com.opensymphony.xwork2.TextProviderpublic ResourceBundle getTexts(String bundleName)
getTexts in interface com.opensymphony.xwork2.TextProviderpublic ResourceBundle getTexts()
getTexts in interface com.opensymphony.xwork2.TextProviderCopyright © 2010–2014 CodeLutin. All rights reserved.