Package org.gbif.api.model.checklistbank
Class NameUsageMediaObject
java.lang.Object
org.gbif.api.model.common.MediaObject
org.gbif.api.model.checklistbank.NameUsageMediaObject
- All Implemented Interfaces:
NameUsageExtension
An extension to the common MediaObject that adds a source taxon key property from checklistbank.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIf the source is another name usage this is the taxonKey of that usage.The name usage "taxon" key this description belongs to.void
setSourceTaxonKey
(Integer sourceTaxonKey) void
setTaxonKey
(Integer taxonKey) Methods inherited from class org.gbif.api.model.common.MediaObject
equals, getAudience, getContributor, getCreated, getCreator, getDescription, getFormat, getIdentifier, getLicense, getPublisher, getReferences, getRightsHolder, getSource, getTitle, getType, hashCode, setAudience, setContributor, setCreated, setCreator, setDescription, setFormat, setIdentifier, setLicense, setPublisher, setReferences, setRightsHolder, setSource, setTitle, setType, toString
Methods inherited from interface org.gbif.api.model.checklistbank.NameUsageExtension
getSource, setSource
-
Constructor Details
-
NameUsageMediaObject
public NameUsageMediaObject()
-
-
Method Details
-
getTaxonKey
The name usage "taxon" key this description belongs to.- Specified by:
getTaxonKey
in interfaceNameUsageExtension
-
setTaxonKey
- Specified by:
setTaxonKey
in interfaceNameUsageExtension
-
getSourceTaxonKey
Description copied from interface:NameUsageExtension
If the source is another name usage this is the taxonKey of that usage. Only useful for the backbone dataset.- Specified by:
getSourceTaxonKey
in interfaceNameUsageExtension
- Returns:
- The key of the name usage this instance is derived from.
-
setSourceTaxonKey
- Specified by:
setSourceTaxonKey
in interfaceNameUsageExtension
-