Class AbstractRelevancyQueryInspector
java.lang.Object
net.okapia.osid.jamocha.spi.AbstractOsidQueryInspector
net.okapia.osid.jamocha.spi.AbstractOsidIdentifiableQueryInspector
net.okapia.osid.jamocha.spi.AbstractOsidObjectQueryInspector
net.okapia.osid.jamocha.spi.AbstractTemporalOsidObjectQueryInspector
net.okapia.osid.jamocha.spi.AbstractOsidRelationshipQueryInspector
net.okapia.osid.jamocha.ontology.relevancy.spi.AbstractRelevancyQueryInspector
- All Implemented Interfaces:
Extensible, RelevancyQueryInspector, OsidBrowsableQueryInspector, OsidExtensibleQueryInspector, OsidIdentifiableQueryInspector, OsidObjectQueryInspector, OsidQueryInspector, OsidRelationshipQueryInspector, OsidTemporalQueryInspector
- Direct Known Subclasses:
RelevancyQueryUninspector
public abstract class AbstractRelevancyQueryInspector
extends AbstractOsidRelationshipQueryInspector
implements RelevancyQueryInspector
A query inspector template for relevancies.
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractTemporalOsidObjectQueryInspector
AbstractTemporalOsidObjectQueryInspector.OsidTemporalQueryInspectorModifier and TypeClassDescriptionprotected classComposed OsidTemporalQueryInspector.Nested classes/interfaces inherited from class AbstractOsidObjectQueryInspector
AbstractOsidObjectQueryInspector.OsidBrowsableQueryInspectorModifier and TypeClassDescriptionprotected classComposed BrowsableQueryInspector. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newAbstractRelevancyQueryInspector. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddRelevancyQueryInspectorRecord(RelevancyQueryInspectorRecord relevancyQueryInspectorRecord, Type relevancyRecordType) Adds a record to this relevancy query.IdTerm[]Gets the mappedIdterms.IdTerm[]Gets the ontologyIdterms.Gets the ontology terms.getRelevancyQueryInspectorRecord(Type relevancyRecordType) Gets the record corresponding to the given relevancy query inspector recordType.IdTerm[]Gets the subjectIdterms.Gets the subject terms.Methods inherited from class AbstractOsidRelationshipQueryInspector
getEndReasonIdTerms, getEndReasonTermsModifier and TypeMethodDescriptionIdTerm[]Gets the end reaosn stateIdquery terms.Gets the end reason state query terms.Methods inherited from class AbstractTemporalOsidObjectQueryInspector
getDateTerms, getEffectiveTerms, getEndDateTerms, getStartDateTermsModifier and TypeMethodDescriptionGets the date query terms.Gets the effective query terms.Gets the end date query terms.Gets the start date query terms.Methods inherited from class AbstractOsidObjectQueryInspector
addRecordType, getCommentIdTerms, getCommentTerms, getCreditIdTerms, getCreditTerms, getDescriptionTerms, getDisplayNameTerms, getGenusTypeTerms, getJournalEntryIdTerms, getJournalEntryTerms, getParentGenusTypeTerms, getRecordTypes, getRecordTypeTerms, getRelationshipIdTerms, getRelationshipPeerIdTerms, getRelationshipTerms, getStateIdTerms, getStateTerms, getStatisticTerms, getSubjectRelevancyTerms, hasRecordTypeModifier and TypeMethodDescriptionprotected voidaddRecordType(Type recordType) Adds a record type.IdTerm[]Gets the commentIdquery terms.Gets the comment query terms.IdTerm[]Gets the creditIdquery terms.Gets the credit query terms.Gets the description query terms.Gets the display name query terms.TypeTerm[]Gets the genus type query terms.IdTerm[]Gets the journal entryIdquery terms.Gets the journal entry query terms.TypeTerm[]Gets the parent genus type query terms.Gets the record types available in this object.TypeTerm[]Gets the record type query terms.IdTerm[]Gets the relationshipIdquery terms.IdTerm[]Gets the relationship peerIdquery terms.Gets the relationship query terms.IdTerm[]Gets the stateIdquery terms.Gets the state query terms.Gets the statistic query terms.Gets the relevancy query terms.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from class AbstractOsidIdentifiableQueryInspector
getIdTermsMethods inherited from class AbstractOsidQueryInspector
getAnyTerms, getKeywordTermsModifier and TypeMethodDescriptionGets the any query terms.Gets the keyword query terms.
-
Constructor Details
-
AbstractRelevancyQueryInspector
public AbstractRelevancyQueryInspector()Constructs a newAbstractRelevancyQueryInspector.
-
-
Method Details
-
getSubjectIdTerms
Gets the subjectIdterms.- Specified by:
getSubjectIdTermsin interfaceOsidObjectQueryInspector- Specified by:
getSubjectIdTermsin interfaceRelevancyQueryInspector- Overrides:
getSubjectIdTermsin classAbstractOsidObjectQueryInspector- Returns:
- the subject
Idterms
-
getSubjectTerms
Gets the subject terms.- Specified by:
getSubjectTermsin interfaceOsidObjectQueryInspector- Specified by:
getSubjectTermsin interfaceRelevancyQueryInspector- Overrides:
getSubjectTermsin classAbstractOsidObjectQueryInspector- Returns:
- the subject terms
-
getMappedIdTerms
Gets the mappedIdterms.- Specified by:
getMappedIdTermsin interfaceRelevancyQueryInspector- Returns:
- the mapped
Idterms
-
getOntologyIdTerms
Gets the ontologyIdterms.- Specified by:
getOntologyIdTermsin interfaceRelevancyQueryInspector- Returns:
- the ontology
Idterms
-
getOntologyTerms
Gets the ontology terms.- Specified by:
getOntologyTermsin interfaceRelevancyQueryInspector- Returns:
- the ontology terms
-
getRelevancyQueryInspectorRecord
@OSID public RelevancyQueryInspectorRecord getRelevancyQueryInspectorRecord(Type relevancyRecordType) throws OperationFailedException Gets the record corresponding to the given relevancy query inspector recordType.This method must be used to retrieve a relevancy implementing the requested record.- Specified by:
getRelevancyQueryInspectorRecordin interfaceRelevancyQueryInspector- Parameters:
relevancyRecordType- a relevancy record type- Returns:
- the relevancy query inspsector record
- Throws:
NullArgumentException-relevancyRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(relevancyRecordType)isfalse
-
addRelevancyQueryInspectorRecord
protected void addRelevancyQueryInspectorRecord(RelevancyQueryInspectorRecord relevancyQueryInspectorRecord, Type relevancyRecordType) Adds a record to this relevancy query.- Parameters:
relevancyQueryInspectorRecord- relevancy query inspector recordrelevancyRecordType- relevancy record type- Throws:
NullArgumentException-recordisnull
-