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