Enum Class QueryOperator

java.lang.Object
java.lang.Enum<QueryOperator>
org.dspace.contentreport.QueryOperator
All Implemented Interfaces:
Serializable, Comparable<QueryOperator>, Constable

public enum QueryOperator extends Enum<QueryOperator>
Operators available for creating predicates to query the Filtered Items report
Author:
Jean-François Morin (Université Laval)
  • Enum Constant Details

  • Method Details

    • values

      public static QueryOperator[] 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

      public static QueryOperator valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getCode

      public String getCode()
    • getUsesRegex

      public boolean getUsesRegex()
    • getNegate

      public boolean getNegate()
    • buildJpaPredicate

      public jakarta.persistence.criteria.Predicate buildJpaPredicate(String val, String regexClause, JpaCriteriaBuilderKit<MetadataValue> jpaKit)
    • get

      public static QueryOperator get(String code)