Package com.ibm.icu.impl
Enum ICUResourceBundle.OpenType
- All Implemented Interfaces:
Serializable
,Comparable<ICUResourceBundle.OpenType>
,java.lang.constant.Constable
- Enclosing class:
- ICUResourceBundle
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOpen a resource bundle for the exact bundle name as requested; no fallbacks, do not load parent bundles.Open a resource bundle for the locale; if there is not even a base language bundle, then fall back to the default locale; if there is no bundle for that either, then load the root bundle.Open a resource bundle for the locale; if there is not even a base language bundle, then fail; never fall back to the default locale nor to the root locale.Open a resource bundle for the locale; if there is not even a base language bundle, then load the root bundle; never fall back to the default locale. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ICUResourceBundle.OpenType
Returns the enum constant of this type with the specified name.static ICUResourceBundle.OpenType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LOCALE_DEFAULT_ROOT
Open a resource bundle for the locale; if there is not even a base language bundle, then fall back to the default locale; if there is no bundle for that either, then load the root bundle.This is the default bundle loading behavior.
-
LOCALE_ROOT
Open a resource bundle for the locale; if there is not even a base language bundle, then load the root bundle; never fall back to the default locale.This is used for algorithms that have good pan-Unicode default behavior, such as case mappings, collation, and segmentation (BreakIterator).
-
LOCALE_ONLY
Open a resource bundle for the locale; if there is not even a base language bundle, then fail; never fall back to the default locale nor to the root locale.This is used when fallback to another language is not desired and the root locale is not generally useful. For example,
LocaleData.setNoSubstitute(boolean)
or currency display names forLocaleDisplayNames
. -
DIRECT
Open a resource bundle for the exact bundle name as requested; no fallbacks, do not load parent bundles.This is used for supplemental (non-locale) data.
-
-
Constructor Details
-
OpenType
private OpenType()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-