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