001package org.gbif.api.model.checklistbank;
002
003import org.gbif.api.model.common.MediaObject;
004
005import javax.annotation.Nullable;
006
007/**
008 * An extension to the common MediaObject that adds a source taxon key property from checklistbank.
009 */
010public class NameUsageMediaObject extends MediaObject implements NameUsageExtension {
011
012  private Integer taxonKey;
013  private Integer sourceTaxonKey;
014
015  /**
016   * The name usage "taxon" key this description belongs to.
017   */
018  @Override
019  public Integer getTaxonKey() {
020    return taxonKey;
021  }
022
023  @Override
024  public void setTaxonKey(Integer taxonKey) {
025    this.taxonKey = taxonKey;
026  }
027
028  @Nullable
029  @Override
030  public Integer getSourceTaxonKey() {
031    return sourceTaxonKey;
032  }
033
034  @Override
035  public void setSourceTaxonKey(Integer sourceTaxonKey) {
036    this.sourceTaxonKey = sourceTaxonKey;
037  }
038
039}