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