Class ICULocaleService
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.impl.ICUNotifier
org.graalvm.shadowed.com.ibm.icu.impl.ICUService
org.graalvm.shadowed.com.ibm.icu.impl.ICULocaleService
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA LocaleKeyFactory that creates a service based on the ICU locale data.static classA subclass of Key that implements a locale fallback mechanism.static classA subclass of Factory that uses LocaleKeys.static classA LocaleKeyFactory that just returns a single object for a kind/locale.Nested classes/interfaces inherited from class org.graalvm.shadowed.com.ibm.icu.impl.ICUService
ICUService.Factory, ICUService.Key, ICUService.ServiceListener, ICUService.SimpleFactory -
Field Summary
Fields inherited from class org.graalvm.shadowed.com.ibm.icu.impl.ICUService
name -
Constructor Summary
ConstructorsConstructorDescriptionConstruct an ICULocaleService.ICULocaleService(String name) Construct an ICULocaleService with a name (useful for debugging). -
Method Summary
Modifier and TypeMethodDescriptionCreate a key from an id.Convenience override for callers using locales.Convenience override for callers using locales.Convenience override for callers using locales.Convenience override for callers using locales.Locale[]Convenience method for callers using locales.ULocale[]Convenience method for callers using locales.registerObject(Object obj, ULocale locale) Convenience override for callers using locales.registerObject(Object obj, ULocale locale, boolean visible) Convenience override for callers using locales.registerObject(Object obj, ULocale locale, int kind) Convenience function for callers using locales.registerObject(Object obj, ULocale locale, int kind, boolean visible) Convenience function for callers using locales.Return the name of the current fallback locale.Methods inherited from class org.graalvm.shadowed.com.ibm.icu.impl.ICUService
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, unregisterFactoryMethods inherited from class org.graalvm.shadowed.com.ibm.icu.impl.ICUNotifier
addListener, notifyChanged, removeListener
-
Constructor Details
-
ICULocaleService
public ICULocaleService()Construct an ICULocaleService. -
ICULocaleService
Construct an ICULocaleService with a name (useful for debugging).
-
-
Method Details
-
get
-
get
-
get
-
get
Convenience override for callers using locales. This uses createKey(ULocale.toString(), kind) to create a key, calls getKey, and then if actualReturn is not null, returns the actualResult from getKey (stripping any prefix) into a ULocale. -
registerObject
Convenience override for callers using locales. This calls registerObject(Object, ULocale, int kind, boolean visible) passing KIND_ANY for the kind, and true for the visibility. -
registerObject
Convenience override for callers using locales. This calls registerObject(Object, ULocale, int kind, boolean visible) passing KIND_ANY for the kind. -
registerObject
Convenience function for callers using locales. This calls registerObject(Object, ULocale, int kind, boolean visible) passing true for the visibility. -
registerObject
Convenience function for callers using locales. This instantiates a SimpleLocaleKeyFactory, and registers the factory. -
getAvailableLocales
Convenience method for callers using locales. This returns the standard Locale list, built from the Set of visible ids. -
getAvailableULocales
Convenience method for callers using locales. This returns the standard ULocale list, built from the Set of visible ids. -
validateFallbackLocale
Return the name of the current fallback locale. If it has changed since this was last accessed, the service cache is cleared. -
createKey
Description copied from class:ICUServiceCreate a key from an id. This creates a Key instance. Subclasses can override to define more useful keys appropriate to the factories they accept. If id is null, returns null.- Overrides:
createKeyin classICUService
-
createKey
-
createKey
-