public interface CourseRequirementList extends OsidList
Like all OsidLists, CourseRequirementList
provides a means for accessing CourseRequirement elements
sequentially either one at a time or many at a time. Examples:
while (crl.hasNext()) {
CourseRequirement req = crl.getNextCourseRequirement();
}
or
while (crl.hasNext()) {
CourseRequirement[] reqs = crl.getNextCourseRequirements(crl.available());
}
| Modifier and Type | Method and Description |
|---|---|
CourseRequirement |
getNextCourseRequirement()
Gets the next
CourseRequirement in this list. |
CourseRequirement[] |
getNextCourseRequirements(long n)
Gets the next set of
CourseRequirement elements in this
list. |
CourseRequirement getNextCourseRequirement() throws OperationFailedException
CourseRequirement in this list. CourseRequirement in this list. The
hasNext() method should be used to test that a
next CourseRequirement is available before
calling this method.IllegalStateException - no more elements available in
this listOperationFailedException - unable to complete requestmandatory - This method must be implemented. CourseRequirement[] getNextCourseRequirements(long n) throws OperationFailedException
CourseRequirement elements in this
list. The specified amount must be less than or equal to the return
from available(). n - the number of CourseRequirement elements
requested which must be less than or equal to
available() CourseRequirement 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.