OSID Logo
OSID Specifications
installation package
Version 3.0.0
Release Candidate Preview
Interfaceosid.installation.InstallationContent
Implementsosid.OsidObject
osid.Subjugateable
Description

An installation content contains information about the installation data.

MethodgetPackageId
Description

Gets the Package Id corresponding to this content.

Returnosid.id.Idthe package Id
CompliancemandatoryThis method must be implemented.
MethodgetPackage
Description

Gets the Package corresponding to this content.

Returnosid.installation.Packagethe package
CompliancemandatoryThis method must be implemented.
MethodhasDataLength
Description

Tests if a data length is available.

Returnboolean true if a length is available for this content, false otherwise.
CompliancemandatoryThis method must be implemented.
MethodgetDataLength
Description

Gets the length of the data represented by this content in bytes.

Returncardinalthe length of the data stream
ErrorsILLEGAL_STATE hasDataLength() is false
CompliancemandatoryThis method must be implemented.
MethodgetData
Description

Gets the asset content data.

Returnosid.transport.DataInputStreamthe length of the content data
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetInstallationContentRecord
Description

Gets the installation content record corresponding to the given InstallationContent record Type. This method is used to retrieve an object implementing the requested record. The installationContentRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(installationContentRecordType) is true .

Parametersosid.type.TypeinstallationContentRecordTypean installation content record type
Returnosid.installation.records.InstallationContentRecordthe installation content record
ErrorsNULL_ARGUMENT installationContentRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(installationContentRecordType) is false
CompliancemandatoryThis method must be implemented.