Package io.gdcc.spi.export
Enum Class DatasetMetadataPredicates
- All Implemented Interfaces:
Serializable,Comparable<DatasetMetadataPredicates>,Constable
Predicates for controlling which dataset metadata is included in an export
and at what level of detail.
These predicates are used in a DatasetExportQuery to shape dataset-level
retrieval. They are exclusively concerned with dataset-level concerns — file-level
filtering is handled separately by FileMetadataPredicates via
FileExportQuery.
Predicates may conflict with each other; use checkConflicts(Set) to
validate a combination before use.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Method Summary
Modifier and TypeMethodDescriptionstatic Set<DatasetMetadataPredicates>checkConflicts(Set<DatasetMetadataPredicates> predicates) Checks for conflicts among the given set of dataset metadata predicates.booleanReturnstrueif this predicate conflicts with the given predicate.static DatasetMetadataPredicatesReturns the enum constant of this class with the specified name.static DatasetMetadataPredicates[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
conflictsWith
Returnstrueif this predicate conflicts with the given predicate.- Parameters:
p- the predicate to check against;nullis safe and returnsfalse- Returns:
trueif a conflict exists,falseotherwise
-
checkConflicts
public static Set<DatasetMetadataPredicates> checkConflicts(Set<DatasetMetadataPredicates> predicates) Checks for conflicts among the given set of dataset metadata predicates. A predicate is considered conflicting if it has a conflict relationship with any other predicate in the set.- Parameters:
predicates- the set of predicates to check for conflicts- Returns:
- an unmodifiable set of predicates from the input that conflict with at least one other predicate; empty if no conflicts exist
-