- All Implemented Interfaces:
org.opencastproject.mediapackage.XmlElement, MultimediaContent<T>
TODO: Comment me!
-
-
-
Constructor Summary
Constructors
Creates a new multimedia content container.
-
Method Summary
void
Adds a content element to the collection.
Returns the content elements that are enclosed in a multimedia content container.
Returns the content element with the given identifier or null if element does not exist.
Returns the multimedia content type.
Removes the content element with the given identifier from the collection.
Removes the content element from the collection.
int
Returns the number of content elements.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
content
List of content elements
-
-
Constructor Details
-
MultimediaContentImpl
Creates a new multimedia content container.
- Parameters:
type - the content type
-
Method Details
-
add
Adds a content element to the collection.
- Parameters:
c - the content to add
-
remove
Removes the content element from the collection.
- Parameters:
c - the content to remove
-
remove
Removes the content element with the given identifier from the collection.
- Parameters:
id - the content identifier
-
-
getElementById
Returns the content element with the given identifier or null if element does not exist.
- Specified by:
getElementById in interface MultimediaContent<T extends MultimediaContentType>
- Parameters:
id - the element identifier
- Returns:
- the content element
- See Also:
-
-
-
-
toXml
- Specified by:
toXml in interface org.opencastproject.mediapackage.XmlElement
- See Also:
-
XmlElement.toXml(Document)