Enum DataStoreRegistry.Category

java.lang.Object
java.lang.Enum<DataStoreRegistry.Category>
org.apache.sis.storage.DataStoreRegistry.Category
All Implemented Interfaces:
Serializable, Comparable<DataStoreRegistry.Category>, java.lang.constant.Constable
Enclosing class:
DataStoreRegistry

private static enum DataStoreRegistry.Category extends Enum<DataStoreRegistry.Category>
The kind of providers to test. The provider are divided in 4 categories depending on whether the file suffix matches the suffix expected by the provider, and whether the provider should be tested last for giving a chance to specialized providers to open the file.
  • Enum Constant Details

    • SUFFIX_MATCH

      public static final DataStoreRegistry.Category SUFFIX_MATCH
      The provider can be tested now and the file suffix matches.
    • IGNORE_SUFFIX

      public static final DataStoreRegistry.Category IGNORE_SUFFIX
      The provider could be tested now but the file suffix does not match.
    • DEFERRED

      public static final DataStoreRegistry.Category DEFERRED
      The provider should be tested last, but the file suffix matches.
    • DEFERRED_IGNORE_SUFFIX

      public static final DataStoreRegistry.Category DEFERRED_IGNORE_SUFFIX
      The provider should be tested last because it is too generic.
  • Field Details

    • useSuffix

      final boolean useSuffix
      Whether this category checks if suffix matches.
    • yieldPriority

      final boolean yieldPriority
      Whether this category is for providers to test last.
  • Constructor Details

    • Category

      private Category(boolean useSuffix, boolean yieldPriority)
      Creates a new enumeration value.
  • Method Details

    • values

      public static DataStoreRegistry.Category[] 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 DataStoreRegistry.Category 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
    • values

      static DataStoreRegistry.Category[] values(boolean useSuffix)
      Returns the categories, optionally ignoring file suffix.