Package org.gbif.api.model.occurrence
Class VerbatimOccurrence
java.lang.Object
org.gbif.api.model.occurrence.VerbatimOccurrence
- Direct Known Subclasses:
Event
,Occurrence
An extended map holding all core terms of an occurrence record.
Major extensions that we index are also supported, i.e. media, identifiers and measurements or facts.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Crawling attempt id.@NotNull UUID
A map holding all verbatim extension terms.Organization key of the installation that hosts the occurrence record.Technical installation that publishes this occurrence record.@NotNull Long
getKey()
The GBIF assigned, persistent key to the occurrence record.The date this record was last crawled/harvested from the endpoint.The date this record was last parsed from raw xml/json into verbatim verbatimFields.The GBIF Network associated to the publishing dataset.GBIF programme acronym/identifier.GBIF project identifier.@NotNull EndpointType
The country of the organization that publishes the dataset to which the occurrence belongs.@NotNull UUID
getVerbatimField
(Term term) Get the value of a specific field (Term).A map holding all verbatim core terms.int
hashCode()
boolean
hasVerbatimField
(Term term) void
setCrawlId
(Integer crawlId) void
setDatasetKey
(UUID datasetKey) void
void
setHostingOrganizationKey
(UUID hostingOrganizationKey) void
setInstallationKey
(UUID installationKey) void
void
setLastCrawled
(Date lastCrawled) void
setLastParsed
(Date lastParsed) void
setNetworkKeys
(List<UUID> networkKeys) void
setProgrammeAcronym
(String programmeAcronym) void
setProjectId
(String projectId) void
setProtocol
(EndpointType protocol) void
setPublishedByGbifRegion
(String gbifRegion) void
setPublishingCountry
(Country publishingCountry) void
setPublishingOrgKey
(UUID publishingOrgKey) void
setVerbatimField
(Term term, String fieldValue) For setting a specific field without having to replace the entire verbatimFields Map.void
setVerbatimFields
(Map<Term, String> verbatimFields) toString()
-
Constructor Details
-
VerbatimOccurrence
public VerbatimOccurrence()
-
-
Method Details
-
getVerbatimField
Get the value of a specific field (Term). -
hasVerbatimField
- Returns:
- true if a verbatim field exists and is not null or an empty string
-
setVerbatimField
For setting a specific field without having to replace the entire verbatimFields Map.- Parameters:
term
- the field to setfieldValue
- the field's value
-
getKey
The GBIF assigned, persistent key to the occurrence record. OccurrenceID itself is kept in the verbatim verbatimFields map. -
setKey
-
getDatasetKey
-
setDatasetKey
-
getPublishingOrgKey
-
setPublishingOrgKey
-
getNetworkKeys
The GBIF Network associated to the publishing dataset. -
setNetworkKeys
-
getInstallationKey
Technical installation that publishes this occurrence record. -
setInstallationKey
-
getPublishingCountry
The country of the organization that publishes the dataset to which the occurrence belongs. -
setPublishingCountry
-
getPublishedByGbifRegion
-
setPublishedByGbifRegion
-
getProtocol
-
setProtocol
-
getLastCrawled
The date this record was last crawled/harvested from the endpoint. -
setLastCrawled
-
getLastParsed
The date this record was last parsed from raw xml/json into verbatim verbatimFields. -
setLastParsed
-
getCrawlId
Crawling attempt id. -
setCrawlId
-
getProjectId
GBIF project identifier. -
setProjectId
-
getProgrammeAcronym
GBIF programme acronym/identifier. -
setProgrammeAcronym
-
getHostingOrganizationKey
Organization key of the installation that hosts the occurrence record. -
setHostingOrganizationKey
-
getVerbatimFields
A map holding all verbatim core terms. -
setVerbatimFields
-
getExtensions
A map holding all verbatim extension terms. -
setExtensions
-
equals
-
hashCode
-
toString
-