public class I18nTextProvider extends Object implements com.opensymphony.xwork2.TextProvider
<bean class="org.nuiton.i18n.web.I18nTextProvider" name="i18nTextProvider" type="com.opensymphony.xwork2.TextProvider" />
<constant name="struts.textProvider" value="i18nTextProvider" />
Before struts 2.5, you may use "struts.xworkTextProvider" instead of StrutsConstants.STRUTS_TEXT_PROVIDER| Modifier and Type | Field and Description |
|---|---|
static String |
UNTRANSLATED_MARKER |
| Constructor and Description |
|---|
I18nTextProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected Locale |
getLocale()
Implementation copied from
DefaultTextProvider.getText(String) |
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) |
public static final String UNTRANSLATED_MARKER
public boolean hasKey(String key)
hasKey in interface com.opensymphony.xwork2.TextProviderprotected Locale getLocale()
DefaultTextProvider.getText(String)protected 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 © 2004–2018 CodeLutin. All rights reserved.