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