Package org.gbif.api.vocabulary
Enum Class Origin
- All Implemented Interfaces:
Serializable
,Comparable<Origin>
,Constable
Enumeration to classify name usages by how they originated.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGenerated, missing autonym.Placeholder usage for a missing or implicit basionym.Implicit usage from a denormalized classification.Implicit synonym based on the illegitimate ex author.Generated, missing genus or species for "orphaned" lower name.Artificial accepted usage for a synonym if it's missing to preserve the taxonomic hierarchy.Any other origin not covered by the above.Duplicated usage from a single pro parte record.Record came straight from source record.Implicit usage from a verbatim accepted name usage.Implicit usage from a verbatim basionym/original name.Implicit usage from a verbatim parent name usage. -
Method Summary
Modifier and TypeMethodDescriptionstatic Origin
fromString
(String origin) Case-insensitive lookup of an Origin by its name that does not throw an exception but returns null for not found origins.static Origin
Returns the enum constant of this class with the specified name.static Origin[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
SOURCE
Record came straight from source record. -
DENORMED_CLASSIFICATION
Implicit usage from a denormalized classification. -
VERBATIM_PARENT
Implicit usage from a verbatim parent name usage. -
VERBATIM_ACCEPTED
Implicit usage from a verbatim accepted name usage. -
VERBATIM_BASIONYM
Implicit usage from a verbatim basionym/original name. -
PROPARTE
Duplicated usage from a single pro parte record. -
AUTONYM
Generated, missing autonym. -
IMPLICIT_NAME
Generated, missing genus or species for "orphaned" lower name. -
MISSING_ACCEPTED
Artificial accepted usage for a synonym if it's missing to preserve the taxonomic hierarchy. -
BASIONYM_PLACEHOLDER
Placeholder usage for a missing or implicit basionym. -
EX_AUTHOR_SYNONYM
Implicit synonym based on the illegitimate ex author. See ICN article 46: http://www.iapt-taxon.org/nomen/main.php?page=art46 -
OTHER
Any other origin not covered by the above.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromString
Case-insensitive lookup of an Origin by its name that does not throw an exception but returns null for not found origins.- Parameters:
origin
- case-insensitive name of the origin- Returns:
- the matching Origin or null
-