public static enum ICUResourceBundle.OpenType extends Enum<ICUResourceBundle.OpenType>
Enum.EnumDesc<E extends Enum<E>>| Enum Constant and 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.
|
| Modifier and Type | Method and Description |
|---|---|
static ICUResourceBundle.OpenType |
valueOf(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.
|
public static final ICUResourceBundle.OpenType LOCALE_DEFAULT_ROOT
This is the default bundle loading behavior.
public static final ICUResourceBundle.OpenType LOCALE_ROOT
This is used for algorithms that have good pan-Unicode default behavior, such as case mappings, collation, and segmentation (BreakIterator).
public static final ICUResourceBundle.OpenType LOCALE_ONLY
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 for LocaleDisplayNames.
public static final ICUResourceBundle.OpenType DIRECT
This is used for supplemental (non-locale) data.
public static ICUResourceBundle.OpenType[] values()
public static ICUResourceBundle.OpenType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null