Interface QualifierList
- All Superinterfaces:
AutoCloseable, Closeable, OsidList, 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());
}
-
Method Summary
Modifier and TypeMethodDescriptionGets the nextQualifierin this list.getNextQualifiers(long n) Gets the next set ofQualifierelements in this list which must be less than or equal to the number returned fromavailable().
-
Method Details
-
getNextQualifier
Gets the nextQualifierin this list.- Returns:
- the next
Qualifierin this list. ThehasNext()method should be used to test that a nextQualifieris available before calling this method. - Throws:
IllegalStateException- no more elements available in this listOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getNextQualifiers
Gets the next set ofQualifierelements in this list which must be less than or equal to the number returned fromavailable().- Parameters:
n- the number ofQualifierelements requested which should be less than or equal toavailable()- Returns:
- an array of
Qualifierelements. The length of the array is less than or equal to the number specified. - Throws:
IllegalStateException- no more elements available in this listOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-