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.
Like all OsidQueries, AssessmentQuery is stateful and
must not be accessed by multiple processing threads.
-
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, hasRecordTypeMethods inherited from interface OsidExtensibleQuery
clearRecordTerms, matchAnyRecord, matchRecordTypeMethods inherited from interface OsidIdentifiableQuery
clearIdTerms, matchIdMethods 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, supportsSubjectRelevancyQueryMethods inherited from interface OsidQuery
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchType
-
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.
-