| Interface | osid.installation.InstallationPackageList | ||
|---|---|---|---|
| Implements | osid.OsidList | ||
| Used By | osid.installation.InstallationPackage | ||
osid.installation.InstallationPackageDepotSession | |||
osid.installation.InstallationPackageLookupSession | |||
osid.installation.InstallationPackageQuerySession | |||
osid.installation.InstallationPackageSearchResults | |||
osid.installation.InstallationUpdateSession | |||
| Description |
Like all while (pl.hasNext()) {
InstallationPackage package = pl.getNextInstallationPackage();
}
or
while (pl.hasNext()) {
InstallationPackage[] packages = pl.getNextInstallationPackages(pl.available());
}
| ||
| Method | getNextInstallationPackage | ||
| Description |
Gets the next | ||
| Return | osid.installation.InstallationPackage | the next InstallationPackage in this list. The
hasNext() method should be used to test that a next
InstallationPackage is available before calling this method. | |
| Errors | ILLEGAL_STATE | no more elements available in this list | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getNextInstallationPackages | ||
| Description |
Gets the next set of | ||
| Parameters | cardinal | n | the number of InstallationPackage elements requested which
should be less than or equal to available() |
| Return | osid.installation.InstallationPackage[] | an array of InstallationPackage elements. The length of the
array is less than or equal to the number specified. | |
| Errors | ILLEGAL_STATE | no more elements available in this list | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |