OSID Logo
OSID Specifications
workflow package
Version 3.1.0
Interfaceosid.workflow.OfficeNodeList
Implementsosid.OsidList
Used Byosid.workflow.OfficeNode
Description

Like all OsidLists, OfficeNodeList provides a means for accessing OfficeNode elements sequentially either one at a time or many at a time. Examples:

while (onl.hasNext()) {
     OfficeNode node = onl.getNextOfficeNode();
}
                
or
while (onl.hasNext()) {
     OfficeNode[] nodes = onl.getNextOfficeNodes(onl.available());
}
                
MethodgetNextOfficeNode
Description

Gets the next OfficeNode in this list.

Returnosid.workflow.OfficeNode the next OfficeNode in this list. The hasNext() method should be used to test that a next OfficeNode is available before calling this method.
ErrorsILLEGAL_STATE no more elements available in this list
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetNextOfficeNodes
Description

Gets the next set of OfficeNode elements in this list. The specified amount must be less than or equal to the return from available().

Parameterscardinaln the number of OfficeNode elements requested which must be less than or equal to available()
Returnosid.workflow.OfficeNode[] an array of OfficeNode elements. The length of the array is less than or equal to the number specified.
ErrorsILLEGAL_STATE no more elements available in this list
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.