Package org.gbif.api.model.common
Class MediaObject
- java.lang.Object
-
- org.gbif.api.model.common.MediaObject
-
- Direct Known Subclasses:
NameUsageMediaObject
public class MediaObject extends Object
Metadata for a multimedia object representing an image, video or audio file. Based on DublinCore and the Simple Multimedia dwc archive extension:- See Also:
- Multimedia Definition
-
-
Constructor Summary
Constructors Constructor Description MediaObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetAudience()StringgetContributor()DategetCreated()The date and time this media item was taken.StringgetCreator()The person that created the media item.StringgetDescription()A longer description for this media item.StringgetFormat()@NotNull URIgetIdentifier()The public URL that identifies and locates the media item.StringgetLicense()Licence for this media item.StringgetPublisher()An entity responsible for making the media item available.URIgetReferences()StringgetRightsHolder()StringgetSource()StringgetTitle()The media item title.@NotNull MediaTypegetType()inthashCode()voidsetAudience(String audience)voidsetContributor(String contributor)voidsetCreated(Date created)voidsetCreator(String creator)voidsetDescription(String description)voidsetFormat(String format)voidsetIdentifier(URI identifier)voidsetLicense(String license)voidsetPublisher(String publisher)voidsetReferences(URI references)voidsetRightsHolder(String rightsHolder)voidsetSource(String source)voidsetTitle(String title)voidsetType(MediaType type)StringtoString()
-
-
-
Constructor Detail
-
MediaObject
public MediaObject()
-
-
Method Detail
-
getCreated
@Nullable public Date getCreated()
The date and time this media item was taken.Example: 2010-09-29.
- Returns:
- the created
-
setCreated
public void setCreated(Date created)
- Parameters:
created- the created to set
-
getCreator
@Nullable public String getCreator()
The person that created the media item.Example: David Remsen.
- Returns:
- the creator
-
setCreator
public void setCreator(String creator)
- Parameters:
creator- the creator to set
-
getDescription
@Nullable public String getDescription()
A longer description for this media item.Example: Female Tachycineta albiventer photographed in the Amazon, Brazil, in November 2010.
- Returns:
- the description
-
setDescription
public void setDescription(String description)
- Parameters:
description- the description to set
-
getIdentifier
@NotNull public @NotNull URI getIdentifier()
The public URL that identifies and locates the media item.Example: http://farm6.static.flickr.com/5127/5242866958_98afd8cbce_o.jpg
-
setIdentifier
public void setIdentifier(URI identifier)
-
getLicense
@Nullable public String getLicense()
Licence for this media item. Can be text or an identifier like Creative Commons uses.Example: http://creativecommons.org/licenses /by-nc-sa/2.0/deed.en
- Returns:
- the license
-
setLicense
public void setLicense(String license)
- Parameters:
license- the license to set
-
getReferences
public URI getReferences()
- Returns:
- link to html webpage with the media item on
-
setReferences
public void setReferences(URI references)
-
getPublisher
@Nullable public String getPublisher()
An entity responsible for making the media item available.Example: Encyclopedia of Life.
- Returns:
- the publisher
-
setPublisher
public void setPublisher(String publisher)
- Parameters:
publisher- the publisher to set
-
getTitle
@Nullable public String getTitle()
The media item title.Example: Andorinha-do-rio (Tachycineta albiventer).
- Returns:
- the title.
-
getAudience
public String getAudience()
-
setAudience
public void setAudience(String audience)
-
getContributor
public String getContributor()
-
setContributor
public void setContributor(String contributor)
-
getRightsHolder
public String getRightsHolder()
-
setRightsHolder
public void setRightsHolder(String rightsHolder)
-
-