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