| java.lang.Object com.opensymphony.xwork.validator.CompositeTextProvider
CompositeTextProvider | public class CompositeTextProvider implements TextProvider(Code) | | This is a composite
TextProvider that takes in an array or
List of
TextProvider s, it will
consult each of them in order to get a composite result. To know how each method behaves, please refer to the
javadoc for each methods.
author: tmjee version: $Date$ $Id$ |
Method Summary | |
public String | getText(String key) | public String | getText(String key, String defaultValue) It will consult each
TextProvider s and return the first valid message for this
key before returning defaultValue if every else fails. | public String | getText(String key, String defaultValue, String obj) It will consult each
TextProvider s and return the first valid message for this
key , before returining defaultValue
if every else fails. | public String | getText(String key, List args) It will consult each
TextProvider s and return the first valid message for this
key . | public String | getText(String key, String[] args) It will consult each
TextProvider s and return the first valid message for this
key . | public String | getText(String key, String defaultValue, List args) | public String | getText(String key, String defaultValue, String[] args) It will consult each
TextProvider s and return the first valid message for this
key , before returining defaultValue . | public String | getText(String key, String defaultValue, List args, OgnlValueStack stack) | public String | getText(String key, String defaultValue, String[] args, OgnlValueStack stack) | public ResourceBundle | getTexts(String bundleName) It will consult each
TextProvider s and return the first non-null
ResourceBundle . | public ResourceBundle | getTexts() It will consult each
com.opensymphony.xwork.TextProvider s and return the first non-null
ResourceBundle . | public boolean | hasKey(String key) |
CompositeTextProvider | public CompositeTextProvider(List textProviders)(Code) | | Instantiates a
CompositeTextProvider with some predefined textProviders .
Parameters: textProviders - |
getText | public String getText(String key, String defaultValue, List args)(Code) | | It will consult each
TextProvider s and return the first valid message for this
key , before returining defaultValue
See Also: com.opensymphony.xwork.TextProvider#getText#getText(String, String, java.util.List) Parameters: key - Parameters: defaultValue - Parameters: args - |
|
|