Class AbstractResponseQueryInspector
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.inquiry.response.spi.AbstractResponseQueryInspector
- All Implemented Interfaces:
Extensible, ResponseQueryInspector, OsidBrowsableQueryInspector, OsidExtensibleQueryInspector, OsidIdentifiableQueryInspector, OsidObjectQueryInspector, OsidQueryInspector, OsidRelationshipQueryInspector, OsidTemporalQueryInspector
public abstract class AbstractResponseQueryInspector
extends AbstractOsidRelationshipQueryInspector
implements ResponseQueryInspector
A query inspector template for responses.
-
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 newAbstractResponseQueryInspector. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddResponseQueryInspectorRecord(ResponseQueryInspectorRecord responseQueryInspectorRecord, Type responseRecordType) Adds a record to this response query.Gets the affirmative response query terms.IdTerm[]Gets the inquestIdquery terms.Gets the inquest query terms.IdTerm[]Gets the inquiryIdquery terms.Gets the inquiry query terms.IdTerm[]Gets the responder resourceIdquery terms.Gets the responder resource query terms.IdTerm[]Gets the responding agentIdquery terms.Gets the responding agent query terms.getResponseQueryInspectorRecord(Type responseRecordType) Gets the record corresponding to the given response query inspector recordType.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
-
AbstractResponseQueryInspector
public AbstractResponseQueryInspector()Constructs a newAbstractResponseQueryInspector.
-
-
Method Details
-
getInquiryIdTerms
Gets the inquiryIdquery terms.- Specified by:
getInquiryIdTermsin interfaceResponseQueryInspector- Returns:
- the query terms
-
getInquiryTerms
Gets the inquiry query terms.- Specified by:
getInquiryTermsin interfaceResponseQueryInspector- Returns:
- the query terms
-
getResponderIdTerms
Gets the responder resourceIdquery terms.- Specified by:
getResponderIdTermsin interfaceResponseQueryInspector- Returns:
- the query terms
-
getResponderTerms
Gets the responder resource query terms.- Specified by:
getResponderTermsin interfaceResponseQueryInspector- Returns:
- the query terms
-
getRespondingAgentIdTerms
Gets the responding agentIdquery terms.- Specified by:
getRespondingAgentIdTermsin interfaceResponseQueryInspector- Returns:
- the query terms
-
getRespondingAgentTerms
Gets the responding agent query terms.- Specified by:
getRespondingAgentTermsin interfaceResponseQueryInspector- Returns:
- the query terms
-
getAffirmativeTerms
Gets the affirmative response query terms.- Specified by:
getAffirmativeTermsin interfaceResponseQueryInspector- Returns:
- the query terms
-
getInquestIdTerms
Gets the inquestIdquery terms.- Specified by:
getInquestIdTermsin interfaceResponseQueryInspector- Returns:
- the query terms
-
getInquestTerms
Gets the inquest query terms.- Specified by:
getInquestTermsin interfaceResponseQueryInspector- Returns:
- the query terms
-
getResponseQueryInspectorRecord
@OSID public ResponseQueryInspectorRecord getResponseQueryInspectorRecord(Type responseRecordType) throws OperationFailedException Gets the record corresponding to the given response query inspector recordType.This method must be used to retrieve a response implementing the requested record.- Specified by:
getResponseQueryInspectorRecordin interfaceResponseQueryInspector- Parameters:
responseRecordType- a response record type- Returns:
- the response query inspsector record
- Throws:
NullArgumentException-responseRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(responseRecordType)isfalse
-
addResponseQueryInspectorRecord
protected void addResponseQueryInspectorRecord(ResponseQueryInspectorRecord responseQueryInspectorRecord, Type responseRecordType) Adds a record to this response query.- Parameters:
responseQueryInspectorRecord- response query inspector recordresponseRecordType- response record type- Throws:
NullArgumentException-recordisnull
-