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