public interface MediaPackageElementBuilder
| Modifier and Type | Method and Description |
|---|---|
MediaPackageElement |
elementFromManifest(Node elementNode,
MediaPackageSerializer serializer)
Creates a media package element from the DOM element.
|
MediaPackageElement |
elementFromURI(URI uri)
Creates a media package element from the given file that was previously accepted.
|
MediaPackageElement |
elementFromURI(URI uri,
MediaPackageElement.Type type,
MediaPackageElementFlavor flavor)
Creates a media package element from the given file that was previously accepted, while
type and
flavor may be taken as strong hints and may both be null. |
MediaPackageElement |
newElement(MediaPackageElement.Type type,
MediaPackageElementFlavor flavor)
Creates a new media package elment of the specified type.
|
MediaPackageElement elementFromURI(URI uri) throws UnsupportedElementException
Since only the file is given, it is possible, that the best builder plugin cannot be uniquely identified and may require additional contraints, e. g. a matching filename. Be sure to check the documentation of the corresponding plugin for details.
uri - the element locationUnsupportedElementException - if creating the media package element failsMediaPackageElement elementFromURI(URI uri, MediaPackageElement.Type type, MediaPackageElementFlavor flavor) throws UnsupportedElementException
type and
flavor may be taken as strong hints and may both be null.
If only the file is given, it is possible, that the best suited builder plugin cannot be uniquely identified and may require additional contraints, e. g. a matching filename. Be sure to check the documentation of the corresponding builder plugin for details.
uri - the element locationtype - the element typeflavor - the element flavorUnsupportedElementException - if creating the media package element failsMediaPackageElement elementFromManifest(Node elementNode, MediaPackageSerializer serializer) throws UnsupportedElementException
elementNode - the DOM nodeserializer - the media package serializerUnsupportedElementException - if reading the file from manifest failsMediaPackageElement newElement(MediaPackageElement.Type type, MediaPackageElementFlavor flavor)
type - the element typeflavor - the element flavorCopyright © 2009–2020 Opencast Project. All rights reserved.