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 boolean
equals(Object o)
String
getAudience()
String
getContributor()
Date
getCreated()
The date and time this media item was taken.String
getCreator()
The person that created the media item.String
getDescription()
A longer description for this media item.String
getFormat()
@NotNull URI
getIdentifier()
The public URL that identifies and locates the media item.String
getLicense()
Licence for this media item.String
getPublisher()
An entity responsible for making the media item available.URI
getReferences()
String
getRightsHolder()
String
getSource()
String
getTitle()
The media item title.@NotNull MediaType
getType()
int
hashCode()
void
setAudience(String audience)
void
setContributor(String contributor)
void
setCreated(Date created)
void
setCreator(String creator)
void
setDescription(String description)
void
setFormat(String format)
void
setIdentifier(URI identifier)
void
setLicense(String license)
void
setPublisher(String publisher)
void
setReferences(URI references)
void
setRightsHolder(String rightsHolder)
void
setSource(String source)
void
setTitle(String title)
void
setType(MediaType type)
String
toString()
-
-
-
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)
-
-