com.cc.framework.adapter
Interface ResourceTranslator

All Known Implementing Classes:
HttpResourceTranslator

public interface ResourceTranslator

Interface for a class that is able to translate a resource Key

Author:
P001002

Method Summary
 java.lang.String translate(java.lang.String resourceKey, boolean returnNull)
          Translates the given resource key
 java.lang.String translate(java.lang.String resourceKey, java.util.Locale locale, boolean returnNull)
          Translates the given resource key
 

Method Detail

translate

public java.lang.String translate(java.lang.String resourceKey,
                                  boolean returnNull)
                           throws java.lang.Exception
Translates the given resource key

Parameters:
resourceKey - resource key to translate
returnNull - controls whether to return null or a not present indicator
Returns:
translated key
Throws:
java.lang.Exception

translate

public java.lang.String translate(java.lang.String resourceKey,
                                  java.util.Locale locale,
                                  boolean returnNull)
                           throws java.lang.Exception
Translates the given resource key

Parameters:
resourceKey - resource key to translate
locale - the Locale to use
returnNull - controls whether to return null or a not present indicator
Returns:
translated key
Throws:
java.lang.Exception


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.