OSID Logo
OSID Specifications
repository package
Version 3.1.0
Interfaceosid.repository.RepositoryList
Implementsosid.OsidList
Used Byosid.repository.AssetContentRepositorySession
osid.repository.AssetRepositorySession
osid.repository.AssetTemporalSession
osid.repository.CompositionRepositorySession
osid.repository.RepositoryHierarchySession
osid.repository.RepositoryLookupSession
osid.repository.RepositoryQuerySession
osid.repository.RepositorySearchResults
osid.repository.rules.CompositionEnablerRepositorySession
Description

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

while (rl.hasNext()) {
     Repository repository = rl.getNextRepository();
}
                
or
while (rl.hasNext()) {
     Repository[] repositories = rl.getNextRepositories(rl.available());
}
                
MethodgetNextRepository
Description

Gets the next Repository in this list.

Returnosid.repository.Repository the next Repository in this list. The hasNext() method should be used to test that a next Repository 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.
MethodgetNextRepositories
Description

Gets the next set of Repository elements in this list which must be less than or equal to the return from available().

Parameterscardinaln the number of Repository elements requested which must be less than or equal to available()
Returnosid.repository.Repository[] an array of Repository 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.