Package com.atlassian.bamboo.utils.i18n
Class DefaultI18nBean
- java.lang.Object
-
- com.atlassian.bamboo.utils.i18n.DefaultI18nBean
-
- All Implemented Interfaces:
I18nBean
,com.atlassian.core.i18n.I18nTextProvider
,Serializable
public class DefaultI18nBean extends Object implements I18nBean, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultI18nBean(@NotNull Locale locale, @NotNull com.atlassian.plugin.PluginAccessor pluginAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Map<String,String>
getAllTranslationsForPrefix(@NotNull String prefix)
ResourceBundle
getDefaultResourceBundle()
ResourceBundle
getHelpPathsBundle()
List<ResourceBundle>
getI18nBundles()
String
getI18nRawText(String key)
Locale
getLocale()
com.atlassian.plugin.PluginAccessor
getPluginAccessor()
String
getRawText(Locale locale, String key)
@NotNull String
getText(@NotNull String key)
@NotNull String
getText(@NotNull String key, String defaultValue)
@NotNull String
getText(String key, Object[] args)
@NotNull String
getText(String key, String defaultValue, Object[] args)
@NotNull String
getText(String key, String defaultValue, String arg)
@NotNull String
getText(String key, String defaultValue, List args)
@NotNull String
getText(String key, List args)
boolean
hasKey(String key)
-
-
-
Constructor Detail
-
DefaultI18nBean
public DefaultI18nBean(@NotNull @NotNull Locale locale, @NotNull @NotNull com.atlassian.plugin.PluginAccessor pluginAccessor)
-
-
Method Detail
-
getText
@NotNull public @NotNull String getText(@NotNull @NotNull String key)
- Specified by:
getText
in interfacecom.atlassian.core.i18n.I18nTextProvider
-
getI18nRawText
public String getI18nRawText(String key)
- Specified by:
getI18nRawText
in interfaceI18nBean
-
getRawText
public String getRawText(Locale locale, String key)
- Specified by:
getRawText
in interfaceI18nBean
-
getText
@NotNull public @NotNull String getText(String key, Object[] args)
- Specified by:
getText
in interfacecom.atlassian.core.i18n.I18nTextProvider
-
getAllTranslationsForPrefix
@NotNull public @NotNull Map<String,String> getAllTranslationsForPrefix(@NotNull @NotNull String prefix)
- Specified by:
getAllTranslationsForPrefix
in interfaceI18nBean
-
getDefaultResourceBundle
public ResourceBundle getDefaultResourceBundle()
- Specified by:
getDefaultResourceBundle
in interfaceI18nBean
-
getHelpPathsBundle
public ResourceBundle getHelpPathsBundle()
- Specified by:
getHelpPathsBundle
in interfaceI18nBean
-
getI18nBundles
public List<ResourceBundle> getI18nBundles()
-
getPluginAccessor
public com.atlassian.plugin.PluginAccessor getPluginAccessor()
-
-