Interface OsidRuleApplicatorQuery

All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidEnablerQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidOperableQuery, OsidQuery, OsidRuleQuery, OsidTemporalQuery, Suppliable
All Known Subinterfaces:
InstructionQuery

public interface OsidRuleApplicatorQuery extends OsidEnablerQuery

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

  • Method Details

    • matchResourceId

      void matchResourceId(Id resourceId, boolean match)
      Match the Id of the resource.
      Parameters:
      resourceId - Id to match
      match - true if for a positive match, false for a negative match
      Throws:
      NullArgumentException - resourceId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearResourceIdTerms

      void clearResourceIdTerms()
      Clears all resource Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsResourceQuery

      boolean supportsResourceQuery()
      Tests if a ResourceQuery is available.
      Returns:
      true if a resource query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getResourceQuery

      ResourceQuery getResourceQuery(boolean match)
      Gets the query for the resource. Each retrieval performs a boolean OR .
      Parameters:
      match - true if for a positive match, false for a negative match
      Returns:
      the resource query
      Throws:
      UnimplementedException - supportsResourceQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsResourceQuery()} is {@code true} .
    • matchAnyResource

      void matchAnyResource(boolean match)
      Match any associated resource.
      Parameters:
      match - true to match any resource, false to match no resources
      Compliance:
      mandatory - This method must be implemented.
    • clearResourceTerms

      void clearResourceTerms()
      Clears all resource terms.
      Compliance:
      mandatory - This method must be implemented.