Package com.ibm.icu.impl
Enum ICUResourceBundle.OpenType
- java.lang.Object
-
- java.lang.Enum<ICUResourceBundle.OpenType>
-
- com.ibm.icu.impl.ICUResourceBundle.OpenType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ICUResourceBundle.OpenType>
- Enclosing class:
- ICUResourceBundle
public static enum ICUResourceBundle.OpenType extends java.lang.Enum<ICUResourceBundle.OpenType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DIRECT
Open a resource bundle for the exact bundle name as requested; no fallbacks, do not load parent bundles.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.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.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.
-
Constructor Summary
Constructors Modifier Constructor Description private
OpenType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ICUResourceBundle.OpenType
valueOf(java.lang.String name)
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 Detail
-
LOCALE_DEFAULT_ROOT
public static final ICUResourceBundle.OpenType 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
public static final ICUResourceBundle.OpenType 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
public static final ICUResourceBundle.OpenType 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
public static final ICUResourceBundle.OpenType 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.
-
-
Method Detail
-
values
public static ICUResourceBundle.OpenType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ICUResourceBundle.OpenType c : ICUResourceBundle.OpenType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ICUResourceBundle.OpenType valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-