| Interface | osid.checklist.TodoList | ||
|---|---|---|---|
| Implements | osid.OsidList | ||
| Used By | osid.checklist.Todo | ||
osid.checklist.TodoChecklistSession | |||
osid.checklist.TodoHierarchySession | |||
osid.checklist.TodoLookupSession | |||
osid.checklist.TodoQuerySession | |||
osid.checklist.TodoSearchResults | |||
| Description |
Like all while (tl.hasNext()) {
Todo todo =tcl.getNextTodo();
}
or
while (tl.hasNext()) {
Todo[] todos = tl.getNextTodos(tl.available());
}
| ||
| Method | getNextTodo | ||
| Description |
Gets the next | ||
| Return | osid.checklist.Todo | the next Todo in this list. The hasNext() method
should be used to test that a next Todo 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 | getNextTodos | ||
| Description |
Gets the next set of | ||
| Parameters | cardinal | n | the number of Todo elements requested which must be less than
or equal to available() |
| Return | osid.checklist.Todo[] | an array of Todo 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. | |