Package org.opencastproject.metadata.api
Class MediapackageMetadataImpl
- java.lang.Object
-
- org.opencastproject.metadata.api.MediapackageMetadataImpl
-
- All Implemented Interfaces:
MediaPackageMetadata
public class MediapackageMetadataImpl extends Object implements MediaPackageMetadata
Provides metadata for aMediaPackageMetadata.
-
-
Field Summary
Fields Modifier and Type Field Description protected String[]contributorsprotected String[]creatorsprotected Datedateprotected Stringlanguageprotected Stringlicenseprotected StringseriesIdentifierprotected StringseriesTitleprotected String[]subjectsprotected Stringtitle
-
Constructor Summary
Constructors Constructor Description MediapackageMetadataImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getContributors()The contributors.String[]getCreators()The names of the creators.DategetDate()Returns the media package start time.StringgetLanguage()The language spoken in the mediaStringgetLicense()The license under which this episode is availableStringgetSeriesIdentifier()The series, if any, that this episode belongs to.StringgetSeriesTitle()Returns the title for the associated series, if any.String[]getSubjects()The subjects.StringgetTitle()Returns the title of the episode that this mediapackage represents.voidsetContributors(String[] contributors)Sets the mediapackage's contributors.voidsetCreators(String[] creators)Sets the list of creators.voidsetDate(Date date)Sets the mediapackage's creation date.voidsetLanguage(String language)Sets the mediapackage's language.voidsetLicense(String license)Sets the mediapackage license.voidsetSeriesIdentifier(String seriesIdentifier)Sets the series identifiervoidsetSeriesTitle(String seriesTitle)Sets the series title.voidsetSubjects(String[] subjects)Sets the mediapackage's subjects.voidsetTitle(String title)Sets the media package's title.
-
-
-
Field Detail
-
title
protected String title
-
seriesTitle
protected String seriesTitle
-
seriesIdentifier
protected String seriesIdentifier
-
creators
protected String[] creators
-
contributors
protected String[] contributors
-
subjects
protected String[] subjects
-
language
protected String language
-
license
protected String license
-
date
protected Date date
-
-
Method Detail
-
getTitle
public String getTitle()
Returns the title of the episode that this mediapackage represents.- Specified by:
getTitlein interfaceMediaPackageMetadata- Returns:
- The episode title
-
setTitle
public void setTitle(String title)
Sets the media package's title.- Parameters:
title- the title
-
getSeriesTitle
public String getSeriesTitle()
Returns the title for the associated series, if any.- Specified by:
getSeriesTitlein interfaceMediaPackageMetadata- Returns:
- The series title
-
setSeriesTitle
public void setSeriesTitle(String seriesTitle)
Sets the series title.- Parameters:
seriesTitle- the series title
-
getSeriesIdentifier
public String getSeriesIdentifier()
The series, if any, that this episode belongs to.- Specified by:
getSeriesIdentifierin interfaceMediaPackageMetadata- Returns:
- the series for this mediapackage
-
setSeriesIdentifier
public void setSeriesIdentifier(String seriesIdentifier)
Sets the series identifier- Parameters:
seriesIdentifier- the series identifier
-
getCreators
public String[] getCreators()
The names of the creators. If no creators were specified, an empty array is returned.- Specified by:
getCreatorsin interfaceMediaPackageMetadata- Returns:
- the creators for this mediapackage
-
setCreators
public void setCreators(String[] creators)
Sets the list of creators.- Parameters:
creators- the creators
-
getContributors
public String[] getContributors()
Description copied from interface:MediaPackageMetadataThe contributors. If no contributors were specified, an empty array is returned.- Specified by:
getContributorsin interfaceMediaPackageMetadata- Returns:
- the contributors for this mediapackage
-
setContributors
public void setContributors(String[] contributors)
Sets the mediapackage's contributors.- Parameters:
contributors- the contributors
-
getSubjects
public String[] getSubjects()
The subjects. If no subjects were specified, an empty array is returned.- Specified by:
getSubjectsin interfaceMediaPackageMetadata- Returns:
- the subjects for this mediapackage
-
setSubjects
public void setSubjects(String[] subjects)
Sets the mediapackage's subjects.- Parameters:
subjects- the subjects
-
getLanguage
public String getLanguage()
The language spoken in the media- Specified by:
getLanguagein interfaceMediaPackageMetadata- Returns:
- the language for this mediapackage
-
setLanguage
public void setLanguage(String language)
Sets the mediapackage's language.- Parameters:
language- the language
-
getLicense
public String getLicense()
The license under which this episode is available- Specified by:
getLicensein interfaceMediaPackageMetadata- Returns:
- the license for this mediapackage
-
setLicense
public void setLicense(String license)
Sets the mediapackage license.- Parameters:
license- the license
-
getDate
public Date getDate()
Returns the media package start time.- Specified by:
getDatein interfaceMediaPackageMetadata- Returns:
- the start time
-
setDate
public void setDate(Date date)
Sets the mediapackage's creation date.- Parameters:
date- the creation date
-
-