Package org.gbif.api.model.common
Class Identifier
java.lang.Object
org.gbif.api.model.common.Identifier
Identifier Model Object represents an alternative identifier for an occurrence or name usage.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
@NotNull String
Other known identifier used for the same taxon.Creates an HTTP link for an identifier if possible by passing it to some known resolvers for the specific id type.getTitle()
The optional title of an identifier, mostly for linking.@NotNull IdentifierType
getType()
Type of identifier.int
hashCode()
void
setIdentifier
(String identifier) void
void
setType
(IdentifierType type) toString()
-
Constructor Details
-
Identifier
public Identifier()
-
-
Method Details
-
getIdentifier
Other known identifier used for the same taxon. Can be a URL pointing to a webpage, an XML or RDF document, a DOI, UUID or any other identifer.Example: urn:lsid:ipni.org:names:692570-1:1.4
- Returns:
- the identifier.
-
setIdentifier
- Parameters:
identifier
- the identifier to set
-
getTitle
The optional title of an identifier, mostly for linking.- Returns:
- the title
-
setTitle
- Parameters:
title
- the identifier title to set
-
getType
Type of identifier.- Returns:
- the type
- See Also:
-
setType
- Parameters:
type
- the type to set
-
getIdentifierLink
Creates an HTTP link for an identifier if possible by passing it to some known resolvers for the specific id type. If no link can be constructed, null is returned.- Returns:
- the url or null if it cannot be created
- See Also:
-
equals
-
hashCode
-
toString
-