Package org.gbif.api.model.checklistbank
Class VerbatimNameUsage
- java.lang.Object
-
- org.gbif.api.model.checklistbank.VerbatimNameUsage
-
public class VerbatimNameUsage extends Object
-
-
Constructor Summary
Constructors Constructor Description VerbatimNameUsage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getCoreField(Term term)
Get the value of a specific field (Term).@NotNull Map<Extension,List<Map<Term,String>>>
getExtensions()
A map of extension records, holding all verbatim extension terms.@NotNull Map<Term,String>
getFields()
A map holding all verbatim core terms.@NotNull Integer
getKey()
Date
getLastCrawled()
The date this record was last crawled during clb indexing.boolean
hasCoreField(Term term)
boolean
hasExtension(Extension extension)
boolean
hasExtension(Term term)
int
hashCode()
void
setCoreField(Term term, String fieldValue)
For setting a specific field without having to replace the entire fields Map.void
setExtensions(Map<Extension,List<Map<Term,String>>> extensions)
void
setFields(Map<Term,String> fields)
void
setKey(Integer key)
void
setLastCrawled(Date lastCrawled)
String
toString()
-
-
-
Constructor Detail
-
VerbatimNameUsage
public VerbatimNameUsage()
-
-
Method Detail
-
getExtensions
@NotNull public @NotNull Map<Extension,List<Map<Term,String>>> getExtensions()
A map of extension records, holding all verbatim extension terms.
-
getFields
@NotNull public @NotNull Map<Term,String> getFields()
A map holding all verbatim core terms.
-
getLastCrawled
@Nullable public Date getLastCrawled()
The date this record was last crawled during clb indexing.
-
setLastCrawled
public void setLastCrawled(@Nullable Date lastCrawled)
-
getCoreField
@Nullable public String getCoreField(Term term)
Get the value of a specific field (Term).
-
hasCoreField
public boolean hasCoreField(Term term)
- Returns:
- true if a verbatim field exists and is not null or an empty string
-
hasExtension
public boolean hasExtension(Extension extension)
- Returns:
- true if at least one extension record exists
-
hasExtension
public boolean hasExtension(Term term)
-
setCoreField
public void setCoreField(Term term, @Nullable String fieldValue)
For setting a specific field without having to replace the entire fields Map.- Parameters:
term
- the field to setfieldValue
- the field's value
-
-