Package org.gbif.api.model.checklistbank
Class Description
java.lang.Object
org.gbif.api.model.checklistbank.Description
- All Implemented Interfaces:
NameUsageExtension
Description Model Object represents a taxon description.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAn entity responsible for making contributions to the textual information provided for a description.The author(s) of the textual information provided for a description.Any descriptive free text matching the category given as dc:type.getKey()A unique GBIF identifier for any description.ISO 639-1 language code used for the description.Official permission to do something with the resource.Source reference of this description, a URL or full publication citation.If the source is another name usage this is the taxonKey of that usage.The name usage "taxon" key this description belongs to.getType()Returns the type used to categorize paragraphs of a taxon description.inthashCode()voidsetContributor(String contributor) voidsetCreator(String creator) voidsetDescription(String description) voidvoidsetLanguage(Language language) voidsetLicense(String license) voidvoidsetSourceTaxonKey(Integer sourceTaxonKey) voidsetTaxonKey(Integer taxonKey) voidtoString()
-
Constructor Details
-
Description
public Description()
-
-
Method Details
-
getKey
A unique GBIF identifier for any description. This key is used in the table of contents to retrieve the detailed description. -
setKey
-
getTaxonKey
The name usage "taxon" key this description belongs to.- Specified by:
getTaxonKeyin interfaceNameUsageExtension
-
setTaxonKey
- Specified by:
setTaxonKeyin interfaceNameUsageExtension
-
getContributor
An entity responsible for making contributions to the textual information provided for a description.- Returns:
- the contributor
-
setContributor
- Parameters:
contributor- the contributor to set
-
getCreator
The author(s) of the textual information provided for a description.- Returns:
- the creator
-
setCreator
- Parameters:
creator- the creator to set.
-
getDescription
Any descriptive free text matching the category given as dc:type. The text should be either plain text or formatted with basic HTML tags, i.e. h1-4,p,i,b,a,img,ul and li. All other tags should be removed.- Returns:
- the description
-
setDescription
- Parameters:
description- the description to set
-
getLanguage
ISO 639-1 language code used for the description.- Returns:
- the language
-
setLanguage
- Parameters:
language- the language to set
-
getLicense
Official permission to do something with the resource. Please use Creative Commons URIs if you can.
Example: CC-BY
- Returns:
- the license.
-
setLicense
- Parameters:
license- the license to set
-
getSource
Source reference of this description, a URL or full publication citation.- Specified by:
getSourcein interfaceNameUsageExtension- Returns:
- the source
-
setSource
- Specified by:
setSourcein interfaceNameUsageExtension- Parameters:
source- the source to set
-
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
- Specified by:
setSourceTaxonKeyin interfaceNameUsageExtension
-
getType
Returns the type used to categorize paragraphs of a taxon description. Given the list of types is so broad, an Enum is not used to maintain it. Rather it is kept as plain text.- Returns:
- the type
- See Also:
-
setType
- Parameters:
type- the type to set
-
equals
-
hashCode
-
toString
-