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, supportsEndReasonQuery
clearCommentIdTerms, 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, supportsSubjectRelevancyQuery
clearIdTerms, matchId
clearRecordTerms, matchAnyRecord, matchRecordType
getRecordTypes, hasRecordType
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchType
clearDateTerms, clearEffectiveTerms, clearEndDateTerms, clearStartDateTerms, matchAnyEndDate, matchAnyStartDate, matchDate, matchEffective, matchEndDate, matchStartDate
void matchSubjectId(Id subjectId, boolean match)
Id
for this query.matchSubjectId
in interface OsidObjectQuery
subjectId
- 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 OsidObjectQuery
mandatory
- 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 OsidObjectQuery
UnimplementedException
- supportsSubjectQuery()
is false
optional
- This method must be implemented if
supportsSubjectQuery()
is true.
void clearSubjectTerms()
clearSubjectTerms
in interface OsidObjectQuery
mandatory
- 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.