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