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:
Serializable,Comparable<ICUResourceBundle.OpenType>
- Enclosing class:
- ICUResourceBundle
public static enum ICUResourceBundle.OpenType extends Enum<ICUResourceBundle.OpenType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DIRECTOpen a resource bundle for the exact bundle name as requested; no fallbacks, do not load parent bundles.LOCALE_DEFAULT_ROOTOpen 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_ROOTOpen 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.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ICUResourceBundle.OpenTypevalueOf(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).
-
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(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-