public interface MediaPackageReference extends Cloneable
MediaPackageElementRef provides means of pointing to other elements in the media package.
A metadata catalog could for example contain a reference to the track that was used to extract the data contained in it.
| Modifier and Type | Field and Description |
|---|---|
static String |
ANY |
static String |
SELF |
static String |
TYPE_ATTACHMENT |
static String |
TYPE_CATALOG |
static String |
TYPE_MEDIAPACKAGE |
static String |
TYPE_SERIES |
static String |
TYPE_TRACK |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Returns a deep copy of this reference.
|
String |
getIdentifier()
Returns the reference identifier.
|
Map<String,String> |
getProperties()
Returns additional properties that further define what the object is referencing.
|
String |
getProperty(String key)
Returns the property with name
key or null if no such property exists. |
String |
getType()
Returns the reference type.
|
boolean |
matches(MediaPackageReference reference)
Returns
true if this reference matches reference by means of type and identifier. |
void |
setProperty(String key,
String value)
Adds an additional property to further define the object reference.
|
static final String TYPE_MEDIAPACKAGE
static final String TYPE_TRACK
static final String TYPE_CATALOG
static final String TYPE_ATTACHMENT
static final String TYPE_SERIES
static final String SELF
static final String ANY
String getType()
There is a list of well known types describing media package elements:
mediapackage a reference to the parent media packagetrack referes to a track inside the media packagecatalog referes to a catalog inside the media packageattachment referes to an attachment inside the media packageseries referes to a seriesString getIdentifier()
The identifier will usually refer to the id of the media package element, should the reference point to an element
inside the media package (see MediaPackageElement.getIdentifier()).
In case of a reference to another media package, this will reflect the media package id (see
MediaPackage.getIdentifier()) or self if it refers to the parent media package.
boolean matches(MediaPackageReference reference)
true if this reference matches reference by means of type and identifier.reference - the media package referencetrue if the reference matchesMap<String,String> getProperties()
An example would be the point in time for a slide preview:
<attachment ref="track:track-7;time=8764"> </attachment>
String getProperty(String key)
key or null if no such property exists.key - the property namevoid setProperty(String key, String value)
key - The unique keyvalue - The value of the propertyObject clone()
Copyright © 2009–2021 Opencast Project. All rights reserved.