| Interface | osid.commenting.BookList | ||
|---|---|---|---|
| Implements | osid.OsidList | ||
| Used By | osid.commenting.BookHierarchySession | ||
osid.commenting.BookLookupSession | |||
osid.commenting.BookQuerySession | |||
osid.commenting.BookSearchResults | |||
osid.commenting.CommentBookSession | |||
| Description |
Like all while (bl.hasNext()) {
Book book = bl.getNextBook();
}
or
while (bl.hasNext()) {
Book[] books = bl.getNextBooks(bl.available());
}
| ||
| Method | getNextBook | ||
| Description |
Gets the next | ||
| Return | osid.commenting.Book | the next Book in this list. The hasNext() method
should be used to test that a next Book is available before
calling this method. | |
| Errors | ILLEGAL_STATE | no more elements available in this list | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getNextBooks | ||
| Description |
Gets the next set of | ||
| Parameters | cardinal | n | the number of Book elements requested which must be less than
or equal to available() |
| Return | osid.commenting.Book[] | an array of Book elements. The length of the array is less
than or equal to the number specified. | |
| Errors | ILLEGAL_STATE | no more elements available in this list | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |