|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jwarp.service.localization.Localization
Localization helper class.
| Field Summary | |
protected java.lang.String |
defaultCountry
The default country |
protected java.lang.String |
defaultLanguage
The default language |
| Constructor Summary | |
Localization()
Constructor. |
|
| Method Summary | |
void |
configure(org.jdom.Element config)
Constructor. |
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 class java.lang.Object |
|
| Field Detail |
protected java.lang.String defaultLanguage
protected java.lang.String defaultCountry
| Constructor Detail |
public Localization()
| Method Detail |
public void configure(org.jdom.Element config)
throws ConfigurationException
configure in interface IConfigurableorg.jwarp.service.configuration.IConfigurableconfiguration - the class configurations.public java.lang.String getString(java.lang.String key)
getString in interface ILocalizationkey - The keypublic java.util.ResourceBundle getDefaultBundle()
getDefaultBundle in interface ILocalizationpublic java.util.ResourceBundle getBundle(java.lang.String bundleName)
getBundle in interface ILocalizationbundleName - Name of bundle.
public java.util.ResourceBundle getBundle(java.lang.String bundleName,
java.util.Locale locale)
getBundle in interface ILocalizationbundleName - Name of bundle.locale - A Locale.public void setDefaultBundle(java.lang.String defaultBundle)
setDefaultBundle in interface ILocalizationdefaultBundle - Name of default bundle.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||