Package net.simplace.core.service
Klasse LocaleProvider
java.lang.Object
net.simplace.core.service.LocaleProvider
Resource manager for localized strings.
- Autor:
- Andreas Enders
-
Feldübersicht
Felder -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic LocaleProviderGet Singleton instance of LocaleResourceManager.static LocaleProvidergetInstance(Locale aLocale) Get Singleton instance of LocaleResourceManager.Get the locale currently in use by LocaleResourceManager.Get localized string using current locale settings.Get localized string using current locale settings.Get localized string using current locale settings.Get localized string using specified locale.Get localized string using specified locale.voidReset LocaleResourceManager to VM's default locale settings.voidsetDefaultLanguage(String aLocalization) voidsetInterceptPath(URL tInterceptPath) Decides, if the localeresourcemanager should look for locales bundles on hard disc.voidUse specified locale as default in LocaleResourceManager.
-
Felddetails
-
DEFAULT_EMPTY
default for empty locales- Siehe auch:
-
CUSTOMER_PREFIX
Customer prefix for CustomerLocaleBundel files- Siehe auch:
-
-
Methodendetails
-
getInstance
Get Singleton instance of LocaleResourceManager.- Gibt zurück:
- a Singleton instance of LocaleResourceManager
-
getInstance
Get Singleton instance of LocaleResourceManager.- Parameter:
aLocale-- Gibt zurück:
- a Singleton instance of LocaleResourceManager
-
getString
Get localized string using current locale settings.- Parameter:
aStringSet-aKey-- Gibt zurück:
- localized string using current locale settings
-
getString
Get localized string using current locale settings.- Parameter:
aKey-- Gibt zurück:
- localized string using current locale settings
-
getString
Get localized string using current locale settings. Also giving a default value which will be used, when the locale is not found.- Parameter:
aStringSet-aKey-aDefaultValue-- Gibt zurück:
- localized string using current locale settings
-
getString
Get localized string using specified locale.- Parameter:
aStringSet-aKey-aLocale-- Gibt zurück:
- localized string using specified locale
-
getString
Get localized string using specified locale. Also giving a default value which will be used, when the locale is not found.- Parameter:
aStringSet-aKey-aLocale-aDefaultValue-- Gibt zurück:
- localized string using specified locale
-
getLocale
Get the locale currently in use by LocaleResourceManager.- Gibt zurück:
- the locale currently in use by LocaleResourceManager
-
setLocale
Use specified locale as default in LocaleResourceManager.- Parameter:
aLocale-
-
setInterceptPath
Decides, if the localeresourcemanager should look for locales bundles on hard disc.- Parameter:
tInterceptPath-
-
resetLocale
public void resetLocale()Reset LocaleResourceManager to VM's default locale settings. -
getLocaleKey
- Gibt zurück:
- the current Locale-Key (de_DE...)
-
setDefaultLanguage
- Parameter:
aLocalization-
-