Package com.atlassian.bamboo.utils.i18n
Class BambooTextProvider
- java.lang.Object
-
- com.opensymphony.xwork2.DefaultTextProvider
-
- com.atlassian.bamboo.utils.i18n.BambooTextProvider
-
- All Implemented Interfaces:
com.atlassian.struts.TextProvider
,com.opensymphony.xwork.TextProvider
,com.opensymphony.xwork2.TextProvider
,com.opensymphony.xwork2.Unchainable
,Serializable
public class BambooTextProvider extends com.opensymphony.xwork2.DefaultTextProvider implements com.atlassian.struts.TextProvider, com.opensymphony.xwork.TextProvider
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static BambooTextProvider
getInstance()
static ClassLoader
getMainAppClassloader()
String
getText(String key)
String
getText(String key, String defaultValue)
String
getText(String key, String[] args)
String
getText(String key, String defaultValue, String obj)
String
getText(String key, String defaultValue, String[] args)
String
getText(String key, String defaultValue, String[] args, com.opensymphony.xwork.util.OgnlValueStack stack)
Deprecated.String
getText(String key, String defaultValue, String[] args, com.opensymphony.xwork2.util.ValueStack stack)
String
getText(String key, String defaultValue, List args)
String
getText(String key, String defaultValue, List<?> args, com.opensymphony.xwork2.util.ValueStack stack)
String
getText(String key, String defaultValue, List args, com.opensymphony.xwork.util.OgnlValueStack stack)
Deprecated.String
getText(String key, List args)
ResourceBundle
getTexts()
ResourceBundle
getTexts(String bundleName)
boolean
hasKey(String key)
static void
setWebAppClassLoader(ClassLoader classLoader)
-
-
-
Method Detail
-
getInstance
public static BambooTextProvider getInstance()
-
setWebAppClassLoader
public static void setWebAppClassLoader(ClassLoader classLoader)
-
getMainAppClassloader
public static ClassLoader getMainAppClassloader()
-
hasKey
public boolean hasKey(String key)
- Specified by:
hasKey
in interfacecom.opensymphony.xwork.TextProvider
- Specified by:
hasKey
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
hasKey
in classcom.opensymphony.xwork2.DefaultTextProvider
-
getText
public String getText(String key)
- Specified by:
getText
in interfacecom.opensymphony.xwork.TextProvider
- Specified by:
getText
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getText
in classcom.opensymphony.xwork2.DefaultTextProvider
-
getText
public String getText(String key, String defaultValue)
- Specified by:
getText
in interfacecom.opensymphony.xwork.TextProvider
- Specified by:
getText
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getText
in classcom.opensymphony.xwork2.DefaultTextProvider
-
getText
public String getText(String key, List args)
- Specified by:
getText
in interfacecom.opensymphony.xwork.TextProvider
- Specified by:
getText
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getText
in classcom.opensymphony.xwork2.DefaultTextProvider
-
getText
public String getText(String key, String[] args)
- Specified by:
getText
in interfacecom.opensymphony.xwork.TextProvider
- Specified by:
getText
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getText
in classcom.opensymphony.xwork2.DefaultTextProvider
-
getText
public String getText(String key, String defaultValue, List args)
- Specified by:
getText
in interfacecom.opensymphony.xwork.TextProvider
- Specified by:
getText
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getText
in classcom.opensymphony.xwork2.DefaultTextProvider
-
getText
public String getText(String key, String defaultValue, String[] args)
- Specified by:
getText
in interfacecom.opensymphony.xwork.TextProvider
- Specified by:
getText
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getText
in classcom.opensymphony.xwork2.DefaultTextProvider
-
getText
public String getText(String key, String defaultValue, String obj)
- Specified by:
getText
in interfacecom.opensymphony.xwork.TextProvider
- Specified by:
getText
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getText
in classcom.opensymphony.xwork2.DefaultTextProvider
-
getText
public String getText(String key, String defaultValue, List<?> args, com.opensymphony.xwork2.util.ValueStack stack)
- Specified by:
getText
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getText
in classcom.opensymphony.xwork2.DefaultTextProvider
-
getText
public String getText(String key, String defaultValue, String[] args, com.opensymphony.xwork2.util.ValueStack stack)
- Specified by:
getText
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getText
in classcom.opensymphony.xwork2.DefaultTextProvider
-
getTexts
public ResourceBundle getTexts(String bundleName)
- Specified by:
getTexts
in interfacecom.opensymphony.xwork.TextProvider
- Specified by:
getTexts
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getTexts
in classcom.opensymphony.xwork2.DefaultTextProvider
-
getTexts
public ResourceBundle getTexts()
- Specified by:
getTexts
in interfacecom.opensymphony.xwork.TextProvider
- Specified by:
getTexts
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getTexts
in classcom.opensymphony.xwork2.DefaultTextProvider
-
getText
@Deprecated public String getText(String key, String defaultValue, List args, com.opensymphony.xwork.util.OgnlValueStack stack)
Deprecated.- Specified by:
getText
in interfacecom.opensymphony.xwork.TextProvider
-
getText
@Deprecated public String getText(String key, String defaultValue, String[] args, com.opensymphony.xwork.util.OgnlValueStack stack)
Deprecated.- Specified by:
getText
in interfacecom.opensymphony.xwork.TextProvider
-
-