Interface OrganizationNodeList
- All Superinterfaces:
AutoCloseable, Closeable, OsidList, OsidList
Like all OsidLists , OrganizationNodeList provides a
means for accessing OrganizationNode elements sequentially either
one at a time or many at a time. Examples:
while (onl.hasNext()) {
OrganizationNode node = onl.getNextOrganizationNode();
}
or
while (onl.hasNext()) {
OrganizationNode[] nodes = onl.getNextOrganizationNodes(onl.available());
}
-
Method Summary
Modifier and TypeMethodDescriptionGets the nextOrganizationNodein this list.getNextOrganizationNodes(long n) Gets the next set ofOrganizationNodeelements in this list which must be less than or equal to the number returned fromavailable().
-
Method Details
-
getNextOrganizationNode
Gets the nextOrganizationNodein this list.- Returns:
- the next
OrganizationNodein this list. ThehasNext()method should be used to test that a nextOrganizationNodeis available before calling this method. - Throws:
IllegalStateException- no more elements available in this listOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getNextOrganizationNodes
Gets the next set ofOrganizationNodeelements in this list which must be less than or equal to the number returned fromavailable().- Parameters:
n- the number ofOrganizationNodeelements requested which should be less than or equal toavailable()- Returns:
- an array of
OrganizationNodeelements. The length of the array is less than or equal to the number specified. - Throws:
IllegalStateException- no more elements available in this listOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-