Package org.gbif.api.model.common
Class MediaObject
java.lang.Object
org.gbif.api.model.common.MediaObject
- Direct Known Subclasses:
NameUsageMediaObject
Metadata for a multimedia object representing an image, video or audio file.
Based on DublinCore and the Simple Multimedia dwc archive extension:
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe date and time this media item was taken.The person that created the media item.A longer description for this media item.@NotNull URIThe public URL that identifies and locates the media item.Licence for this media item.An entity responsible for making the media item available.getTitle()The media item title.@NotNull MediaTypegetType()inthashCode()voidsetAudience(String audience) voidsetContributor(String contributor) voidsetCreated(Date created) voidsetCreator(String creator) voidsetDescription(String description) voidvoidsetIdentifier(URI identifier) voidsetLicense(String license) voidsetPublisher(String publisher) voidsetReferences(URI references) voidsetRightsHolder(String rightsHolder) voidvoidvoidtoString()
-
Constructor Details
-
MediaObject
public MediaObject()
-
-
Method Details
-
getFormat
- Returns:
- mime type of the file
-
setFormat
-
getCreated
The date and time this media item was taken.Example: 2010-09-29.
- Returns:
- the created
-
setCreated
- Parameters:
created- the created to set
-
getCreator
The person that created the media item.Example: David Remsen.
- Returns:
- the creator
-
setCreator
- Parameters:
creator- the creator to set
-
getDescription
A longer description for this media item.Example: Female Tachycineta albiventer photographed in the Amazon, Brazil, in November 2010.
- Returns:
- the description
-
setDescription
- Parameters:
description- the description to set
-
getType
-
setType
-
getIdentifier
The public URL that identifies and locates the media item.Example: http://farm6.static.flickr.com/5127/5242866958_98afd8cbce_o.jpg
-
setIdentifier
-
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
- Parameters:
license- the license to set
-
getReferences
- Returns:
- link to html webpage with the media item on
-
setReferences
-
getPublisher
An entity responsible for making the media item available.Example: Encyclopedia of Life.
- Returns:
- the publisher
-
setPublisher
- Parameters:
publisher- the publisher to set
-
getTitle
The media item title.Example: Andorinha-do-rio (Tachycineta albiventer).
- Returns:
- the title.
-
setTitle
- Parameters:
title- the title to set
-
getSource
-
setSource
-
getAudience
-
setAudience
-
getContributor
-
setContributor
-
getRightsHolder
-
setRightsHolder
-
equals
-
hashCode
-
toString
-