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