Interface TextQuery

All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, Suppliable

public interface TextQuery extends OsidObjectQuery

This is the query for searching texts. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR .

  • Method Details

    • clearTextReturnTerms

      void clearTextReturnTerms()
      Clears the text return query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchPressId

      void matchPressId(Id pressId, boolean match)
      Sets the press Id for this query to match texts assigned to presses.
      Parameters:
      pressId - the press Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - pressId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearPressIdTerms

      void clearPressIdTerms()
      Clears the press Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsPressQuery

      boolean supportsPressQuery()
      Tests if a PressQuery is available.
      Returns:
      true if an press query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getPressQuery

      PressQuery getPressQuery()
      Gets the query for an press. Multiple retrievals produce a nested OR term.
      Returns:
      the press query
      Throws:
      UnimplementedException - supportsPressQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsPressQuery()} is {@code true} .
    • clearPressTerms

      void clearPressTerms()
      Clears the press query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getTextQueryRecord

      TextQueryRecord getTextQueryRecord(Type textRecordType) throws OperationFailedException
      Gets the text query record corresponding to the given Text record Type .Multiple record retrievals produce a nested OR term.
      Parameters:
      textRecordType - a text record type
      Returns:
      the text query record
      Throws:
      NullArgumentException - textRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(textRecordType) is false
      Compliance:
      mandatory - This method must be implemented.