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 booleanequals(Object o)StringgetCoreField(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 IntegergetKey()DategetLastCrawled()The date this record was last crawled during clb indexing.booleanhasCoreField(Term term)booleanhasExtension(Extension extension)booleanhasExtension(Term term)inthashCode()voidsetCoreField(Term term, String fieldValue)For setting a specific field without having to replace the entire fields Map.voidsetExtensions(Map<Extension,List<Map<Term,String>>> extensions)voidsetFields(Map<Term,String> fields)voidsetKey(Integer key)voidsetLastCrawled(Date lastCrawled)StringtoString()
-
-
-
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
-
-