Interface AssessmentQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, Suppliable
This is the query for searching assessments. Each method match request
produces an AND term while multiple invocations of a method
produces a nested OR .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears all assessment offeredIdterms.voidClears all assessment offered terms.voidClears all assessment takenIdterms.voidClears all assessment taken terms.voidClears all bankIdterms.voidClears all bank terms.voidClears all itemIdterms.voidClears all item terms.voidClears all levelIdterms.voidClears all level terms.voidClears all rubric assessmentIdterms.voidClears all rubric assessment terms.Gets the query for an assessment offered.getAssessmentQueryRecord(Type assessmentRecordType) Gets the assessment query record corresponding to the givenAssessmentrecordType.Gets the query for an assessment taken.Gets the query for a bank.Gets the query for an item.Gets the query for a grade.Gets the query for a rubric assessment.voidmatchAnyAssessmentOffered(boolean match) Matches an assessment that has any offering.voidmatchAnyAssessmentTaken(boolean match) Matches an assessment that has any taken version.voidmatchAnyItem(boolean match) Matches an assessment that has any item.voidmatchAnyLevel(boolean match) Matches an assessment that has any level assigned.voidmatchAnyRubric(boolean match) Matches an assessment that has any rubric assessment assigned.voidmatchAssessmentOfferedId(Id assessmentOfferedId, boolean match) Sets the assessment offeredIdfor this query.voidmatchAssessmentTakenId(Id assessmentTakenId, boolean match) Sets the assessment takenIdfor this query.voidmatchBankId(Id bankId, boolean match) Sets the bankIdfor this query.voidmatchItemId(Id itemId, boolean match) Sets the itemIdfor this query.voidmatchLevelId(Id gradeId, boolean match) Sets the level gradeIdfor this query.voidmatchRubricId(Id assessmentId, boolean match) Sets the rubric assessmentIdfor this query.booleanTests if anAssessmentOfferedQueryis available.booleanTests if anAssessmentTakenQueryis available.booleanTests if aBankQueryis available.booleanTests if anItemQueryis available.booleanTests if aGradeQueryis available.booleanTests if anAssessmentQueryis available.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface OsidExtensibleQuery
clearRecordTerms, matchAnyRecord, matchRecordTypeModifier and TypeMethodDescriptionvoidClears all recordTypeterms.voidmatchAnyRecord(boolean match) Matches an object that has any record.voidmatchRecordType(Type recordType, boolean match) Sets aTypefor querying objects having records implementing a given record type.Methods inherited from interface OsidIdentifiableQuery
clearIdTerms, matchIdModifier and TypeMethodDescriptionvoidClears allIdterms.voidAdds anIdto match.Methods inherited from interface OsidObjectQuery
clearCommentIdTerms, clearCommentTerms, clearCreditIdTerms, clearCreditTerms, clearDescriptionTerms, clearDisplayNameTerms, clearGenusTypeTerms, clearJournalEntryIdTerms, clearJournalEntryTerms, clearParentGenusTypeTerms, clearRelationshipIdTerms, clearRelationshipPeerIdTerms, clearRelationshipTerms, clearStateIdTerms, clearStateTerms, clearStatisticTerms, clearSubjectIdTerms, clearSubjectRelevancyTerms, clearSubjectTerms, getCommentQuery, getCreditQuery, getJournalEntryQuery, getRelationshipQuery, getStateQuery, getStatisticQuery, getSubjectQuery, getSubjectRelevancyQuery, matchAnyComment, matchAnyCredit, matchAnyDescription, matchAnyDisplayName, matchAnyGenusType, matchAnyJournalEntry, matchAnyRelationship, matchAnyState, matchAnyStatistic, matchAnySubject, matchCommentId, matchCreditId, matchDescription, matchDisplayName, matchGenusType, matchJournalEntryId, matchParentGenusType, matchRelationshipId, matchRelationshipPeerId, matchStateId, matchSubjectId, supportsCommentQuery, supportsCreditQuery, supportsJournalEntryQuery, supportsRelationshipQuery, supportsStateQuery, supportsStatisticQuery, supportsSubjectQuery, supportsSubjectRelevancyQueryModifier and TypeMethodDescriptionvoidClears all commentIdterms.voidClears all comment terms.voidClears all creditIdterms.voidClears all credit terms.voidClears all description terms.voidClears all display name terms.voidClears all genus type terms.voidClears all journal entryIdterms.voidClears all journal entry terms.voidClears all genus type terms.voidClears all relationshipIdterms.voidClears all relationshipIdterms.voidClears all relationship terms.voidClears all stateIdterms.voidClears all state terms.voidClears all statistic terms.voidClears all subjectIdterms.voidClears all subject relevancy terms.voidClears all subject terms.Gets the query for a comment.Gets the query for an ackowledgement credit.Gets the query for a journal entry.Gets the query for relationship.Gets the query for a state.Gets the query for a statistic.Gets the query for a subject.Gets the query for a subject relevancy.voidmatchAnyComment(boolean match) Matches an object that has anyCommentin the givenBook.voidmatchAnyCredit(boolean match) Matches an object that has anyCredit.voidmatchAnyDescription(boolean match) Matches a description that has any value.voidmatchAnyDisplayName(boolean match) Matches any object with a display name.voidmatchAnyGenusType(boolean match) Matches an object that has any genus type.voidmatchAnyJournalEntry(boolean match) Matches an object that has anyJournalEntryin the givenJournal.voidmatchAnyRelationship(boolean match) Matches an object that has anyRelationship.voidmatchAnyState(boolean match) Matches an object that has any mapping to aStatein the givenProcess.voidmatchAnyStatistic(boolean match) Matches an object that has anyStatistic.voidmatchAnySubject(boolean match) Matches an object that has any relationship to aSubject.voidmatchCommentId(Id commentId, boolean match) Matches an object that has the given comment.voidmatchCreditId(Id creditId, boolean match) Matches an object that has the given credit.voidmatchDescription(String description, Type stringMatchType, boolean match) Adds a description name to match.voidmatchDisplayName(String displayName, Type stringMatchType, boolean match) Adds a display name to match.voidmatchGenusType(Type genusType, boolean match) Sets aTypefor querying objects of a given genus.voidmatchJournalEntryId(Id journalEntryId, boolean match) Matches an object that has the given journal entry.voidmatchParentGenusType(Type genusType, boolean match) Sets aTypefor querying objects of a given genus.voidmatchRelationshipId(Id relationshipId, boolean match) Matches an object that has the given relationship.voidmatchRelationshipPeerId(Id peerId, boolean match) Matches an object that has a relationship to the given peerId.voidmatchStateId(Id stateId, boolean match) Matches an object mapped to the given state.voidmatchSubjectId(Id subjectId, boolean match) Matches an object with a relationship to the given subject.booleanTests if aCommentQueryis available.booleanTests if aCreditQueryis available to provide queries of related acknowledgements.booleanTests if aJournalEntryis available to provide queries of journaledOsidObjects.booleanTests if aRelationshipQueryis available.booleanTests if aStateQueryis available to provide queries of processed objects.booleanTests if aStatisticQueryis available to provide statistical queries.booleanTests if aSubjectQueryis available.booleanTests if aRelevancyQueryis available to provide queries about the relationships toSubjects.Methods inherited from interface OsidQuery
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypeModifier and TypeMethodDescriptionvoidClears the match any terms.voidClears all keyword terms.Gets the string matching types supported.voidmatchAny(boolean match) Matches any object.voidmatchKeyword(String keyword, Type stringMatchType, boolean match) Adds a keyword to match.booleansupportsStringMatchType(Type stringMatchType) Tests if the given string matching type is supported.
-
Method Details
-
matchLevelId
Sets the level gradeIdfor this query.- Parameters:
gradeId- a gradeIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-gradeIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearLevelIdTerms
void clearLevelIdTerms()Clears all levelIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsLevelQuery
boolean supportsLevelQuery()Tests if aGradeQueryis available.- Returns:
trueif a grade query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getLevelQuery
GradeQuery getLevelQuery()Gets the query for a grade. Multiple retrievals produce a nestedORterm.- Returns:
- the grade query
- Throws:
UnimplementedException-supportsLevelQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLevelQuery()} is {@code true} .
-
matchAnyLevel
void matchAnyLevel(boolean match) Matches an assessment that has any level assigned.- Parameters:
match-trueto match assessments with any level,falseto match assessments with no level- Compliance:
mandatory- This method must be implemented.
-
clearLevelTerms
void clearLevelTerms()Clears all level terms.- Compliance:
mandatory- This method must be implemented.
-
matchRubricId
Sets the rubric assessmentIdfor this query.- Parameters:
assessmentId- an assessmentIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-assessmentIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearRubricIdTerms
void clearRubricIdTerms()Clears all rubric assessmentIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsRubricQuery
boolean supportsRubricQuery()Tests if anAssessmentQueryis available.- Returns:
trueif a rubric assessment query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getRubricQuery
AssessmentQuery getRubricQuery()Gets the query for a rubric assessment. Multiple retrievals produce a nestedORterm.- Returns:
- the assessment query
- Throws:
UnimplementedException-supportsRubricQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRubricQuery()} is {@code true} .
-
matchAnyRubric
void matchAnyRubric(boolean match) Matches an assessment that has any rubric assessment assigned.- Parameters:
match-trueto match assessments with any rubric,falseto match assessments with no rubric- Compliance:
mandatory- This method must be implemented.
-
clearRubricTerms
void clearRubricTerms()Clears all rubric assessment terms.- Compliance:
mandatory- This method must be implemented.
-
matchItemId
Sets the itemIdfor this query.- Parameters:
itemId- an itemIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-itemIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearItemIdTerms
void clearItemIdTerms()Clears all itemIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsItemQuery
boolean supportsItemQuery()Tests if anItemQueryis available.- Returns:
trueif an item query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getItemQuery
ItemQuery getItemQuery()Gets the query for an item. Multiple retrievals produce a nestedORterm.- Returns:
- the item query
- Throws:
UnimplementedException-supportsItemQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsItemQuery()} is {@code true} .
-
matchAnyItem
void matchAnyItem(boolean match) Matches an assessment that has any item.- Parameters:
match-trueto match assessments with any item,falseto match assessments with no items- Compliance:
mandatory- This method must be implemented.
-
clearItemTerms
void clearItemTerms()Clears all item terms.- Compliance:
mandatory- This method must be implemented.
-
matchAssessmentOfferedId
Sets the assessment offeredIdfor this query.- Parameters:
assessmentOfferedId- an assessment offeredIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-assessmentOfferedIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearAssessmentOfferedIdTerms
void clearAssessmentOfferedIdTerms()Clears all assessment offeredIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsAssessmentOfferedQuery
boolean supportsAssessmentOfferedQuery()Tests if anAssessmentOfferedQueryis available.- Returns:
trueif an assessment offered query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getAssessmentOfferedQuery
AssessmentOfferedQuery getAssessmentOfferedQuery()Gets the query for an assessment offered. Multiple retrievals produce a nestedORterm.- Returns:
- the assessment offered query
- Throws:
UnimplementedException-supportsAssessmentOfferedQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAssessmentOfferedQuery()} is {@code true} .
-
matchAnyAssessmentOffered
void matchAnyAssessmentOffered(boolean match) Matches an assessment that has any offering.- Parameters:
match-trueto match assessments with any offering,falseto match assessments with no offerings- Compliance:
mandatory- This method must be implemented.
-
clearAssessmentOfferedTerms
void clearAssessmentOfferedTerms()Clears all assessment offered terms.- Compliance:
mandatory- This method must be implemented.
-
matchAssessmentTakenId
Sets the assessment takenIdfor this query.- Parameters:
assessmentTakenId- an assessment takenIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-assessmentTakenIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearAssessmentTakenIdTerms
void clearAssessmentTakenIdTerms()Clears all assessment takenIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsAssessmentTakenQuery
boolean supportsAssessmentTakenQuery()Tests if anAssessmentTakenQueryis available.- Returns:
trueif an assessment taken query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getAssessmentTakenQuery
AssessmentTakenQuery getAssessmentTakenQuery()Gets the query for an assessment taken. Multiple retrievals produce a nestedORterm.- Returns:
- the assessment taken query
- Throws:
UnimplementedException-supportsAssessmentTakenQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAssessmentTakenQuery()} is {@code true} .
-
matchAnyAssessmentTaken
void matchAnyAssessmentTaken(boolean match) Matches an assessment that has any taken version.- Parameters:
match-trueto match assessments with any taken assessments,falseto match assessments with no taken assessments- Compliance:
mandatory- This method must be implemented.
-
clearAssessmentTakenTerms
void clearAssessmentTakenTerms()Clears all assessment taken terms.- Compliance:
mandatory- This method must be implemented.
-
matchBankId
Sets the bankIdfor this query.- Parameters:
bankId- a bankIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-bankIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearBankIdTerms
void clearBankIdTerms()Clears all bankIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsBankQuery
boolean supportsBankQuery()Tests if aBankQueryis available.- Returns:
trueif a bank query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getBankQuery
BankQuery getBankQuery()Gets the query for a bank. Multiple retrievals produce a nestedORterm.- Returns:
- the bank query
- Throws:
UnimplementedException-supportsBankQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsBankQuery()} is {@code true} .
-
clearBankTerms
void clearBankTerms()Clears all bank terms.- Compliance:
mandatory- This method must be implemented.
-
getAssessmentQueryRecord
AssessmentQueryRecord getAssessmentQueryRecord(Type assessmentRecordType) throws OperationFailedException Gets the assessment query record corresponding to the givenAssessmentrecordType. Multiple retrievals produce a nestedORterm.- Parameters:
assessmentRecordType- an assessment record type- Returns:
- the assessment query record
- Throws:
NullArgumentException-assessmentRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(assessmentRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-