public class I18nResolverAdapter extends Object implements com.atlassian.sal.api.message.I18nResolver
Constructor and Description |
---|
I18nResolverAdapter(I18nBean i18nBean) |
Modifier and Type | Method and Description |
---|---|
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(Locale locale,
String key) |
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) |
public I18nResolverAdapter(I18nBean i18nBean)
public String getRawText(String key)
getRawText
in interface com.atlassian.sal.api.message.I18nResolver
public String getText(String key, Serializable... arguments)
getText
in interface com.atlassian.sal.api.message.I18nResolver
public String getText(Locale locale, String key, Serializable... arguments)
getText
in interface com.atlassian.sal.api.message.I18nResolver
public String getText(String key)
getText
in interface com.atlassian.sal.api.message.I18nResolver
public String getText(Locale locale, String key)
getText
in interface com.atlassian.sal.api.message.I18nResolver
public String getText(com.atlassian.sal.api.message.Message message)
getText
in interface com.atlassian.sal.api.message.I18nResolver
public String getText(Locale locale, com.atlassian.sal.api.message.Message message)
getText
in interface com.atlassian.sal.api.message.I18nResolver
public com.atlassian.sal.api.message.Message createMessage(String key, Serializable... arguments)
createMessage
in interface com.atlassian.sal.api.message.I18nResolver
public com.atlassian.sal.api.message.MessageCollection createMessageCollection()
createMessageCollection
in interface com.atlassian.sal.api.message.I18nResolver
public Map<String,String> getAllTranslationsForPrefix(String prefix)
getAllTranslationsForPrefix
in interface com.atlassian.sal.api.message.I18nResolver
public Map<String,String> getAllTranslationsForPrefix(String prefix, Locale locale)
getAllTranslationsForPrefix
in interface com.atlassian.sal.api.message.I18nResolver
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.