Class AbstractRelationshipQueryInspector
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.relationship.relationship.spi.AbstractRelationshipQueryInspector
- All Implemented Interfaces:
Extensible, OsidBrowsableQueryInspector, OsidExtensibleQueryInspector, OsidIdentifiableQueryInspector, OsidObjectQueryInspector, OsidQueryInspector, OsidRelationshipQueryInspector, OsidTemporalQueryInspector, RelationshipQueryInspector
- Direct Known Subclasses:
RelationshipQueryUninspector
public abstract class AbstractRelationshipQueryInspector
extends AbstractOsidRelationshipQueryInspector
implements RelationshipQueryInspector
A query inspector template for relationships.
-
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 newAbstractRelationshipQueryInspector. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddRelationshipQueryInspectorRecord(RelationshipQueryInspectorRecord relationshipQueryInspectorRecord, Type relationshipRecordType) Adds a record to this relationship query.IdTerm[]Gets the other peerIdterms.IdTerm[]Gets the familyIdterms.Gets the family terms.getRelationshipQueryInspectorRecord(Type relationshipRecordType) Gets the record corresponding to the given relationship query inspector recordType.Gets the same peer terms.IdTerm[]Gets the peerIdterms.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, getSubjectIdTerms, getSubjectRelevancyTerms, getSubjectTerms, 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.IdTerm[]Gets the subjectIdquery terms.Gets the relevancy query terms.Gets the subject 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
-
AbstractRelationshipQueryInspector
public AbstractRelationshipQueryInspector()Constructs a newAbstractRelationshipQueryInspector.
-
-
Method Details
-
getSourceIdTerms
Gets the peerIdterms.- Specified by:
getSourceIdTermsin interfaceRelationshipQueryInspector- Returns:
- the peer
Idterms
-
getDestinationIdTerms
Gets the other peerIdterms.- Specified by:
getDestinationIdTermsin interfaceRelationshipQueryInspector- Returns:
- the other peer
Idterms
-
getSamePeerIdTerms
Gets the same peer terms.- Specified by:
getSamePeerIdTermsin interfaceRelationshipQueryInspector- Returns:
- the same peer terms
-
getFamilyIdTerms
Gets the familyIdterms.- Specified by:
getFamilyIdTermsin interfaceRelationshipQueryInspector- Returns:
- the family
Idterms
-
getFamilyTerms
Gets the family terms.- Specified by:
getFamilyTermsin interfaceRelationshipQueryInspector- Returns:
- the family terms
-
getRelationshipQueryInspectorRecord
@OSID public RelationshipQueryInspectorRecord getRelationshipQueryInspectorRecord(Type relationshipRecordType) throws OperationFailedException Gets the record corresponding to the given relationship query inspector recordType.This method must be used to retrieve a relationship implementing the requested record.- Specified by:
getRelationshipQueryInspectorRecordin interfaceRelationshipQueryInspector- Parameters:
relationshipRecordType- a relationship record type- Returns:
- the relationship query inspsector record
- Throws:
NullArgumentException-relationshipRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(relationshipRecordType)isfalse
-
addRelationshipQueryInspectorRecord
protected void addRelationshipQueryInspectorRecord(RelationshipQueryInspectorRecord relationshipQueryInspectorRecord, Type relationshipRecordType) Adds a record to this relationship query.- Parameters:
relationshipQueryInspectorRecord- relationship query inspector recordrelationshipRecordType- relationship record type- Throws:
NullArgumentException-recordisnull
-