001package org.gbif.api.model.common;
002
003import lombok.AllArgsConstructor;
004import lombok.Builder;
005import lombok.Data;
006
007import lombok.NoArgsConstructor;
008
009import org.gbif.api.v2.RankedName;
010import org.gbif.api.v2.Usage;
011
012import java.util.List;
013
014/**
015 * Represents a classification of a taxon, including its usage, accepted usage,
016 * and any issues associated with it.
017 */
018@Data
019@AllArgsConstructor
020@NoArgsConstructor
021@Builder
022public class Classification {
023
024  /** The usage that has been matched to */
025  private Usage usage;
026  /** The accepted usage of the taxon */
027  private Usage acceptedUsage;
028  /** The taxonomic status **/
029  private String taxonomicStatus;
030  /** The full taxonomic classification of the taxon */
031  private List<RankedName> classification;
032  /** The IUCN status of the taxon */
033  private String iucnRedListCategoryCode;
034  /** The issues associated with the match to this classification */
035  private List<String> issues;
036}