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 TypeMethodDescriptionbooleanCrawling attempt id.@NotNull UUIDA map holding all verbatim extension terms.Organization key of the installation that hosts the occurrence record.Technical installation that publishes this occurrence record.@NotNull LonggetKey()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 EndpointTypeThe country of the organization that publishes the dataset to which the occurrence belongs.@NotNull UUIDgetVerbatimField(Term term) Get the value of a specific field (Term).A map holding all verbatim core terms.inthashCode()booleanhasVerbatimField(Term term) voidsetCrawlId(Integer crawlId) voidsetDatasetKey(UUID datasetKey) voidvoidsetHostingOrganizationKey(UUID hostingOrganizationKey) voidsetInstallationKey(UUID installationKey) voidvoidsetLastCrawled(Date lastCrawled) voidsetLastParsed(Date lastParsed) voidsetNetworkKeys(List<UUID> networkKeys) voidsetProgrammeAcronym(String programmeAcronym) voidsetProjectId(String projectId) voidsetProtocol(EndpointType protocol) voidsetPublishedByGbifRegion(String gbifRegion) voidsetPublishingCountry(Country publishingCountry) voidsetPublishingOrgKey(UUID publishingOrgKey) voidsetVerbatimField(Term term, String fieldValue) For setting a specific field without having to replace the entire verbatimFields Map.voidsetVerbatimFields(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
-