public interface AssetContent extends OsidObject, Subjugateable
AssetContent
represents a version of content represented
by an Asset.
Although AssetContent
is a
separate OsidObject
with its own Id
to
distuinguish it from other content inside an Asset, AssetContent
can only be accessed through an Asset.
Once an Asset
is selected, multiple contents should be
negotiated using the size, fidelity, accessibility requirements or
application evnironment.
Modifier and Type | Method and Description |
---|---|
TypeList |
getAccessibilityTypes()
Gets the accessibility types associated with this content.
|
Asset |
getAsset()
Gets the
Asset corresponding to this content. |
AssetContentRecord |
getAssetContentRecord(Type assetContentContentRecordType)
Gets the asset content record corresponding to the given
AssetContent record Type. |
Id |
getAssetId()
Gets the
Asset Id corresponding to this content. |
DataInputStream |
getData()
Gets the asset content data.
|
long |
getDataLength()
Gets the length of the data represented by this content in bytes.
|
java.lang.String |
getURL()
Gets the URL associated with this content for web-based retrieval.
|
boolean |
hasDataLength()
Tests if a data length is available.
|
boolean |
hasURL()
Tests if a URL is associated with this content.
|
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
Id getAssetId()
Asset Id
corresponding to this content. Id
mandatory
- This method must be implemented. Asset getAsset()
Asset
corresponding to this content.mandatory
- This method must be implemented. TypeList getAccessibilityTypes()
mandatory
- This method must be implemented. boolean hasDataLength()
true
if a length is available for this content,
false
otherwise.mandatory
- This method must be implemented. long getDataLength()
IllegalStateException
- hasDataLength()
is false
mandatory
- This method must be implemented. DataInputStream getData() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. boolean hasURL()
true
if a URL is available, false
otherwisemandatory
- This method must be implemented. java.lang.String getURL()
IllegalStateException
- hasURL()
is
false
mandatory
- This method must be implemented. AssetContentRecord getAssetContentRecord(Type assetContentContentRecordType) throws OperationFailedException
AssetContent
record Type.
This method is used
to retrieve an object implementing the requested record. The
assetRecordType
may be the Type
returned in
getRecordTypes()
or any of its parents in a Type
hierarchy where hasRecordType(assetRecordType)
is true
.assetContentContentRecordType
- the type of the record to
retrieveNullArgumentException
- assetContentRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(assetContentRecordType)
is false
mandatory
- This method must be implemented.