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