Package org.gbif.api.vocabulary
Enum IdentifierType
- java.lang.Object
-
- java.lang.Enum<IdentifierType>
-
- org.gbif.api.vocabulary.IdentifierType
-
- All Implemented Interfaces:
Serializable
,Comparable<IdentifierType>
public enum IdentifierType extends Enum<IdentifierType>
Enumeration for all possible identifier types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CITES
https://cites.org/CLB_DATASET_KEY
ChecklistBank dataset keys (integer) https://www.checklistbank.org/datasetDOI
FTP
GBIF_NODE
Identifies the node (e.g: 'DK' for Denmark, 'sp2000' for Species 2000).GBIF_PARTICIPANT
Participant identifier from the GBIF Directory.GBIF_PORTAL
Indicates the identifier originated from an auto_increment column in the portal.data_provider or portal.data_resource table respectively.GRID
https://www.grid.ac/institutes/GRSCICOLL_ID
ID migrated from GrSciColl.GRSCICOLL_URI
Cool URI migrated from GrSciColl.HANDLER
IH_IRN
IRN of an IH record.ISIL
https://slks.dk/english/work-areas/libraries-and-literature/library-standards/isilLSID
Reference controlled by a separate system, used for example by DOI.NCBI_BIOCOLLECTION
https://www.ncbi.nlm.nih.gov/ROR
Research Organization Registry.SYMBIOTA_UUID
Symbiota IDs to help linking GrSciColl occurrences.UNKNOWN
URI
URL
UUID
WIKIDATA
-
Field Summary
Fields Modifier and Type Field Description static List<IdentifierType>
TYPES
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IdentifierType
fromString(String identifierType)
static IdentifierType
inferFrom(String identifier)
Tries to infer the identifier type from a given identifier.static IdentifierType
valueOf(String name)
Returns the enum constant of this type with the specified name.static IdentifierType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
URL
public static final IdentifierType URL
-
LSID
public static final IdentifierType LSID
Reference controlled by a separate system, used for example by DOI. {http://en.wikipedia.org/wiki/Handle_(computing)}
-
HANDLER
public static final IdentifierType HANDLER
-
DOI
public static final IdentifierType DOI
-
UUID
public static final IdentifierType UUID
-
FTP
public static final IdentifierType FTP
-
URI
public static final IdentifierType URI
-
UNKNOWN
public static final IdentifierType UNKNOWN
-
GBIF_PORTAL
public static final IdentifierType GBIF_PORTAL
Indicates the identifier originated from an auto_increment column in the portal.data_provider or portal.data_resource table respectively.
-
GBIF_NODE
public static final IdentifierType GBIF_NODE
Identifies the node (e.g: 'DK' for Denmark, 'sp2000' for Species 2000).
-
GBIF_PARTICIPANT
public static final IdentifierType GBIF_PARTICIPANT
Participant identifier from the GBIF Directory.
-
GRSCICOLL_ID
public static final IdentifierType GRSCICOLL_ID
ID migrated from GrSciColl.
-
GRSCICOLL_URI
public static final IdentifierType GRSCICOLL_URI
Cool URI migrated from GrSciColl.
-
IH_IRN
public static final IdentifierType IH_IRN
IRN of an IH record.
-
ROR
public static final IdentifierType ROR
Research Organization Registry. https://ror.org
-
GRID
public static final IdentifierType GRID
https://www.grid.ac/institutes/
-
CITES
public static final IdentifierType CITES
https://cites.org/
-
SYMBIOTA_UUID
public static final IdentifierType SYMBIOTA_UUID
Symbiota IDs to help linking GrSciColl occurrences.
-
WIKIDATA
public static final IdentifierType WIKIDATA
-
NCBI_BIOCOLLECTION
public static final IdentifierType NCBI_BIOCOLLECTION
https://www.ncbi.nlm.nih.gov/
-
ISIL
public static final IdentifierType ISIL
https://slks.dk/english/work-areas/libraries-and-literature/library-standards/isil
-
CLB_DATASET_KEY
public static final IdentifierType CLB_DATASET_KEY
ChecklistBank dataset keys (integer) https://www.checklistbank.org/dataset
-
-
Field Detail
-
TYPES
public static final List<IdentifierType> TYPES
-
-
Method Detail
-
values
public static IdentifierType[] 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 (IdentifierType c : IdentifierType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IdentifierType 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
-
fromString
public static IdentifierType fromString(String identifierType)
- Returns:
- the matching IdentifierType or null
-
inferFrom
public static IdentifierType inferFrom(@Nullable String identifier)
Tries to infer the identifier type from a given identifier. Most identifiers have a URI protocol prefix or a specific structure that allows the guess.- Returns:
- the inferred identifier type or Unknown if identifier is null or cant be inferred.
-
-