com.atlassian.bamboo.utils.i18n
Class I18nResolverAdapter

java.lang.Object
  extended by com.atlassian.bamboo.utils.i18n.I18nResolverAdapter
All Implemented Interfaces:
com.atlassian.sal.api.message.I18nResolver

public class I18nResolverAdapter
extends Object
implements com.atlassian.sal.api.message.I18nResolver


Constructor Summary
I18nResolverAdapter(I18nBean i18nBean)
           
 
Method Summary
 com.atlassian.sal.api.message.Message createMessage(String key, Serializable... arguments)
           
 com.atlassian.sal.api.message.MessageCollection createMessageCollection()
           
 Map<String,String> getAllTranslationsForPrefix(String prefix)
           
 Map<String,String> getAllTranslationsForPrefix(String prefix, Locale locale)
           
 String getRawText(String key)
           
 String getText(Locale locale, com.atlassian.sal.api.message.Message message)
           
 String getText(Locale locale, String key)
           
 String getText(Locale locale, String key, Serializable... arguments)
           
 String getText(com.atlassian.sal.api.message.Message message)
           
 String getText(String key)
           
 String getText(String key, Serializable... arguments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

I18nResolverAdapter

public I18nResolverAdapter(I18nBean i18nBean)
Method Detail

getRawText

public String getRawText(String key)
Specified by:
getRawText in interface com.atlassian.sal.api.message.I18nResolver

getText

public String getText(String key,
                      Serializable... arguments)
Specified by:
getText in interface com.atlassian.sal.api.message.I18nResolver

getText

public String getText(Locale locale,
                      String key,
                      Serializable... arguments)
Specified by:
getText in interface com.atlassian.sal.api.message.I18nResolver

getText

public String getText(String key)
Specified by:
getText in interface com.atlassian.sal.api.message.I18nResolver

getText

public String getText(Locale locale,
                      String key)
Specified by:
getText in interface com.atlassian.sal.api.message.I18nResolver

getText

public String getText(com.atlassian.sal.api.message.Message message)
Specified by:
getText in interface com.atlassian.sal.api.message.I18nResolver

getText

public String getText(Locale locale,
                      com.atlassian.sal.api.message.Message message)
Specified by:
getText in interface com.atlassian.sal.api.message.I18nResolver

createMessage

public com.atlassian.sal.api.message.Message createMessage(String key,
                                                           Serializable... arguments)
Specified by:
createMessage in interface com.atlassian.sal.api.message.I18nResolver

createMessageCollection

public com.atlassian.sal.api.message.MessageCollection createMessageCollection()
Specified by:
createMessageCollection in interface com.atlassian.sal.api.message.I18nResolver

getAllTranslationsForPrefix

public Map<String,String> getAllTranslationsForPrefix(String prefix)
Specified by:
getAllTranslationsForPrefix in interface com.atlassian.sal.api.message.I18nResolver

getAllTranslationsForPrefix

public Map<String,String> getAllTranslationsForPrefix(String prefix,
                                                      Locale locale)
Specified by:
getAllTranslationsForPrefix in interface com.atlassian.sal.api.message.I18nResolver


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.