Interface InstructionQuery

All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidEnablerQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidOperableQuery, OsidQuery, OsidRelationshipQuery, OsidRuleApplicatorQuery, OsidRuleQuery, OsidTemporalQuery, Suppliable

public interface InstructionQuery extends OsidRelationshipQuery, OsidRuleApplicatorQuery

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

  • Method Details

    • matchAgendaId

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

      void clearAgendaIdTerms()
      Clears the agenda Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsAgendaQuery

      boolean supportsAgendaQuery()
      Tests if an AgendaQuery is available.
      Returns:
      true if an agenda query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getAgendaQuery

      AgendaQuery getAgendaQuery()
      Gets the query for an agenda. Multiple retrievals produce a nested OR term.
      Returns:
      the agenda query
      Throws:
      UnimplementedException - supportsAgendaQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsAgendaQuery()} is {@code true} .
    • clearAgendaTerms

      void clearAgendaTerms()
      Clears the agenda query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchCheckId

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

      void clearCheckIdTerms()
      Clears the check Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsCheckQuery

      boolean supportsCheckQuery()
      Tests if a CheckQuery is available.
      Returns:
      true if a check query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getCheckQuery

      CheckQuery getCheckQuery()
      Gets the query for a check. Multiple retrievals produce a nested OR term.
      Returns:
      the check query
      Throws:
      UnimplementedException - supportsCheckQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsCheckQuery()} is {@code true} .
    • clearCheckTerms

      void clearCheckTerms()
      Clears the check query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchMessage

      void matchMessage(String message, Type stringMatchType, boolean match)
      Adds a message for this query.
      Parameters:
      message - message string to match
      stringMatchType - the string match type
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - message not of stringMatchType
      NullArgumentException - message or stringMatchType is null
      UnsupportedException - supportsStringMatchType(stringMatchType) is false
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyMessage

      void matchAnyMessage(boolean match)
      Matches instructions that have any message.
      Parameters:
      match - true to match instructions with any message, false to match instructions with no message
      Compliance:
      mandatory - This method must be implemented.
    • clearMessageTerms

      void clearMessageTerms()
      Clears the message query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchWarning

      void matchWarning(boolean match)
      Matches warnings.
      Parameters:
      match - true to match warnings, false to match hard errors
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyWarning

      void matchAnyWarning(boolean match)
      Matches instructions that have any warning status set.
      Parameters:
      match - true to match instructions with any warning status set, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • clearWarningTerms

      void clearWarningTerms()
      Clears the warning query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchContinueOnFail

      void matchContinueOnFail(boolean match)
      Matches continue-on-fail instructions.
      Parameters:
      match - true to match continue-on-fail instructions, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyContinueOnFail

      void matchAnyContinueOnFail(boolean match)
      Matches instructions that have any continue on fail status set.
      Parameters:
      match - true to match instructions with any continue on fail status set, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • clearContinueOnFailTerms

      void clearContinueOnFailTerms()
      Clears the continue-on-fail query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchBreakOnSuccess

      void matchBreakOnSuccess(boolean match)
      Matches break-on-successl instructions.
      Parameters:
      match - true to match break-on-successl instructions, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyBreakOnSuccess

      void matchAnyBreakOnSuccess(boolean match)
      Matches instructions that have any break on success status set.
      Parameters:
      match - true to match instructions with any break on success status set, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • clearBreakOnSuccessTerms

      void clearBreakOnSuccessTerms()
      Clears the break-on-success query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchEngineId

      void matchEngineId(Id engineId, boolean match)
      Sets the engine Id for this query to match instructions assigned to engines.
      Parameters:
      engineId - the engine Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - engineId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearEngineIdTerms

      void clearEngineIdTerms()
      Clears the engine Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsEngineQuery

      boolean supportsEngineQuery()
      Tests if a EngineQuery is available.
      Returns:
      true if an engine query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getEngineQuery

      EngineQuery getEngineQuery()
      Gets the query for an engine. Multiple retrievals produce a nested OR term.
      Returns:
      the engine query
      Throws:
      UnimplementedException - supportsEngineQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsEngineQuery()} is {@code true} .
    • clearEngineTerms

      void clearEngineTerms()
      Clears the engine query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchOrder

      void matchOrder(long from, long to, boolean match)
      Matches instructions within the given order range inclusive.
      Parameters:
      from - start of range
      to - end of range
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - from is greater than to
      Compliance:
      mandatory - This method must be implemented.
    • clearOrderTerms

      void clearOrderTerms()
      Clears the order terms.
      Compliance:
      mandatory - This method must be implemented.
    • getInstructionQueryRecord

      InstructionQueryRecord getInstructionQueryRecord(Type instructionRecordType) throws OperationFailedException, PermissionDeniedException
      Gets the instruction query record corresponding to the given Instruction record Type . Multiple record retrievals produce a nested OR term.
      Parameters:
      instructionRecordType - an instruction record type
      Returns:
      the instruction query record
      Throws:
      NullArgumentException - instructionRecordType is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure occurred
      UnsupportedException - hasRecordType(instructionRecordType) is false
      Compliance:
      mandatory - This method must be implemented.