Package org.apache.sis.storage
Enum DataStoreRegistry.Category
- All Implemented Interfaces:
Serializable
,Comparable<DataStoreRegistry.Category>
,java.lang.constant.Constable
- Enclosing class:
- DataStoreRegistry
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe provider should be tested last, but the file suffix matches.The provider should be tested last because it is too generic.The provider could be tested now but the file suffix does not match.The provider can be tested now and the file suffix matches. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final boolean
Whether this category checks if suffix matches.(package private) final boolean
Whether this category is for providers to test last. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Category
(boolean useSuffix, boolean yieldPriority) Creates a new enumeration value. -
Method Summary
Modifier and TypeMethodDescriptionstatic DataStoreRegistry.Category
Returns the enum constant of this type with the specified name.static DataStoreRegistry.Category[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.(package private) static DataStoreRegistry.Category[]
values
(boolean useSuffix) Returns the categories, optionally ignoring file suffix.
-
Enum Constant Details
-
SUFFIX_MATCH
The provider can be tested now and the file suffix matches. -
IGNORE_SUFFIX
The provider could be tested now but the file suffix does not match. -
DEFERRED
The provider should be tested last, but the file suffix matches. -
DEFERRED_IGNORE_SUFFIX
The provider should be tested last because it is too generic.
-
-
Field Details
-
useSuffix
final boolean useSuffixWhether this category checks if suffix matches. -
yieldPriority
final boolean yieldPriorityWhether 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
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
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
-
values
Returns the categories, optionally ignoring file suffix.
-