Class Identifier
- java.lang.Object
-
- de.digitalcollections.model.UniqueObject
-
- de.digitalcollections.model.identifiable.Identifier
-
public class Identifier extends UniqueObject
An Identifier identifies an object uniquely in an external system that created the id. Each system is identified by a namespace.Examples: GND-ID ("gnd:104330171") or VIAF-ID ("viaf:96994450")
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.digitalcollections.model.UniqueObject
UniqueObject.UniqueObjectBuilder<C extends UniqueObject,B extends UniqueObject.UniqueObjectBuilder<C,B>>
-
-
Field Summary
-
Fields inherited from class de.digitalcollections.model.UniqueObject
created, lastModified, uuid
-
-
Constructor Summary
Constructors Constructor Description Identifier()
Identifier(UUID identifiable, String namespace, String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getId()
UUID
getIdentifiable()
String
getNamespace()
int
hashCode()
void
setId(String id)
void
setIdentifiable(UUID identifiable)
void
setNamespace(String namespace)
String
toString()
-
Methods inherited from class de.digitalcollections.model.UniqueObject
getCreated, getLastModified, getUuid, init, setCreated, setLastModified, setUuid
-
-
-
-
Method Detail
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classUniqueObject
-
getId
public String getId()
-
getIdentifiable
public UUID getIdentifiable()
-
getNamespace
public String getNamespace()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classUniqueObject
-
setId
public void setId(String id)
-
setIdentifiable
public void setIdentifiable(UUID identifiable)
-
setNamespace
public void setNamespace(String namespace)
-
-