org.jwarp.service.localization
Interface ILocalization

All Superinterfaces:
IConfigurable
All Known Implementing Classes:
Localization

public interface ILocalization
extends IConfigurable

Localization helper class.

Version:
1.0
Author:
Anatole Tresch

Method Summary
 java.util.ResourceBundle getBundle(java.lang.String bundleName)
          This method returns a ResourceBundle given the bundle name and the default Locale information supplied in TurbineProperties.
 java.util.ResourceBundle getBundle(java.lang.String bundleName, java.util.Locale locale)
          This method returns a ResourceBundle for the given bundle name and the given Locale.
 java.util.ResourceBundle getDefaultBundle()
          This method returns a ResourceBundle given the bundle name "DEFAULT" and the default Locale information supplied in TurbineProperties.
 java.lang.String getString(java.lang.String key)
          Get the string resource from the default bundle.
 void setDefaultBundle(java.lang.String defaultBundle)
          This method sets the name of the defaultBundle.
 
Methods inherited from interface org.jwarp.service.configuration.IConfigurable
configure
 

Method Detail

getString

public java.lang.String getString(java.lang.String key)
Get the string resource from the default bundle.
Parameters:
key - The key
Returns:
The string resource

getDefaultBundle

public java.util.ResourceBundle getDefaultBundle()
This method returns a ResourceBundle given the bundle name "DEFAULT" and the default Locale information supplied in TurbineProperties.
Returns:
A localized ResourceBundle.

getBundle

public java.util.ResourceBundle getBundle(java.lang.String bundleName)
This method returns a ResourceBundle given the bundle name and the default Locale information supplied in TurbineProperties.
Parameters:
bundleName - Name of bundle.
Returns:
A localized ResourceBundle.

getBundle

public java.util.ResourceBundle getBundle(java.lang.String bundleName,
                                          java.util.Locale locale)
This method returns a ResourceBundle for the given bundle name and the given Locale.
Parameters:
bundleName - Name of bundle.
locale - A Locale.
Returns:
A localized ResourceBundle.

setDefaultBundle

public void setDefaultBundle(java.lang.String defaultBundle)
This method sets the name of the defaultBundle.
Parameters:
defaultBundle - Name of default bundle.

©   O R C A   S y s t e m s