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