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 Integer
getSourceTaxonKey()
If the source is another name usage this is the taxonKey of that usage.Integer
getTaxonKey()
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 Detail
-
NameUsageMediaObject
public NameUsageMediaObject()
-
-
Method Detail
-
getTaxonKey
public Integer getTaxonKey()
The name usage "taxon" key this description belongs to.- Specified by:
getTaxonKey
in interfaceNameUsageExtension
-
setTaxonKey
public void setTaxonKey(Integer taxonKey)
- Specified by:
setTaxonKey
in interfaceNameUsageExtension
-
getSourceTaxonKey
@Nullable public Integer 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
public void setSourceTaxonKey(Integer sourceTaxonKey)
- Specified by:
setSourceTaxonKey
in interfaceNameUsageExtension
-
-