| Interface | osid.subscription.PublisherList | ||
|---|---|---|---|
| Implements | osid.OsidList | ||
| Description |
Like all
while (pl.hasNext()) {
Publisher publisher = pl.getNextPublisher();
}
or
while (pl.hasNext()) {
Publisher[] publishers = pl.getNextPublishers(pl.available());
}
| ||
| Method | getNextPublisher | ||
| Description |
Gets the next | ||
| Return | osid.subscription.Publisher | the next Publisher in this list. The hasNext()
method should be used to test that a next Publisher 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 | getNextPublishers | ||
| Description |
Gets the next set of | ||
| Parameters | cardinal | n | the number of Publisher elements requested which must be
less than or equal to available() |
| Return | osid.subscription.Publisher[] | an array of Publisher 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. | |