public class Identifier extends Object
| Constructor and Description |
|---|
Identifier(String value) |
Identifier(String value,
IdentifierType idType)
Constructs an identifier using the controlled list values proposed
by DataCite.
|
Identifier(String value,
String type) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getType()
Retrieves the type of the identifier.
|
String |
getValue()
Retrieves the unique string that identifies a resource.
|
int |
hashCode() |
void |
setType(IdentifierType idType)
Sets the type of the identifier.
|
void |
setType(String idType)
Sets the type of the identifier.
|
String |
toString() |
public Identifier(String value, IdentifierType idType)
value - an identifier stringidType - a DataCite controlled list identifier typepublic Identifier(String value)
public void setType(String idType)
idType - the type of the identifierpublic void setType(IdentifierType idType)
idType - the type of the identifierpublic String getValue()
public String getType()
protected boolean canEqual(Object other)
Copyright © 2017–2019. All rights reserved.