com.atlassian.bamboo.utils.i18n
Class DefaultI18nBean

java.lang.Object
  extended by com.atlassian.bamboo.utils.i18n.DefaultI18nBean
All Implemented Interfaces:
I18nBean, com.atlassian.core.i18n.I18nTextProvider, java.io.Serializable

public class DefaultI18nBean
extends java.lang.Object
implements I18nBean, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
DefaultI18nBean(java.util.Locale locale, com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getAllTranslationsForPrefix(java.lang.String prefix)
           
 java.util.ResourceBundle getDefaultResourceBundle()
           
 java.util.List<java.util.ResourceBundle> getI18nBundles()
           
 java.util.Locale getLocale()
           
 com.atlassian.plugin.PluginAccessor getPluginAccessor()
           
 java.lang.String getText(java.lang.String key)
           
 java.lang.String getText(java.lang.String key, java.util.List args)
           
 java.lang.String getText(java.lang.String key, java.lang.Object[] args)
           
 java.lang.String getText(java.lang.String key, java.lang.String defaultValue)
           
 java.lang.String getText(java.lang.String key, java.lang.String defaultValue, java.util.List args)
           
 java.lang.String getText(java.lang.String key, java.lang.String defaultValue, java.lang.Object[] args)
           
 java.lang.String getText(java.lang.String key, java.lang.String defaultValue, java.lang.String arg)
           
 boolean hasKey(java.lang.String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultI18nBean

public DefaultI18nBean(@NotNull
                       java.util.Locale locale,
                       @NotNull
                       com.atlassian.plugin.PluginAccessor pluginAccessor)
Method Detail

hasKey

public boolean hasKey(java.lang.String key)
Specified by:
hasKey in interface I18nBean

getText

public java.lang.String getText(java.lang.String key)
Specified by:
getText in interface I18nBean
Specified by:
getText in interface com.atlassian.core.i18n.I18nTextProvider

getLocale

public java.util.Locale getLocale()
Specified by:
getLocale in interface I18nBean

getText

public java.lang.String getText(java.lang.String key,
                                java.lang.String defaultValue)
Specified by:
getText in interface I18nBean

getText

public java.lang.String getText(java.lang.String key,
                                java.lang.String defaultValue,
                                java.lang.String arg)
Specified by:
getText in interface I18nBean

getText

public java.lang.String getText(java.lang.String key,
                                java.util.List args)
Specified by:
getText in interface I18nBean

getText

public java.lang.String getText(java.lang.String key,
                                java.lang.Object[] args)
Specified by:
getText in interface I18nBean
Specified by:
getText in interface com.atlassian.core.i18n.I18nTextProvider

getText

public java.lang.String getText(java.lang.String key,
                                java.lang.String defaultValue,
                                java.util.List args)
Specified by:
getText in interface I18nBean

getText

public java.lang.String getText(java.lang.String key,
                                java.lang.String defaultValue,
                                java.lang.Object[] args)
Specified by:
getText in interface I18nBean

getAllTranslationsForPrefix

@NotNull
public java.util.Map<java.lang.String,java.lang.String> getAllTranslationsForPrefix(@NotNull
                                                                                            java.lang.String prefix)
Specified by:
getAllTranslationsForPrefix in interface I18nBean

getDefaultResourceBundle

public java.util.ResourceBundle getDefaultResourceBundle()
Specified by:
getDefaultResourceBundle in interface I18nBean

getI18nBundles

public java.util.List<java.util.ResourceBundle> getI18nBundles()

getPluginAccessor

public com.atlassian.plugin.PluginAccessor getPluginAccessor()


Copyright © 2012 Atlassian. All Rights Reserved.