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