public class Identifier extends Object
Constructor and Description |
---|
Identifier() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
@NotNull String |
getIdentifier()
Other known identifier used for the same taxon.
|
String |
getIdentifierLink()
Creates an HTTP link for an identifier if possible by passing it to some known resolvers for the specific id type.
|
String |
getTitle()
The optional title of an identifier, mostly for linking.
|
@NotNull IdentifierType |
getType()
Type of identifier.
|
int |
hashCode() |
void |
setIdentifier(String identifier) |
void |
setTitle(String title) |
void |
setType(IdentifierType type) |
String |
toString() |
public Identifier()
@NotNull public @NotNull String getIdentifier()
Example: urn:lsid:ipni.org:names:692570-1:1.4
public void setIdentifier(String identifier)
identifier
- the identifier to set@Nullable public String getTitle()
@NotNull public @NotNull IdentifierType getType()
IdentifierType
public void setType(IdentifierType type)
type
- the type to set@Nullable public String getIdentifierLink()
IdentifierUtils.getIdentifierLink(String, org.gbif.api.vocabulary.IdentifierType)
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.