OSID Logo
OSID Specifications
installation package
Version 3.0.0
Interfaceosid.installation.InstallationContent
Implementsosid.OsidObject
osid.Subjugateable
Used Byosid.installation.InstallationContentList
osid.installation.PackageAdminSession
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.

Returnbooleantrue 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_STATEhasDataLength() 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_ARGUMENTinstallationContentRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(installationContentRecordType) is false
CompliancemandatoryThis method must be implemented.