Package org.gbif.api.vocabulary
Enum AgentIdentifierType
- java.lang.Object
-
- java.lang.Enum<AgentIdentifierType>
-
- org.gbif.api.vocabulary.AgentIdentifierType
-
- All Implemented Interfaces:
Serializable
,Comparable<AgentIdentifierType>
public enum AgentIdentifierType extends Enum<AgentIdentifierType>
Enumeration for user identifiers like ORCID, WIKIDATA and etc
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AgentIdentifierType
valueOf(String name)
Returns the enum constant of this type with the specified name.static AgentIdentifierType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ORCID
public static final AgentIdentifierType ORCID
-
WIKIDATA
public static final AgentIdentifierType WIKIDATA
-
OTHER
public static final AgentIdentifierType OTHER
-
-
Method Detail
-
values
public static AgentIdentifierType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AgentIdentifierType c : AgentIdentifierType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AgentIdentifierType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-