Interface StateQuery

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

public interface StateQuery extends OsidObjectQuery

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

  • Method Details

    • matchProcessId

      void matchProcessId(Id processId, boolean match)
      Sets the process Id for this query.
      Parameters:
      processId - the process Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - processId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearProcessIdTerms

      void clearProcessIdTerms()
      Clears the process Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsProcessQuery

      boolean supportsProcessQuery()
      Tests if a ProcessQuery is available.
      Returns:
      true if a process query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getProcessQuery

      ProcessQuery getProcessQuery()
      Gets the query for a process. Multiple retrievals produce a nested OR term.
      Returns:
      the process query
      Throws:
      UnimplementedException - supportsProcessQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsProcessQuery()} is {@code true} .
    • clearProcessTerms

      void clearProcessTerms()
      Clears the process terms.
      Compliance:
      mandatory - This method must be implemented.
    • getStateQueryRecord

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