Enum ICUResourceBundle.OpenType

java.lang.Object
java.lang.Enum<ICUResourceBundle.OpenType>
com.ibm.icu.impl.ICUResourceBundle.OpenType
All Implemented Interfaces:
Serializable, Comparable<ICUResourceBundle.OpenType>, java.lang.constant.Constable
Enclosing class:
ICUResourceBundle

public static enum ICUResourceBundle.OpenType extends Enum<ICUResourceBundle.OpenType>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Open 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
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • 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 for LocaleDisplayNames.

    • 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.

  • Constructor Details

    • OpenType

      private OpenType()
  • Method Details

    • values

      public static ICUResourceBundle.OpenType[] 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

      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 name
      NullPointerException - if the argument is null