Class QueryPredicate

java.lang.Object
org.dspace.contentreport.QueryPredicate

public class QueryPredicate extends Object
Data structure representing a query predicate used by the Filtered Items report to filter items to retrieve.
Author:
Jean-François Morin (Université Laval)
  • Constructor Details

    • QueryPredicate

      public QueryPredicate()
  • Method Details

    • of

      public static QueryPredicate of(MetadataField field, QueryOperator operator, String value)
      Shortcut method that builds a QueryPredicate from a single field, an operator, and a value.
      Parameters:
      field - Predicate subject
      operator - Predicate operator
      value - Predicate object
      Returns:
      a QueryPredicate instance built from the provided parameters
    • of

      public static QueryPredicate of(Collection<MetadataField> fields, QueryOperator operator, String value)
      Shortcut method that builds a QueryPredicate from a list of fields, an operator, and a value.
      Parameters:
      fields - Fields that form the predicate subject
      operator - Predicate operator
      value - Predicate object
      Returns:
      a QueryPredicate instance built from the provided parameters
    • getFields

      public List<MetadataField> getFields()
    • getOperator

      public QueryOperator getOperator()
    • getValue

      public String getValue()