public interface AssessmentPartList extends OsidList
Like all OsidLists, AssessmentPartList
provides a means for accessing AssessmentPart elements
sequentially either one at a time or many at a time. Examples:
while (apl.hasNext()) {
AssessmentPart assessmentPart = apl.getNextAssessmentPart();
}
or
while (apl.hasNext()) {
AssessmentPart[] assessmentParts = apl.hetNextAssessmentParts(apl.available());
}
| Modifier and Type | Method and Description |
|---|---|
AssessmentPart |
getNextAssessmentPart()
Gets the next
AssessmentPart in this list. |
AssessmentPart[] |
getNextAssessmentParts(long n)
Gets the next set of
AssessmentPart elements in this
list which must be less than or equal to the number returned from
available(). |
AssessmentPart getNextAssessmentPart() throws OperationFailedException
AssessmentPart in this list. AssessmentPart in this list. The
hasNext() method should be used to test that a
next AssessmentPart is available before calling
this method.IllegalStateException - no more elements available in
this listOperationFailedException - unable to complete requestmandatory - This method must be implemented. AssessmentPart[] getNextAssessmentParts(long n) throws OperationFailedException
AssessmentPart elements in this
list which must be less than or equal to the number returned from
available(). n - the number of AssessmentPart elements
requested which should be less than or equal to
available() AssessmentPart elements.
The length of the array is less than or equal to the
number specified.IllegalStateException - no more elements available in
this listOperationFailedException - unable to complete requestmandatory - This method must be implemented.