Interface | osid.hierarchy.NodeList | ||
---|---|---|---|
Implements | osid.OsidList | ||
Description |
Like all while (nl.hasNext()) { Node node = nl.getNextNode(); }or while (nl.hasNext()) { Node[] nodes = nl.getNextNodes(nl.available()); } | ||
Method | getNextNode | ||
Description |
Gets the next | ||
Return | osid.hierarchy.Node | the next Node in this list. The hasNext()
method should be used to test that a next Node 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 | getNextNodes | ||
Description |
Gets the next set of | ||
Parameters | cardinal | n | the number of Node elements requested which must be less
than or equal to available() |
Return | osid.hierarchy.Node[] | an array of Node 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. |