Interface Mpeg7
- All Known Subinterfaces:
Mpeg7Catalog
- All Known Implementing Classes:
Mpeg7CatalogImpl
public interface Mpeg7
Root of an mpeg-7 document.
<element name="Mpeg7">
<complexType>
<complexContent>
<extension base="mpeg7:Mpeg7Type">
<choice>
<element name="DescriptionUnit" type="mpeg7:Mpeg7BaseType"/>
<element name="Description" type="mpeg7:CompleteDescriptionType" minOccurs="1" maxOccurs="unbounded"/>
</choice>
</extension>
</complexContent>
</complexType>
</element>
-
Method Summary
Modifier and TypeMethodDescriptionaddAudioContent(String id, MediaTime time, MediaLocator locator) Adds audio content to the catalog.addAudioVisualContent(String id, MediaTime time, MediaLocator locator) Adds audiovisual content to the catalog.addVideoContent(String id, MediaTime time, MediaLocator locator) Adds video content to the catalog.Returns an iteration of the tracks of typeAudio.Returns an iteration of the tracks of typeAudioVisual.getAudioById(String id) Returns the audio track with the given id ornullif the track does not exist.Returns the audiovisual track with the given id ornullif the track does not exist.MultimediaContent<? extends MultimediaContentType> Returns the multimedia content container element for tracks of the given type (eitherAudio,VideoorAudiovisual).getVideoById(String id) Returns the video track with the given id ornullif the track does not exist.booleanReturnstrueif the catalog contains multimedia content of typeAudioType.booleanReturnstrueif the catalog contains multimedia content of typeAudioVisualType.booleanReturnstrueif the catalog contains multimedia content of typeVideoType.Iterator<MultimediaContent<? extends MultimediaContentType>> Returns an iteration of the multimedia content container contained in this mpeg-7 document.Removes the audio content with the specified id.Removes the audiovisual content with the specified id.Removes the video content with the specified id.Returns an iteration of the tracks of typeVideo.
-
Method Details
-
multimediaContent
Iterator<MultimediaContent<? extends MultimediaContentType>> multimediaContent()Returns an iteration of the multimedia content container contained in this mpeg-7 document.- Returns:
- the multimedia content container
-
getMultimediaContent
MultimediaContent<? extends MultimediaContentType> getMultimediaContent(MultimediaContent.Type type) Returns the multimedia content container element for tracks of the given type (eitherAudio,VideoorAudiovisual).- Returns:
- the multimedia content container of the specified type
-
addAudioContent
Adds audio content to the catalog.- Parameters:
id- the audio track idtime- the audio track time constraintslocator- the track locator
-
removeAudioContent
Removes the audio content with the specified id.- Parameters:
id- the content id
-
hasAudioContent
boolean hasAudioContent()Returnstrueif the catalog contains multimedia content of typeAudioType.- Returns:
trueif audio content is contained
-
audioContent
Returns an iteration of the tracks of typeAudio.- Returns:
- the audio tracks
-
addVideoContent
Adds video content to the catalog.- Parameters:
id- the video track idtime- the video track time constraintslocator- the track locator
-
removeVideoContent
Removes the video content with the specified id.- Parameters:
id- the content id
-
hasVideoContent
boolean hasVideoContent()Returnstrueif the catalog contains multimedia content of typeVideoType.- Returns:
trueif video content is contained
-
videoContent
Returns an iteration of the tracks of typeVideo.- Returns:
- the video tracks
-
addAudioVisualContent
Adds audiovisual content to the catalog.- Parameters:
id- the track idtime- the track's time constraintslocator- track's locator
-
removeAudioVisualContent
Removes the audiovisual content with the specified id.- Parameters:
id- the content id
-
hasAudioVisualContent
boolean hasAudioVisualContent()Returnstrueif the catalog contains multimedia content of typeAudioVisualType.- Returns:
trueif audiovisual content is contained
-
audiovisualContent
Iterator<AudioVisual> audiovisualContent()Returns an iteration of the tracks of typeAudioVisual.- Returns:
- the audiovisual tracks
-
getAudioById
Returns the audio track with the given id ornullif the track does not exist.- Parameters:
id- the audio track id- Returns:
- the audio track
-
getVideoById
Returns the video track with the given id ornullif the track does not exist.- Parameters:
id- the video track id- Returns:
- the video track
-
getAudioVisualById
Returns the audiovisual track with the given id ornullif the track does not exist.- Parameters:
id- the track id- Returns:
- the track
-