Class VernacularName
- java.lang.Object
-
- org.gbif.api.model.checklistbank.VernacularName
-
- All Implemented Interfaces:
NameUsageExtension
public class VernacularName extends Object implements NameUsageExtension
VernacularName Model Object represents a vernacular name for a scientific taxon.- See Also:
- Vernacular Name Definition
-
-
Constructor Summary
Constructors Constructor Description VernacularName()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetArea()The area for the vernacular name.CountrygetCountry()The country in which the vernacular name is used.LanguagegetLanguage()ISO 639-1 language code used for the vernacular name value.LifeStagegetLifeStage()The age class or life stage of the species for which the vernacular name applies.SexgetSex()The sex (gender) of the taxon for which the vernacular name applies when the vernacular name is limited to a specific gender of a species.StringgetSource()Bibliographic citation referencing a source where the vernacular name refers to the cited species.IntegergetSourceTaxonKey()If the source is another name usage this is the taxonKey of that usage.IntegergetTaxonKey()The name usage "taxon" key to which this vernacular name belongs.@NotNull StringgetVernacularName()A common or vernacular name.inthashCode()BooleanisPlural()This value is true if the vernacular name it qualifies refers to a plural form of the name.BooleanisPreferred()This term is true if the source citing the use of this vernacular name indicates the usage has some preference or specific standing over other possible vernacular names used for the species.voidsetArea(String area)voidsetCountry(Country country)voidsetLanguage(Language language)voidsetLifeStage(LifeStage lifeStage)voidsetPlural(Boolean plural)voidsetPreferred(Boolean preferred)voidsetSex(Sex sex)voidsetSource(String source)voidsetSourceTaxonKey(Integer sourceTaxonKey)voidsetTaxonKey(Integer taxonKey)voidsetVernacularName(String vernacularName)StringtoString()
-
-
-
Constructor Detail
-
VernacularName
public VernacularName()
-
-
Method Detail
-
getTaxonKey
public Integer getTaxonKey()
The name usage "taxon" key to which this vernacular name belongs.- Specified by:
getTaxonKeyin interfaceNameUsageExtension
-
setTaxonKey
public void setTaxonKey(Integer taxonKey)
- Specified by:
setTaxonKeyin interfaceNameUsageExtension
-
getCountry
@Nullable public Country getCountry()
The country in which the vernacular name is used.- Returns:
- the country
-
setCountry
public void setCountry(Country country)
- Parameters:
country- the country to set
-
getLanguage
@Nullable public Language getLanguage()
ISO 639-1 language code used for the vernacular name value.Example: es
- Returns:
- the language
-
setLanguage
public void setLanguage(Language language)
- Parameters:
language- the language to set
-
getLifeStage
@Nullable public LifeStage getLifeStage()
The age class or life stage of the species for which the vernacular name applies. Best practice is to utilise a controlled list of terms for this value.Example: "juvenile" is the life stage of the fish Pomatomus saltatrix for which the name "snapper blue" refers.
- Returns:
- the lifeStage
- See Also:
- Life Stage GBIF Vocabulary
-
setLifeStage
public void setLifeStage(LifeStage lifeStage)
- Parameters:
lifeStage- the lifeStage to set
-
getSex
@Nullable public Sex getSex()
The sex (gender) of the taxon for which the vernacular name applies when the vernacular name is limited to a specific gender of a species. If not limited sex should be empty. For example the vernacular name "Buck" applies to the "Male" gender of the species, Odocoileus virginianus.Example: male.
- Returns:
- the sex
- See Also:
- Sex GBIF Vocabulary
-
getSource
@Nullable public String getSource()
Bibliographic citation referencing a source where the vernacular name refers to the cited species.Example: Peterson Field Guide to the Eastern Seashore, Houghton Mifflin Co, 1961, p131.
- Specified by:
getSourcein interfaceNameUsageExtension- Returns:
- the source
-
setSource
public void setSource(String source)
- Specified by:
setSourcein interfaceNameUsageExtension- Parameters:
source- the source to set
-
getSourceTaxonKey
@Nullable public Integer getSourceTaxonKey()
Description copied from interface:NameUsageExtensionIf the source is another name usage this is the taxonKey of that usage. Only useful for the backbone dataset.- Specified by:
getSourceTaxonKeyin interfaceNameUsageExtension- Returns:
- The key of the name usage this instance is derived from.
-
setSourceTaxonKey
public void setSourceTaxonKey(Integer sourceTaxonKey)
- Specified by:
setSourceTaxonKeyin interfaceNameUsageExtension
-
getVernacularName
@NotNull public @NotNull String getVernacularName()
A common or vernacular name.Example: Andean Condor", "Condor Andino", "American Eagle", "Gänsegeier".
- Returns:
- the vernacularName
-
setVernacularName
public void setVernacularName(String vernacularName)
- Parameters:
vernacularName- the vernacularName to set
-
isPlural
@Nullable public Boolean isPlural()
This value is true if the vernacular name it qualifies refers to a plural form of the name.Example: The term "Schoolies" is the plural form of a name used along the coastal Northeastern U.S. for groups of juvenile fish of the species, Morone saxatilis.
- Returns:
- the plural
- See Also:
- Boolean Vocabulary
-
isPreferred
@Nullable public Boolean isPreferred()
This term is true if the source citing the use of this vernacular name indicates the usage has some preference or specific standing over other possible vernacular names used for the species.Example: Some organisations have attempted to assign specific and unique vernacular names for particular taxon groups in a systematic attempt to bring order and consistency to the use of these names. For example, the American Ornithological Union assigns the name "Pearl Kite" for the taxon, Gampsonyx swainsonii. The value of isPreferredName for this record would be true.
- Returns:
- the preferred
- See Also:
- Boolean Vocabulary
-
setPreferred
public void setPreferred(Boolean preferred)
- Parameters:
preferred- the preferred to set
-
-