com.atlassian.crowd.util
Class I18nHelperImpl

java.lang.Object
  extended by com.atlassian.crowd.util.I18nHelperImpl
All Implemented Interfaces:
I18nHelper, org.springframework.beans.factory.InitializingBean

public class I18nHelperImpl
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean, I18nHelper


Constructor Summary
I18nHelperImpl()
           
 
Method Summary
 void afterPropertiesSet()
           
 java.util.List getI18nLocations()
           
 java.lang.String getText(java.lang.String key)
           
 java.lang.String getText(java.lang.String key, java.lang.Object parameters)
           
 java.lang.String getText(java.lang.String key, java.lang.String value1)
           
 java.lang.String getText(java.lang.String key, java.lang.String value1, java.lang.String value2)
           
 java.lang.String getUnescapedText(java.lang.String key)
          Get the raw property value, complete with {0}'s.
 void setI18nLocations(java.util.List i18nLocations)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

I18nHelperImpl

public I18nHelperImpl()
Method Detail

getText

public java.lang.String getText(java.lang.String key)
Specified by:
getText in interface I18nHelper

getText

public java.lang.String getText(java.lang.String key,
                                java.lang.String value1)
Specified by:
getText in interface I18nHelper

getText

public java.lang.String getText(java.lang.String key,
                                java.lang.String value1,
                                java.lang.String value2)
Specified by:
getText in interface I18nHelper

getText

public java.lang.String getText(java.lang.String key,
                                java.lang.Object parameters)
Specified by:
getText in interface I18nHelper

getUnescapedText

public java.lang.String getUnescapedText(java.lang.String key)
Get the raw property value, complete with {0}'s.

Specified by:
getUnescapedText in interface I18nHelper
Parameters:
key - Non-null key to look up
Returns:
Unescaped property value for the key, or the key itself if no property with the specified key is found

getI18nLocations

public java.util.List getI18nLocations()

setI18nLocations

public void setI18nLocations(java.util.List i18nLocations)

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.