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