Interface EngineQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidCatalogQuery, OsidExtensibleQuery, OsidFederateableQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, OsidSourceableQuery, Suppliable
This is the query for searching for engines. Each method specifies an
AND term while multiple invocations of the same method produce a
nested OR.
Like all OsidQueries, EngineQuery is stateful and must
not be accessed by multiple processing threads.
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the ancestor engineIdquery terms.voidClears the ancestor engine query terms.voidClears the descendant engineIdquery terms.voidClears the descendant engine query terms.voidClears the ruleIdquery terms.voidClears the rule query terms.Gets the query for an engine.Gets the query for an engine.getEngineQueryRecord(Type engineRecordType) Gets the engine query record corresponding to the givenEnginerecordType.Multiple record retrievals produce a nested booleanORterm.Gets the query for a rule.voidmatchAncestorEngineId(Id engineId, boolean match) Sets the engineIdfor this query to match engines that have the specified engine as an ancestor.voidmatchAnyAncestorEngine(boolean match) Matches engines with any ancestor.voidmatchAnyDescendantEngine(boolean match) Matches engines with any descendant.voidmatchAnyRule(boolean match) Matches engines with any riule.voidmatchDescendantEngineId(Id engineId, boolean match) Sets the engineIdfor this query to match engines that have the specified engine as a descendant.voidmatchRuleId(Id ruleId, boolean match) Sets the ruleIdfor this query to match rules assigned to engines.booleanTests if anEngineQueryis available.booleanTests if anEngineQueryis available.booleanTests if a rule query is available.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeMethods inherited from interface OsidExtensibleQuery
clearRecordTerms, matchAnyRecord, matchRecordTypeMethods inherited from interface OsidIdentifiableQuery
clearIdTerms, matchIdMethods inherited from interface OsidObjectQuery
clearCommentIdTerms, clearCommentTerms, clearCreditIdTerms, clearCreditTerms, clearDescriptionTerms, clearDisplayNameTerms, clearGenusTypeTerms, clearJournalEntryIdTerms, clearJournalEntryTerms, clearParentGenusTypeTerms, clearRelationshipIdTerms, clearRelationshipPeerIdTerms, clearRelationshipTerms, clearStateIdTerms, clearStateTerms, clearStatisticTerms, clearSubjectIdTerms, clearSubjectRelevancyTerms, clearSubjectTerms, getCommentQuery, getCreditQuery, getJournalEntryQuery, getRelationshipQuery, getStateQuery, getStatisticQuery, getSubjectQuery, getSubjectRelevancyQuery, matchAnyComment, matchAnyCredit, matchAnyDescription, matchAnyDisplayName, matchAnyGenusType, matchAnyJournalEntry, matchAnyRelationship, matchAnyState, matchAnyStatistic, matchAnySubject, matchCommentId, matchCreditId, matchDescription, matchDisplayName, matchGenusType, matchJournalEntryId, matchParentGenusType, matchRelationshipId, matchRelationshipPeerId, matchStateId, matchSubjectId, supportsCommentQuery, supportsCreditQuery, supportsJournalEntryQuery, supportsRelationshipQuery, supportsStateQuery, supportsStatisticQuery, supportsSubjectQuery, supportsSubjectRelevancyQueryMethods inherited from interface OsidQuery
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypeMethods inherited from interface OsidSourceableQuery
clearBrandingIdTerms, clearBrandingTerms, clearLicenseTerms, clearProviderIdTerms, clearProviderTerms, getBrandingQuery, getProviderQuery, matchAnyBranding, matchAnyLicense, matchAnyProvider, matchBrandingId, matchLicense, matchProviderId, supportsBrandingQuery, supportsProviderQuery
-
Method Details
-
matchRuleId
Sets the ruleIdfor this query to match rules assigned to engines.- Parameters:
ruleId- a ruleIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-ruleIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearRuleIdTerms
void clearRuleIdTerms()Clears the ruleIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsRuleQuery
boolean supportsRuleQuery()Tests if a rule query is available.- Returns:
trueif a rule query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getRuleQuery
RuleQuery getRuleQuery()Gets the query for a rule.- Returns:
- the rule query
- Throws:
UnimplementedException-supportsRuleQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRuleQuery()} is {@code true}.
-
matchAnyRule
void matchAnyRule(boolean match) Matches engines with any riule.- Parameters:
match-trueto match engines with any rule,,falseto match engines with no rules- Compliance:
mandatory- This method must be implemented.
-
clearRuleTerms
void clearRuleTerms()Clears the rule query terms.- Compliance:
mandatory- This method must be implemented.
-
matchAncestorEngineId
Sets the engineIdfor this query to match engines that have the specified engine as an ancestor.- Parameters:
engineId- an engineIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-engineIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearAncestorEngineIdTerms
void clearAncestorEngineIdTerms()Clears the ancestor engineIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsAncestorEngineQuery
boolean supportsAncestorEngineQuery()Tests if anEngineQueryis available.- Returns:
trueif an engine query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getAncestorEngineQuery
EngineQuery getAncestorEngineQuery()Gets the query for an engine. Multiple retrievals produce a nestedORterm.- Returns:
- the engine query
- Throws:
UnimplementedException-supportsAncestorEngineQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAncestorEngineQuery()} is {@code true}.
-
matchAnyAncestorEngine
void matchAnyAncestorEngine(boolean match) Matches engines with any ancestor.- Parameters:
match-trueto match engine with any ancestor,falseto match root engines- Compliance:
mandatory- This method must be implemented.
-
clearAncestorEngineTerms
void clearAncestorEngineTerms()Clears the ancestor engine query terms.- Compliance:
mandatory- This method must be implemented.
-
matchDescendantEngineId
Sets the engineIdfor this query to match engines that have the specified engine as a descendant.- Parameters:
engineId- an engineIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-engineIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearDescendantEngineIdTerms
void clearDescendantEngineIdTerms()Clears the descendant engineIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsDescendantEngineQuery
boolean supportsDescendantEngineQuery()Tests if anEngineQueryis available.- Returns:
trueif an engine query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getDescendantEngineQuery
EngineQuery getDescendantEngineQuery()Gets the query for an engine. Multiple retrievals produce a nestedORterm.- Returns:
- the engine query
- Throws:
UnimplementedException-supportsDescendantEngineQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsDescendantEngineQuery()} is {@code true}.
-
matchAnyDescendantEngine
void matchAnyDescendantEngine(boolean match) Matches engines with any descendant.- Parameters:
match-trueto match engine with any descendant,falseto match leaf engines- Compliance:
mandatory- This method must be implemented.
-
clearDescendantEngineTerms
void clearDescendantEngineTerms()Clears the descendant engine query terms.- Compliance:
mandatory- This method must be implemented.
-
getEngineQueryRecord
Gets the engine query record corresponding to the givenEnginerecordType.Multiple record retrievals produce a nested booleanORterm.- Parameters:
engineRecordType- an engine record type- Returns:
- the engine query record
- Throws:
NullArgumentException-engineRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(engineRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-