OSID Logo
OSID Specifications
room package
Version 3.0.0
Interfaceosid.room.CampusList
Implementsosid.OsidList
Used Byosid.room.BuildingCampusSession
osid.room.CampusHierarchySession
osid.room.CampusLookupSession
osid.room.CampusQuerySession
osid.room.CampusSearchResults
osid.room.FloorCampusSession
osid.room.RoomCampusSession
osid.room.construction.ProjectCampusSession
osid.room.construction.RenovationCampusSession
osid.room.squatting.DeedCampusSession
show 1 more…
osid.room.squatting.LeaseCampusSession
Description

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

while (cl.hasNext()) {
     Campus campus = cl.getNextCampus();
}            
                
or
while (cl.hasNext()) {
     Campus[] campuses = cl.getNextCampuses(cl.available());
}            
                
MethodgetNextCampus
Description

Gets the next Campus in this list.

Returnosid.room.Campusthe next Campus in this list. The hasNext() method should be used to test that a next Campus is available before calling this method.
ErrorsILLEGAL_STATEno more elements available in this list
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetNextCampuses
Description

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

Parameterscardinalnthe number of Campus elements requested which must be less than or equal to available()
Returnosid.room.Campus[]an array of Campus elements. The length of the array is less than or equal to the number specified.
ErrorsILLEGAL_STATEno more elements available in this list
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.