Class AbstractCandidateQueryInspector
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.voting.candidate.spi.AbstractCandidateQueryInspector
- All Implemented Interfaces:
Extensible, OsidBrowsableQueryInspector, OsidExtensibleQueryInspector, OsidIdentifiableQueryInspector, OsidObjectQueryInspector, OsidQueryInspector, OsidRelationshipQueryInspector, OsidTemporalQueryInspector, CandidateQueryInspector
- Direct Known Subclasses:
CandidateQueryUninspector
public abstract class AbstractCandidateQueryInspector
extends AbstractOsidRelationshipQueryInspector
implements CandidateQueryInspector
A query inspector template for candidates.
-
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 newAbstractCandidateQueryInspector. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCandidateQueryInspectorRecord(CandidateQueryInspectorRecord candidateQueryInspectorRecord, Type candidateRecordType) Adds a record to this candidate query.getCandidateQueryInspectorRecord(Type candidateRecordType) Gets the record corresponding to the given candidate query inspector recordType.IdTerm[]Gets the pollsIdquery terms.Gets the polls query terms.IdTerm[]Gets the raceIdquery terms.Gets the race query terms.IdTerm[]Gets the resourceIdquery terms.Gets the resource query terms.IdTerm[]Gets the voteIdquery terms.Gets the vote query 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, 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
-
AbstractCandidateQueryInspector
public AbstractCandidateQueryInspector()Constructs a newAbstractCandidateQueryInspector.
-
-
Method Details
-
getRaceIdTerms
Gets the raceIdquery terms.- Specified by:
getRaceIdTermsin interfaceCandidateQueryInspector- Returns:
- the query terms
-
getRaceTerms
Gets the race query terms.- Specified by:
getRaceTermsin interfaceCandidateQueryInspector- Returns:
- the query terms
-
getResourceIdTerms
Gets the resourceIdquery terms.- Specified by:
getResourceIdTermsin interfaceCandidateQueryInspector- Returns:
- the query terms
-
getResourceTerms
Gets the resource query terms.- Specified by:
getResourceTermsin interfaceCandidateQueryInspector- Returns:
- the query terms
-
getVoteIdTerms
Gets the voteIdquery terms.- Specified by:
getVoteIdTermsin interfaceCandidateQueryInspector- Returns:
- the query terms
-
getVoteTerms
Gets the vote query terms.- Specified by:
getVoteTermsin interfaceCandidateQueryInspector- Returns:
- the query terms
-
getPollsIdTerms
Gets the pollsIdquery terms.- Specified by:
getPollsIdTermsin interfaceCandidateQueryInspector- Returns:
- the query terms
-
getPollsTerms
Gets the polls query terms.- Specified by:
getPollsTermsin interfaceCandidateQueryInspector- Returns:
- the query terms
-
getCandidateQueryInspectorRecord
@OSID public CandidateQueryInspectorRecord getCandidateQueryInspectorRecord(Type candidateRecordType) throws OperationFailedException Gets the record corresponding to the given candidate query inspector recordType.This method must be used to retrieve a candidate implementing the requested record.- Specified by:
getCandidateQueryInspectorRecordin interfaceCandidateQueryInspector- Parameters:
candidateRecordType- a candidate record type- Returns:
- the candidate query inspsector record
- Throws:
NullArgumentException-candidateRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(candidateRecordType)isfalse
-
addCandidateQueryInspectorRecord
protected void addCandidateQueryInspectorRecord(CandidateQueryInspectorRecord candidateQueryInspectorRecord, Type candidateRecordType) Adds a record to this candidate query.- Parameters:
candidateQueryInspectorRecord- candidate query inspector recordcandidateRecordType- candidate record type- Throws:
NullArgumentException-recordisnull
-