| Interface | osid.personnel.OrganizationList | ||
|---|---|---|---|
| Implements | osid.OsidList | ||
| Description |
Like all
while (ol.hasNext()) {
Organization organization = ol.getNextOrganization();
}
or
while (ol.hasNext()) {
Organization[] organizations = ol.getNextOrganizations(ol.available());
}
| ||
| Method | getNextOrganization | ||
| Description |
Gets the next | ||
| Return | osid.personnel.Organization | the next Organization in this list. The hasNext()
method should be used to test that a next Organization
is available before calling this method. | |
| Errors | ILLEGAL_STATE | no more elements available in this list | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getNextOrganizations | ||
| Description |
Gets the next set of | ||
| Parameters | cardinal | n | the number of Organization elements requested which must be
less than or equal to available() |
| Return | osid.personnel.Organization[] | an array of Organization elements. The length
of the array is less than or equal to the number specified. | |
| Errors | ILLEGAL_STATE | no more elements available in this list | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |