Package org.gbif.api.vocabulary
Enum Class NamePart
- All Implemented Interfaces:
Serializable,Comparable<NamePart>,Constable
Deprecated.
Enumeration to indicate a part of a canonical scientific name.
Deprecated.
Please use the name parser enum instead.
https://github.com/gbif/name-parser/blob/master/name-parser-api/src/main/java/org/gbif/nameparser/api/NamePart.java
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.Deprecated.Deprecated.Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic NamePartfromString(String namePart) Deprecated.Case insensitive lookup of a NamePart by its name that does not throw an exception but returns null for a not found NamePart.static NamePartDeprecated.Returns the enum constant of this class with the specified name.static NamePart[]values()Deprecated.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
-
GENERIC
Deprecated. -
INFRAGENERIC
Deprecated. -
SPECIFIC
Deprecated. -
INFRASPECIFIC
Deprecated.
-
-
Method Details
-
values
Deprecated.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
Deprecated.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
Deprecated.Case insensitive lookup of a NamePart by its name that does not throw an exception but returns null for a not found NamePart.- Parameters:
namePart- case insensitive name of name part- Returns:
- the matching NamePart or null
-