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
public class NameUsageMediaObject extends MediaObject implements NameUsageExtension
An extension to the common MediaObject that adds a source taxon key property from checklistbank.
-
-
Constructor Summary
Constructors Constructor Description NameUsageMediaObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetSourceTaxonKey()If the source is another name usage this is the taxonKey of that usage.IntegergetTaxonKey()The name usage "taxon" key this description belongs to.voidsetSourceTaxonKey(Integer sourceTaxonKey)voidsetTaxonKey(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 Detail
-
NameUsageMediaObject
public NameUsageMediaObject()
-
-
Method Detail
-
getTaxonKey
public Integer getTaxonKey()
The name usage "taxon" key this description belongs to.- Specified by:
getTaxonKeyin interfaceNameUsageExtension
-
setTaxonKey
public void setTaxonKey(Integer taxonKey)
- Specified by:
setTaxonKeyin interfaceNameUsageExtension
-
getSourceTaxonKey
@Nullable public Integer getSourceTaxonKey()
Description copied from interface:NameUsageExtensionIf the source is another name usage this is the taxonKey of that usage. Only useful for the backbone dataset.- Specified by:
getSourceTaxonKeyin interfaceNameUsageExtension- Returns:
- The key of the name usage this instance is derived from.
-
setSourceTaxonKey
public void setSourceTaxonKey(Integer sourceTaxonKey)
- Specified by:
setSourceTaxonKeyin interfaceNameUsageExtension
-
-