com.atlassian.sal.core.message
Class AbstractI18nResolver

java.lang.Object
  extended by com.atlassian.sal.core.message.AbstractI18nResolver
All Implemented Interfaces:
I18nResolver

public abstract class AbstractI18nResolver
extends Object
implements I18nResolver


Constructor Summary
AbstractI18nResolver()
           
 
Method Summary
 Message createMessage(String key, Serializable... arguments)
           
 MessageCollection createMessageCollection()
           
 String getText(Message message)
           
 String getText(String key)
           
 String getText(String key, Serializable... arguments)
           
abstract  String resolveText(String key, Serializable[] arguments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.sal.api.message.I18nResolver
getAllTranslationsForPrefix, getAllTranslationsForPrefix
 

Constructor Detail

AbstractI18nResolver

public AbstractI18nResolver()
Method Detail

getText

public String getText(String key,
                      Serializable... arguments)
Specified by:
getText in interface I18nResolver

getText

public String getText(String key)
Specified by:
getText in interface I18nResolver

getText

public String getText(Message message)
Specified by:
getText in interface I18nResolver

resolveText

public abstract String resolveText(String key,
                                   Serializable[] arguments)

createMessage

public Message createMessage(String key,
                             Serializable... arguments)
Specified by:
createMessage in interface I18nResolver

createMessageCollection

public MessageCollection createMessageCollection()
Specified by:
createMessageCollection in interface I18nResolver


Copyright © 2010 Atlassian. All Rights Reserved.