public class ICULocaleService extends ICUService
| Modifier and Type | Class and Description |
|---|---|
static class |
ICULocaleService.ICUResourceBundleFactory
A LocaleKeyFactory that creates a service based on the ICU locale data.
|
static class |
ICULocaleService.LocaleKey
A subclass of Key that implements a locale fallback mechanism.
|
static class |
ICULocaleService.LocaleKeyFactory
A subclass of Factory that uses LocaleKeys.
|
static class |
ICULocaleService.SimpleLocaleKeyFactory
A LocaleKeyFactory that just returns a single object for a kind/locale.
|
ICUService.Factory, ICUService.Key, ICUService.ServiceListener, ICUService.SimpleFactoryname| Constructor and Description |
|---|
ICULocaleService()
Construct an ICULocaleService.
|
ICULocaleService(String name)
Construct an ICULocaleService with a name (useful for debugging).
|
| Modifier and Type | Method and Description |
|---|---|
ICUService.Key |
createKey(String id)
Create a key from an id.
|
ICUService.Key |
createKey(String id,
int kind) |
ICUService.Key |
createKey(ULocale l,
int kind) |
Object |
get(ULocale locale)
Convenience override for callers using locales.
|
Object |
get(ULocale locale,
int kind)
Convenience override for callers using locales.
|
Object |
get(ULocale locale,
int kind,
ULocale[] actualReturn)
Convenience override for callers using locales.
|
Object |
get(ULocale locale,
ULocale[] actualReturn)
Convenience override for callers using locales.
|
Locale[] |
getAvailableLocales()
Convenience method for callers using locales.
|
ULocale[] |
getAvailableULocales()
Convenience method for callers using locales.
|
ICUService.Factory |
registerObject(Object obj,
ULocale locale)
Convenience override for callers using locales.
|
ICUService.Factory |
registerObject(Object obj,
ULocale locale,
boolean visible)
Convenience override for callers using locales.
|
ICUService.Factory |
registerObject(Object obj,
ULocale locale,
int kind)
Convenience function for callers using locales.
|
ICUService.Factory |
registerObject(Object obj,
ULocale locale,
int kind,
boolean visible)
Convenience function for callers using locales.
|
String |
validateFallbackLocale()
Return the name of the current fallback locale.
|
acceptsListener, clearCaches, clearServiceCache, factories, get, get, getDisplayName, getDisplayName, getDisplayNames, getDisplayNames, getDisplayNames, getDisplayNames, getDisplayNames, getKey, getKey, getKey, getName, getVisibleIDs, getVisibleIDs, handleDefault, isDefault, markDefault, notifyListener, registerFactory, registerObject, registerObject, reInitializeFactories, reset, stats, toString, unregisterFactoryaddListener, notifyChanged, removeListenerpublic ICULocaleService()
public ICULocaleService(String name)
public Object get(ULocale locale)
public Object get(ULocale locale, int kind)
public Object get(ULocale locale, ULocale[] actualReturn)
public Object get(ULocale locale, int kind, ULocale[] actualReturn)
public ICUService.Factory registerObject(Object obj, ULocale locale)
public ICUService.Factory registerObject(Object obj, ULocale locale, boolean visible)
public ICUService.Factory registerObject(Object obj, ULocale locale, int kind)
public ICUService.Factory registerObject(Object obj, ULocale locale, int kind, boolean visible)
public Locale[] getAvailableLocales()
public ULocale[] getAvailableULocales()
public String validateFallbackLocale()
public ICUService.Key createKey(String id)
ICUServicecreateKey in class ICUServicepublic ICUService.Key createKey(String id, int kind)
public ICUService.Key createKey(ULocale l, int kind)