public interface RelevancyQuery extends OsidRelationshipQuery
This is the query for searching relevancies. Each method match request
produces an AND term while multiple invocations of a method
produces a nested OR.
| Modifier and Type | Method and Description |
|---|---|
void |
clearMappedIdTerms()
Clears the mapped
Id terms for this query. |
void |
clearOntologyIdTerms()
Clears the ontology
Id terms for this query. |
void |
clearOntologyTerms()
Clears the ontology terms for this query.
|
void |
clearSubjectIdTerms()
Clears the subject
Id terms for this query. |
void |
clearSubjectTerms()
Clears the subject terms for this query.
|
OntologyQuery |
getOntologyQuery()
Gets the query for a ontology.
|
RelevancyQueryRecord |
getRelevancyQueryRecord(Type relevancytRecordType)
Gets the relevancy query record corresponding to the given
Relevancy record Type. |
SubjectQuery |
getSubjectQuery()
Gets the query for an subject.
|
void |
matchMappedId(Id id,
boolean match)
Sets the mapped
Id for this query. |
void |
matchOntologyId(Id ontologyId,
boolean match)
Sets the ontology
Id for this query. |
void |
matchSubjectId(Id subjectId,
boolean match)
Sets the subject
Id for this query. |
boolean |
supportsOntologyQuery()
Tests if a
OntologyQuery is available for querying
ontologies. |
boolean |
supportsSubjectQuery()
Tests if a
SubjectQuery is available. |
clearEndReasonIdTerms, clearEndReasonTerms, getEndReasonQuery, matchAnyEndReason, matchEndReasonId, supportsEndReasonQueryclearCommentIdTerms, clearCommentTerms, clearCreditIdTerms, clearCreditTerms, clearDescriptionTerms, clearDisplayNameTerms, clearGenusTypeTerms, clearJournalEntryIdTerms, clearJournalEntryTerms, clearParentGenusTypeTerms, clearRelationshipIdTerms, clearRelationshipPeerIdTerms, clearRelationshipTerms, clearStateIdTerms, clearStateTerms, clearStatisticTerms, clearSubjectRelevancyTerms, getCommentQuery, getCreditQuery, getJournalEntryQuery, getRelationshipQuery, getStateQuery, getStatisticQuery, getSubjectRelevancyQuery, matchAnyComment, matchAnyCredit, matchAnyDescription, matchAnyDisplayName, matchAnyGenusType, matchAnyJournalEntry, matchAnyRelationship, matchAnyState, matchAnyStatistic, matchAnySubject, matchCommentId, matchCreditId, matchDescription, matchDisplayName, matchGenusType, matchJournalEntryId, matchParentGenusType, matchRelationshipId, matchRelationshipPeerId, matchStateId, supportsCommentQuery, supportsCreditQuery, supportsJournalEntryQuery, supportsRelationshipQuery, supportsStateQuery, supportsStatisticQuery, supportsSubjectRelevancyQueryclearIdTerms, matchIdclearRecordTerms, matchAnyRecord, matchRecordTypegetRecordTypes, hasRecordTypeclearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypeclearDateTerms, clearEffectiveTerms, clearEndDateTerms, clearStartDateTerms, matchAnyEndDate, matchAnyStartDate, matchDate, matchEffective, matchEndDate, matchStartDatevoid matchSubjectId(Id subjectId, boolean match)
Id for this query.matchSubjectId in interface OsidObjectQuerysubjectId - a subject Id match - true for a positive match, false
for a negative matchNullArgumentException - subjectId is
null mandatory - This method must be implemented. void clearSubjectIdTerms()
Id terms for this query.clearSubjectIdTerms in interface OsidObjectQuerymandatory - This method must be implemented. boolean supportsSubjectQuery()
SubjectQuery is available.supportsSubjectQuery in interface OsidObjectQuery true if a subject query is available,
false otherwisemandatory - This method must be implemented. SubjectQuery getSubjectQuery()
OR term.getSubjectQuery in interface OsidObjectQueryUnimplementedException - supportsSubjectQuery()
is false optional - This method must be implemented if
supportsSubjectQuery() is true. void clearSubjectTerms()
clearSubjectTerms in interface OsidObjectQuerymandatory - This method must be implemented. void matchMappedId(Id id, boolean match)
Id for this query.id - an Id match - true for a positive match, false
for a negative matchNullArgumentException - id is
null mandatory - This method must be implemented. void clearMappedIdTerms()
Id terms for this query.mandatory - This method must be implemented. void matchOntologyId(Id ontologyId, boolean match)
Id for this query.ontologyId - a ontology Id match - true for a positive match, false
for a negative matchNullArgumentException - ontologyId is
null mandatory - This method must be implemented. void clearOntologyIdTerms()
Id terms for this query.mandatory - This method must be implemented. boolean supportsOntologyQuery()
OntologyQuery is available for querying
ontologies. true if a ontology query is available,
false otherwisemandatory - This method must be implemented. OntologyQuery getOntologyQuery()
OR term.UnimplementedException - supportsOntologyQuery()
is false optional - This method must be implemented if
supportsOntologyQuery() is true. void clearOntologyTerms()
mandatory - This method must be implemented. RelevancyQueryRecord getRelevancyQueryRecord(Type relevancytRecordType) throws OperationFailedException
Relevancy record Type. Multiple retrievals
produce a nested OR term.relevancytRecordType - an relevancy query record typeNullArgumentException - relevancyRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(relevancyRecordType) is false
mandatory - This method must be implemented.