Interface PropertyList
- All Superinterfaces:
AutoCloseable, Closeable, OsidList, OsidList
Like all OsidLists , PropertyList provides a means for
accessing Property elements sequentially either one at a time or
many at a time. Examples:
while (pl.hasNext()) {
Property property = pl.getNextProperty();
}
or
while (pl.hasNext()) {
Property[] properties = pl.getNextProperties(pl.available());
}
-
Method Summary
Modifier and TypeMethodDescriptionProperty[]getNextProperties(long n) Gets the next set ofPropertyelements in this list which must be less than or equal to the number returned fromavailable().Gets the nextPropertyin this list.
-
Method Details
-
getNextProperty
Gets the nextPropertyin this list.- Returns:
- the next
Propertyin this list. ThehasNext()method should be used to test that a nextPropertyis 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.
-
getNextProperties
Gets the next set ofPropertyelements in this list which must be less than or equal to the number returned fromavailable().- Parameters:
n- the number ofPropertyelements requested which should be less than or equal toavailable()- Returns:
- an array of
Propertyelements. 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.
-