public interface AssessmentPartQuery extends OsidObjectQuery, OsidContainableQuery, OsidOperableQuery
This is the query for searching assessment parts. Each method match
request produces an AND
term while multiple invocations of
a method produces a nested OR.
Modifier and Type | Method and Description |
---|---|
void |
clearAllocatedTimeTerms()
Clears all allocated time terms.
|
void |
clearAssessmentIdTerms()
Clears all assessment
Id terms. |
void |
clearAssessmentTerms()
Clears all assessment terms.
|
void |
clearBankIdTerms()
Clears the bank
Id query terms. |
void |
clearBankTerms()
Clears the bank query terms.
|
void |
clearChildAssessmentPartIdTerms()
Clears all assessment part
Id terms. |
void |
clearChildAssessmentPartTerms()
Clears all assessment part terms.
|
void |
clearParentAssessmentPartIdTerms()
Clears all assessment part
Id terms. |
void |
clearParentAssessmentPartTerms()
Clears all assessment part terms.
|
void |
clearSectionTerms()
Clears all section terms.
|
void |
clearWeightTerms()
Clears all weight terms.
|
AssessmentPartQueryRecord |
getAssessmentPartQueryRecord(Type assessmentPartRecordType)
Gets the assessment part query record corresponding to the given
AssessmentPart record Type. |
AssessmentQuery |
getAssessmentQuery()
Gets the query for an assessment.
|
BankQuery |
getBankQuery()
Gets the query for a bank.
|
AssessmentPartQuery |
getChildAssessmentPartQuery()
Gets the query for an assessment part.
|
AssessmentPartQuery |
getParentAssessmentPartQuery()
Gets the query for an assessment part.
|
void |
matchAllocatedTime(Duration low,
Duration high,
boolean match)
Matches assessment parts hose allocated time falls in between the
given times inclusive.
|
void |
matchAnyAllocatedTime(boolean match)
Matches assessment parts with any time assigned.
|
void |
matchAnyChildAssessmentPart(boolean match)
Matches assessment parts with any child assessment part.
|
void |
matchAnyParentAssessmentPart(boolean match)
Matches assessment parts with any parent assessment part.
|
void |
matchAnyWeight(boolean match)
Matches assessment parts with any weight assigned.
|
void |
matchAssessmentId(Id assessmentId,
boolean match)
Sets the assessment
Id for this query. |
void |
matchBankId(Id bankId,
boolean match)
Matches constrainers mapped to the bank.
|
void |
matchChildAssessmentPartId(Id assessmentPartId,
boolean match)
Sets the assessment part
Id for this query. |
void |
matchParentAssessmentPartId(Id assessmentPartId,
boolean match)
Sets the assessment part
Id for this query. |
void |
matchSection(boolean match)
Matches assessment parts that are also used as sections.
|
void |
matchWeight(long low,
long high,
boolean match)
Matches assessment parts that fall in between the given weights
inclusive.
|
boolean |
supportsAssessmentQuery()
Tests if an
AssessmentQuery is available. |
boolean |
supportsBankQuery()
Tests if an
BankQuery is available. |
boolean |
supportsChildAssessmentPartQuery()
Tests if an
AssessmentPartQuery is available. |
boolean |
supportsParentAssessmentPartQuery()
Tests if an
AssessmentPartQuery is available. |
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, supportsSubjectRelevancyQuery
clearIdTerms, matchId
clearRecordTerms, matchAnyRecord, matchRecordType
getRecordTypes, hasRecordType
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchType
clearSequesteredTerms, matchSequestered
clearActiveTerms, clearDisabledTerms, clearEnabledTerms, clearOperationalTerms, matchActive, matchDisabled, matchEnabled, matchOperational
void matchAssessmentId(Id assessmentId, boolean match)
Id
for this query.assessmentId
- an assessment Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- assessmentId
is
null
mandatory
- This method must be implemented. void clearAssessmentIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsAssessmentQuery()
AssessmentQuery
is available. true
if an assessment query is available,
false
otherwisemandatory
- This method must be implemented. AssessmentQuery getAssessmentQuery()
OR
term.UnimplementedException
-
supportsAssessmentQuery()
is false
optional
- This method must be implemented if
supportsAssessmentQuery()
is true.
void clearAssessmentTerms()
mandatory
- This method must be implemented. void matchParentAssessmentPartId(Id assessmentPartId, boolean match)
Id
for this query.assessmentPartId
- an assessment part Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- assessmentPartId
is null
mandatory
- This method must be implemented. void clearParentAssessmentPartIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsParentAssessmentPartQuery()
AssessmentPartQuery
is available. true
if an assessment part query is available,
false
otherwisemandatory
- This method must be implemented. AssessmentPartQuery getParentAssessmentPartQuery()
OR
term.UnimplementedException
-
supportsParentAssessmentPartQuery()
is false
optional
- This method must be implemented if
supportsParentAssessmentPartQuery()
is
true.
void matchAnyParentAssessmentPart(boolean match)
match
- true
to match assessment parts with any
parent, false
to match assessment parts with no
parentsmandatory
- This method must be implemented. void clearParentAssessmentPartTerms()
mandatory
- This method must be implemented. void matchSection(boolean match)
match
- true
for a positive match, false
for a negative matchmandatory
- This method must be implemented. void clearSectionTerms()
mandatory
- This method must be implemented. void matchWeight(long low, long high, boolean match)
low
- low end of rangehigh
- high end of rangematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- high
is less
than low
mandatory
- This method must be implemented. void matchAnyWeight(boolean match)
match
- true
to match assessment parts with any
wieght, false
to match assessment parts with no
weightmandatory
- This method must be implemented. void clearWeightTerms()
mandatory
- This method must be implemented. void matchAllocatedTime(Duration low, Duration high, boolean match)
low
- low end of rangehigh
- high end of rangematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- high
is less
than low
mandatory
- This method must be implemented. void matchAnyAllocatedTime(boolean match)
match
- true
to match assessment parts with any
alloocated time, false
to match assessment
parts with no allocated timemandatory
- This method must be implemented. void clearAllocatedTimeTerms()
mandatory
- This method must be implemented. void matchChildAssessmentPartId(Id assessmentPartId, boolean match)
Id
for this query.assessmentPartId
- an assessment part Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- assessmentPartId
is null
mandatory
- This method must be implemented. void clearChildAssessmentPartIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsChildAssessmentPartQuery()
AssessmentPartQuery
is available. true
if an assessment part query is available,
false
otherwisemandatory
- This method must be implemented. AssessmentPartQuery getChildAssessmentPartQuery()
OR
term.UnimplementedException
-
supportsChildAssessmentPartQuery()
is false
optional
- This method must be implemented if
supportsChildAssessmentPartQuery()
is true.
void matchAnyChildAssessmentPart(boolean match)
match
- true
to match assessment parts with any
children, false
to match assessment parts with
no childrenmandatory
- This method must be implemented. void clearChildAssessmentPartTerms()
mandatory
- This method must be implemented. void matchBankId(Id bankId, boolean match)
bankId
- the bank Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- bankId
is
null
mandatory
- This method must be implemented. void clearBankIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsBankQuery()
BankQuery
is available. true
if a bank query is available, false
otherwisemandatory
- This method must be implemented. BankQuery getBankQuery()
OR
term.UnimplementedException
- supportsBankQuery()
is false
optional
- This method must be implemented if
supportsBankQuery()
is true.
void clearBankTerms()
mandatory
- This method must be implemented. AssessmentPartQueryRecord getAssessmentPartQueryRecord(Type assessmentPartRecordType) throws OperationFailedException
AssessmentPart
record Type.
Multiple
retrievals produce a nested OR
term.assessmentPartRecordType
- an assessment part record typeNullArgumentException
- assessmentPartRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(assessmentPartRecordType)
is
false
mandatory
- This method must be implemented.