public final class MediaPackageImpl extends Object implements MediaPackage
| Modifier and Type | Class and Description |
|---|---|
static class |
MediaPackageImpl.Adapter
A JAXB adapter that allows the
MediaPackage interface to be un/marshalled |
| Modifier and Type | Field and Description |
|---|---|
static String |
NEGATE_TAG_PREFIX
The prefix indicating that a tag should be excluded from a search for elements using
getElementsByTags(Collection) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Attachment attachment)
Adds an attachment to this media package.
|
void |
add(Catalog catalog)
Adds catalog information to this media package.
|
void |
add(MediaPackageElement element)
Adds an arbitrary
MediaPackageElement to this media package. |
void |
add(Track track)
Adds a track to this media package, actually moving the underlying file in the filesystem.
|
MediaPackageElement |
add(URI url)
Adds an arbitrary
URI to this media package, utilizing a MediaPackageBuilder to create a suitable
media package element out of the url. |
MediaPackageElement |
add(URI uri,
MediaPackageElement.Type type,
MediaPackageElementFlavor flavor)
Adds an arbitrary
URI to this media package, utilizing a MediaPackageBuilder to create a suitable
media package element out of the url. |
void |
addContributor(String contributor) |
void |
addCreator(String creator) |
void |
addDerived(MediaPackageElement derivedElement,
MediaPackageElement sourceElement)
Adds an element to this media package that represents a derived version of
sourceElement. |
void |
addDerived(MediaPackageElement derivedElement,
MediaPackageElement sourceElement,
Map<String,String> properties)
Adds an element to this media package that represents a derived version of
sourceElement. |
void |
addObserver(MediaPackageObserver observer)
Adds
observer to the list of observers of this media package. |
void |
addSubject(String subject) |
Object |
clone()
Creates a deep copy of the media package.
|
boolean |
contains(MediaPackageElement element)
Returns
true if the given element is part of the media package. |
Iterable<MediaPackageElement> |
elements()
Returns an iteration of the media package elements.
|
boolean |
equals(Object obj) |
Attachment |
getAttachment(String attachmentId)
Returns the attachment identified by
attachmentId or null if that attachment doesn't
exists. |
Attachment[] |
getAttachments()
Returns the attachments that are part of this media package.
|
Attachment[] |
getAttachments(MediaPackageElementFlavor flavor)
Returns the attachments that are part of this media package and match the specified flavor.
|
Attachment[] |
getAttachments(MediaPackageElementFlavor flavor,
MediaPackageReference reference)
Returns the attachments that are part of this media package and are refering to the element identified by
reference. |
Attachment[] |
getAttachments(MediaPackageReference reference)
Returns the attachments that are part of this media package and are refering to the element identified by
reference. |
Attachment[] |
getAttachments(MediaPackageReference reference,
boolean includeDerived)
Returns the attachments that are part of this media package and are refering to the element identified by
reference. |
Attachment[] |
getAttachmentsByTag(String tag)
Returns the attachments that are tagged with the given tag or an empty array if no such attachments are found.
|
Attachment[] |
getAttachmentsByTags(Collection<String> tags)
Returns the attachments that are tagged with any of the given tags or an empty array if no such attachments are
found.
|
Catalog |
getCatalog(String catalogId)
Returns the catalog identified by
catalogId or null if that catalog doesn't exists. |
Catalog[] |
getCatalogs()
Returns the catalogs associated with this media package.
|
Catalog[] |
getCatalogs(MediaPackageElementFlavor flavor)
Returns the catalogs associated with this media package that matches the specified flavor.
|
Catalog[] |
getCatalogs(MediaPackageElementFlavor flavor,
MediaPackageReference reference)
Returns the catalogs that are part of this media package and are refering to the element identified by
reference. |
Catalog[] |
getCatalogs(MediaPackageReference reference)
Returns the catalogs that are part of this media package and are refering to the element identified by
reference. |
Catalog[] |
getCatalogs(MediaPackageReference reference,
boolean includeDerived)
Returns the catalogs that are part of this media package and are refering to the element identified by
reference. |
Catalog[] |
getCatalogsByTag(String tag)
Returns the catalogs that are tagged with the given tag or an empty array if no such catalogs are found.
|
Catalog[] |
getCatalogsByTags(Collection<String> tags)
Returns the catalogs that are tagged with any of the given tags or an empty array if no such elements are found.
|
String[] |
getContributors()
Returns the names of the institutions or people who contributed to the content within this mediapackage
|
String[] |
getCreators()
Returns the names of the institutions or people who created this mediapackage
|
Date |
getDate()
Returns the media package start time.
|
MediaPackageElement[] |
getDerived(MediaPackageElement sourceElement,
MediaPackageElementFlavor derivateFlavor)
Returns those media package elements that are derivates of
sourceElement and feature the flavor
derivateFlavor. |
Long |
getDuration()
Returns the media package duration in milliseconds or
null if no duration is available. |
MediaPackageElement |
getElementById(String id)
Returns the element that is identified by the given identifier or
null if no such element exists. |
MediaPackageElement |
getElementByReference(MediaPackageReference reference)
Returns the element that is identified by the given reference or
null if no such element exists. |
MediaPackageElement[] |
getElements()
Returns all of the elements.
|
MediaPackageElement[] |
getElementsByFlavor(MediaPackageElementFlavor flavor)
Returns all elements of this media package with the given flavor.
|
MediaPackageElement[] |
getElementsByTag(String tag)
Returns the elements that are tagged with the given tag or an empty array if no such elements are found.
|
MediaPackageElement[] |
getElementsByTags(Collection<String> tags)
Returns the elements that are tagged with any of the given tags or an empty array if no such elements are found.
|
Id |
getIdentifier()
Returns the media package identifier.
|
String |
getLanguage()
Returns the language written and/or spoken in the media content of this mediapackage
|
String |
getLicense()
The license for the content in this mediapackage
|
Publication[] |
getPublications()
Returns the presentations that are part of this media package.
|
String |
getSeries()
Returns the series, if any, to which this mediapackage belongs
|
String |
getSeriesTitle()
Returns the title for the associated series, if any.
|
String |
getStartDateAsString()
Returns the recording time in utc format.
|
String[] |
getSubjects()
The keywords describing the subject(s) or categories describing the content of this mediapackage
|
String |
getTitle()
Returns the title of the episode that this mediapackage represents.
|
Track |
getTrack(String trackId)
Returns the track identified by
trackId or null if that track doesn't exists. |
Track[] |
getTracks()
Returns the tracks that are part of this media package.
|
Track[] |
getTracks(MediaPackageElementFlavor flavor)
Returns the tracks that are part of this media package and match the given flavor as defined in
Track. |
Track[] |
getTracks(MediaPackageElementFlavor flavor,
MediaPackageReference reference)
Returns the tracks that are part of this media package and are refering to the element identified by
reference. |
Track[] |
getTracks(MediaPackageReference reference)
Returns the tracks that are part of this media package and are refering to the element identified by
reference. |
Track[] |
getTracks(MediaPackageReference reference,
boolean includeDerived)
Returns the tracks that are part of this media package and are refering to the element identified by
reference. |
Track[] |
getTracksByTag(String tag)
Returns the tracks that are tagged with the given tag or an empty array if no such tracks are found.
|
Track[] |
getTracksByTags(Collection<String> tags)
Returns the tracks that are tagged with any of the given tags or an empty array if no such elements are found.
|
MediaPackageElement[] |
getUnclassifiedElements()
Returns media package elements that are neither, attachments, catalogs nor tracks.
|
MediaPackageElement[] |
getUnclassifiedElements(MediaPackageElementFlavor flavor)
Returns media package elements that are neither, attachments, catalogs nor tracks but have the given element
flavor.
|
boolean |
hasAttachments()
Returns
true if the media package contains attachments of any kind. |
boolean |
hasCatalogs()
Returns
true if the media package contains catalogs of any kind. |
int |
hashCode() |
boolean |
hasTracks()
Returns
true if the media package contains media tracks of any kind. |
boolean |
hasUnclassifiedElements()
Returns
true if the media package contains unclassified elements. |
boolean |
hasUnclassifiedElements(MediaPackageElementFlavor type)
Returns
true if the media package contains unclassified elements matching the specified element type. |
void |
remove(Attachment attachment)
Removes the attachment from the media package.
|
void |
remove(Catalog catalog)
Removes the catalog from the media package.
|
void |
remove(MediaPackageElement element)
Removes an arbitrary media package element.
|
void |
remove(Track track)
Removes the track from the media package.
|
void |
removeContributor(String contributor) |
void |
removeCreator(String creator) |
MediaPackageElement |
removeElementById(String id)
Removes the element with the given identifier from the mediapackage and returns it.
|
void |
removeObserver(MediaPackageObserver observer)
Removes
observer from the list of observers of this media package. |
void |
removeSubject(String subject) |
void |
renameTo(Id identifier)
Renames the media package to the new identifier.
|
void |
setDate(Date date) |
void |
setDuration(Long duration)
Sets the duration of the media package in milliseconds.
|
void |
setIdentifier(Id identifier) |
void |
setLanguage(String language) |
void |
setLicense(String license) |
void |
setSeries(String identifier) |
void |
setSeriesTitle(String seriesTitle) |
void |
setStartDateAsString(String startTime)
Sets the date and time of recording in utc format.
|
void |
setTitle(String title) |
String |
toString() |
static MediaPackageImpl |
valueOf(InputStream xml)
Reads the media package from the input stream.
|
static MediaPackageImpl |
valueOf(Node xml)
Reads the media package from an xml node.
|
static MediaPackageImpl |
valueOf(String xml)
Unmarshals XML representation of a MediaPackage via JAXB.
|
void |
verify()
Verifies the media package consistency by checking the media package elements for mimetypes and checksums.
|
public static final String NEGATE_TAG_PREFIX
getElementsByTags(Collection)public Id getIdentifier()
getIdentifier in interface MediaPackageMediaPackage.getIdentifier()public void setIdentifier(Id identifier)
setIdentifier in interface MediaPackageMediaPackage.setIdentifier(org.opencastproject.mediapackage.identifier.Id)public Long getDuration()
null if no duration is available.getDuration in interface MediaPackageMediaPackage.getDuration()public void setDuration(Long duration) throws IllegalStateException
IllegalStateException if
tracks have been added to the mediapackage already. Also note that as soon as the first track is added, the
duration will be udpated according to the track's length.setDuration in interface MediaPackageduration - the duration in millisecondsIllegalStateException - if the mediapackage already contains a trackMediaPackage.setDuration(Long)public Date getDate()
getDate in interface MediaPackageMediaPackage.getDate()public String getStartDateAsString()
public void setStartDateAsString(String startTime)
startTime - the start timepublic Iterable<MediaPackageElement> elements()
elements in interface MediaPackageMediaPackage.elements()public MediaPackageElement[] getElements()
getElements in interface MediaPackageMediaPackage.getElements()public MediaPackageElement getElementByReference(MediaPackageReference reference)
null if no such element exists.getElementByReference in interface MediaPackagereference - the referenceMediaPackage.getElementByReference(org.opencastproject.mediapackage.MediaPackageReference)public MediaPackageElement getElementById(String id)
MediaPackagenull if no such element exists.getElementById in interface MediaPackageid - the element identifierMediaPackage.getElementById(java.lang.String)public MediaPackageElement[] getElementsByTag(String tag)
MediaPackagegetElementsByTag in interface MediaPackagetag - the tagMediaPackage.getElementById(java.lang.String)public MediaPackageElement[] getElementsByTags(Collection<String> tags)
tags collection start with a '-' character, any elements matching the tag will
be excluded from the returned MediaPackageElement[]. If tags is empty or null, all elements are
returned.getElementsByTags in interface MediaPackagetags - the tagsMediaPackage.getElementsByTags(java.util.Collection)public Attachment[] getAttachmentsByTags(Collection<String> tags)
tags collection start with a '-' character, any elements matching the
tag will be excluded from the returned Attachment[]. If tags is empty or null, all attachments are
returned.getAttachmentsByTags in interface MediaPackagetags - the tagsMediaPackage.getAttachmentsByTags(java.util.Collection)public Catalog[] getCatalogsByTags(Collection<String> tags)
tags collection start with a '-' character, any elements matching the tag will
be excluded from the returned Catalog[]. If tags is empty or null, all catalogs are returned.getCatalogsByTags in interface MediaPackagetags - the tagsMediaPackage.getCatalogsByTags(java.util.Collection)public Track[] getTracksByTags(Collection<String> tags)
tags collection start with a '-' character, any elements matching the tag will
be excluded from the returned Track[]. If tags is empty or null, all tracks are returned.getTracksByTags in interface MediaPackagetags - the tagsMediaPackage.getTracksByTags(java.util.Collection)public MediaPackageElement[] getElementsByFlavor(MediaPackageElementFlavor flavor)
getElementsByFlavor in interface MediaPackageMediaPackage.getElementsByFlavor(org.opencastproject.mediapackage.MediaPackageElementFlavor)public boolean contains(MediaPackageElement element)
MediaPackagetrue if the given element is part of the media package.contains in interface MediaPackageelement - the elementtrue if the element belongs to the media packageMediaPackage.contains(org.opencastproject.mediapackage.MediaPackageElement)public void add(Catalog catalog)
MediaPackageadd in interface MediaPackagecatalog - the catalogMediaPackage.add(org.opencastproject.mediapackage.Catalog)public void add(Track track)
MediaPackageDepending on the implementation, this method may provide significant performance benefits over copying the track.
add in interface MediaPackagetrack - the trackMediaPackage.add(org.opencastproject.mediapackage.Track)public void add(Attachment attachment)
MediaPackageadd in interface MediaPackageattachment - the attachmentMediaPackage.add(org.opencastproject.mediapackage.Attachment)public Catalog getCatalog(String catalogId)
MediaPackagecatalogId or null if that catalog doesn't exists.getCatalog in interface MediaPackagecatalogId - the catalog identifierMediaPackage.getCatalog(java.lang.String)public Catalog[] getCatalogs()
MediaPackagegetCatalogs in interface MediaPackageMediaPackage.getCatalogs()public Catalog[] getCatalogsByTag(String tag)
getCatalogsByTag in interface MediaPackagetag - the tagMediaPackage.getCatalogsByTag(java.lang.String)public Catalog[] getCatalogs(MediaPackageElementFlavor flavor)
MediaPackagegetCatalogs in interface MediaPackageflavor - the catalog typeMediaPackage.getCatalogs(MediaPackageElementFlavor)public Catalog[] getCatalogs(MediaPackageReference reference)
MediaPackagereference.getCatalogs in interface MediaPackagereference - the referenceMediaPackage.getCatalogs(org.opencastproject.mediapackage.MediaPackageReference)public Catalog[] getCatalogs(MediaPackageReference reference, boolean includeDerived)
reference.getCatalogs in interface MediaPackagereference - the referenceincludeDerived - true to also include derived elementsMediaPackage.getCatalogs(org.opencastproject.mediapackage.MediaPackageReference,
boolean)public Catalog[] getCatalogs(MediaPackageElementFlavor flavor, MediaPackageReference reference)
MediaPackagereference.getCatalogs in interface MediaPackageflavor - the element flavorreference - the referenceMediaPackage.getCatalogs(org.opencastproject.mediapackage.MediaPackageElementFlavor,
org.opencastproject.mediapackage.MediaPackageReference)public boolean hasCatalogs()
MediaPackagetrue if the media package contains catalogs of any kind.hasCatalogs in interface MediaPackagetrue if the media package contains catalogsMediaPackage.hasCatalogs()public Track getTrack(String trackId)
trackId or null if that track doesn't exists.getTrack in interface MediaPackagetrackId - the track identifierMediaPackage.getTrack(java.lang.String)public Track[] getTracks()
getTracks in interface MediaPackageMediaPackage.getTracks()public Track[] getTracksByTag(String tag)
getTracksByTag in interface MediaPackagetag - the tagMediaPackage.getTracksByTag(java.lang.String)public Track[] getTracks(MediaPackageElementFlavor flavor)
Track.getTracks in interface MediaPackageflavor - the track's flavorMediaPackage.getTracks(org.opencastproject.mediapackage.MediaPackageElementFlavor)public Track[] getTracks(MediaPackageReference reference)
reference.getTracks in interface MediaPackagereference - the referenceMediaPackage.getTracks(org.opencastproject.mediapackage.MediaPackageReference)public Track[] getTracks(MediaPackageReference reference, boolean includeDerived)
reference.getTracks in interface MediaPackagereference - the referenceincludeDerived - true to also include derived elementsMediaPackage.getTracks(org.opencastproject.mediapackage.MediaPackageReference,
boolean)public Track[] getTracks(MediaPackageElementFlavor flavor, MediaPackageReference reference)
reference.getTracks in interface MediaPackageflavor - the element flavorreference - the referenceMediaPackage.getTracks(org.opencastproject.mediapackage.MediaPackageElementFlavor,
org.opencastproject.mediapackage.MediaPackageReference)public boolean hasTracks()
true if the media package contains media tracks of any kind.hasTracks in interface MediaPackagetrue if the media package contains tracksMediaPackage.hasTracks()public MediaPackageElement[] getUnclassifiedElements()
getUnclassifiedElements in interface MediaPackageMediaPackage.getUnclassifiedElements()public MediaPackageElement[] getUnclassifiedElements(MediaPackageElementFlavor flavor)
getUnclassifiedElements in interface MediaPackageflavor - the element flavorMediaPackage.getUnclassifiedElements(org.opencastproject.mediapackage.MediaPackageElementFlavor)public boolean hasUnclassifiedElements(MediaPackageElementFlavor type)
true if the media package contains unclassified elements matching the specified element type.hasUnclassifiedElements in interface MediaPackagetype - element flavor of the unclassified elementtrue if the media package contains unclassified elementsMediaPackage.hasUnclassifiedElements(org.opencastproject.mediapackage.MediaPackageElementFlavor)public boolean hasUnclassifiedElements()
true if the media package contains unclassified elements.hasUnclassifiedElements in interface MediaPackagetrue if the media package contains unclassified elementsMediaPackage.hasUnclassifiedElements()public void addObserver(MediaPackageObserver observer)
observer to the list of observers of this media package.addObserver in interface MediaPackageobserver - the observerMediaPackage.addObserver(org.opencastproject.mediapackage.MediaPackageObserver)public Attachment getAttachment(String attachmentId)
attachmentId or null if that attachment doesn't
exists.getAttachment in interface MediaPackageattachmentId - the attachment identifierMediaPackage.getAttachment(java.lang.String)public Attachment[] getAttachments()
getAttachments in interface MediaPackageMediaPackage.getAttachments()public Attachment[] getAttachmentsByTag(String tag)
getAttachmentsByTag in interface MediaPackagetag - the tagMediaPackage.getAttachmentsByTag(java.lang.String)public Attachment[] getAttachments(MediaPackageElementFlavor flavor)
getAttachments in interface MediaPackageflavor - the attachment flavorMediaPackage.getAttachments(org.opencastproject.mediapackage.MediaPackageElementFlavor)public Attachment[] getAttachments(MediaPackageReference reference)
reference.getAttachments in interface MediaPackagereference - the referenceMediaPackage.getAttachments(org.opencastproject.mediapackage.MediaPackageReference)public Attachment[] getAttachments(MediaPackageReference reference, boolean includeDerived)
reference.getAttachments in interface MediaPackagereference - the referenceincludeDerived - true to also include derived elementsMediaPackage.getAttachments(org.opencastproject.mediapackage.MediaPackageReference,
boolean)public Attachment[] getAttachments(MediaPackageElementFlavor flavor, MediaPackageReference reference)
reference.getAttachments in interface MediaPackageflavor - the element flavorreference - the referenceMediaPackage.getAttachments(org.opencastproject.mediapackage.MediaPackageElementFlavor,
org.opencastproject.mediapackage.MediaPackageReference)public boolean hasAttachments()
true if the media package contains attachments of any kind.hasAttachments in interface MediaPackagetrue if the media package contains attachmentsMediaPackage.hasAttachments()public Publication[] getPublications()
getPublications in interface MediaPackageMediaPackage.getAttachments()public MediaPackageElement removeElementById(String id)
removeElementById in interface MediaPackageid - the element identifierMediaPackage.removeElementById(java.lang.String)public void remove(MediaPackageElement element)
remove in interface MediaPackageelement - the media package elementMediaPackage.remove(org.opencastproject.mediapackage.MediaPackageElement)public void remove(Attachment attachment)
remove in interface MediaPackageattachment - the attachmentMediaPackage.remove(org.opencastproject.mediapackage.Attachment)public void remove(Catalog catalog)
remove in interface MediaPackagecatalog - the catalogMediaPackage.remove(org.opencastproject.mediapackage.Catalog)public void remove(Track track)
remove in interface MediaPackagetrack - the trackMediaPackage.remove(org.opencastproject.mediapackage.Track)public void removeObserver(MediaPackageObserver observer)
MediaPackageobserver from the list of observers of this media package.removeObserver in interface MediaPackageobserver - the observerMediaPackage.removeObserver(MediaPackageObserver)public MediaPackageElement add(URI url)
URI to this media package, utilizing a MediaPackageBuilder to create a suitable
media package element out of the url. If the content cannot be recognized as being either a metadata catalog or
multimedia track, it is added as an attachment.add in interface MediaPackageurl - the element locationMediaPackage.add(java.net.URI)public MediaPackageElement add(URI uri, MediaPackageElement.Type type, MediaPackageElementFlavor flavor)
MediaPackageURI to this media package, utilizing a MediaPackageBuilder to create a suitable
media package element out of the url. If the content cannot be recognized as being either a metadata catalog or
multimedia track, it is added as an attachment.add in interface MediaPackageuri - the element locationtype - the element typeflavor - the element flavorMediaPackage.add(URI,
org.opencastproject.mediapackage.MediaPackageElement.Type,
org.opencastproject.mediapackage.MediaPackageElementFlavor)public void add(MediaPackageElement element)
MediaPackageElement to this media package.add in interface MediaPackageelement - the elementMediaPackage.add(org.opencastproject.mediapackage.MediaPackageElement)public void addDerived(MediaPackageElement derivedElement, MediaPackageElement sourceElement)
sourceElement. Examples of
a derived element could be an encoded version of a track or a converted version of a time text captions file.
This method will add derviedElement to the media package and add a reference to the original element
sourceElement. Make sure that derivedElement features the right flavor, so that you are
later able to look up derived work using MediaPackage.getDerived(MediaPackageElement, MediaPackageElementFlavor).
addDerived in interface MediaPackagederivedElement - the derived elementsourceElement - the source elementMediaPackage.addDerived(org.opencastproject.mediapackage.MediaPackageElement,
org.opencastproject.mediapackage.MediaPackageElement)public void addDerived(MediaPackageElement derivedElement, MediaPackageElement sourceElement, Map<String,String> properties)
sourceElement. Examples of
a derived element could be an encoded version of a track or a converted version of a time text captions file.
This method will add derviedElement to the media package and add a reference to the original element
sourceElement. Make sure that derivedElement features the right flavor, so that you are
later able to look up derived work using MediaPackage.getDerived(MediaPackageElement, MediaPackageElementFlavor).
addDerived in interface MediaPackagederivedElement - the derived elementsourceElement - the source elementproperties - properties for the reference that is being createdMediaPackage.addDerived(org.opencastproject.mediapackage.MediaPackageElement,
org.opencastproject.mediapackage.MediaPackageElement, java.util.Map)public MediaPackageElement[] getDerived(MediaPackageElement sourceElement, MediaPackageElementFlavor derivateFlavor)
sourceElement and feature the flavor
derivateFlavor. Using this method, you could easily look up e. g. flash-encoded versions of the
presenter track or converted versions of a time text captions file.getDerived in interface MediaPackagesourceElement - the original track, catalog or attachmentderivateFlavor - the derivate flavor you are looking forMediaPackage.getDerived(org.opencastproject.mediapackage.MediaPackageElement,
org.opencastproject.mediapackage.MediaPackageElementFlavor)public void renameTo(Id identifier)
MediaPackagerenameTo in interface MediaPackageidentifier - the identifier TODO @return true if the media package could be renamedMediaPackage.renameTo(org.opencastproject.mediapackage.identifier.Id)public void verify()
throws MediaPackageException
MediaPackageverify in interface MediaPackageMediaPackageException - if an error occurs while checking the media packageMediaPackage.verify()public static MediaPackageImpl valueOf(String xml) throws MediaPackageException
xml - the serialized xml stringMediaPackageExceptionpublic int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public Object clone()
clone in interface MediaPackageclone in class ObjectObject.clone()public String toString()
toString in class ObjectObject.toString()public static MediaPackageImpl valueOf(InputStream xml) throws MediaPackageException
xml - the input streamMediaPackageExceptionpublic static MediaPackageImpl valueOf(Node xml) throws MediaPackageException
xml - the nodeMediaPackageExceptionpublic String[] getContributors()
getContributors in interface MediaPackageMediaPackage.getContributors()public String[] getCreators()
getCreators in interface MediaPackageMediaPackage.getCreators()public String getLanguage()
getLanguage in interface MediaPackageMediaPackage.getLanguage()public String getLicense()
getLicense in interface MediaPackageMediaPackage.getLicense()public String getSeries()
getSeries in interface MediaPackageMediaPackage.getSeries()public String[] getSubjects()
getSubjects in interface MediaPackageMediaPackage.getSubjects()public String getTitle()
getTitle in interface MediaPackageMediaPackage.getTitle()public String getSeriesTitle()
getSeriesTitle in interface MediaPackageMediaPackage.getSeriesTitle()public void setSeriesTitle(String seriesTitle)
setSeriesTitle in interface MediaPackageMediaPackage.setSeriesTitle(java.lang.String)public void addContributor(String contributor)
addContributor in interface MediaPackageMediaPackage.addContributor(java.lang.String)public void addCreator(String creator)
addCreator in interface MediaPackageMediaPackage.addCreator(java.lang.String)public void addSubject(String subject)
addSubject in interface MediaPackageMediaPackage.addSubject(java.lang.String)public void removeContributor(String contributor)
removeContributor in interface MediaPackageMediaPackage.removeContributor(java.lang.String)public void removeCreator(String creator)
removeCreator in interface MediaPackageMediaPackage.removeCreator(java.lang.String)public void removeSubject(String subject)
removeSubject in interface MediaPackageMediaPackage.removeSubject(java.lang.String)public void setDate(Date date)
setDate in interface MediaPackageMediaPackage.setDate(java.util.Date)public void setLanguage(String language)
setLanguage in interface MediaPackageMediaPackage.setLanguage(java.lang.String)public void setLicense(String license)
setLicense in interface MediaPackageMediaPackage.setLicense(java.lang.String)public void setSeries(String identifier)
setSeries in interface MediaPackageMediaPackage.setSeries(java.lang.String)public void setTitle(String title)
setTitle in interface MediaPackageMediaPackage.setTitle(java.lang.String)Copyright © 2009–2020 Opencast Project. All rights reserved.