Class IdentifierType
- java.lang.Object
-
- de.digitalcollections.model.UniqueObject
-
- de.digitalcollections.model.identifiable.IdentifierType
-
public class IdentifierType extends UniqueObject
Defines an identifier type to be used in the system implementing this library. It is up to the implementor to add all relevant identifier types to his system. Each IdentifierType can be described by a label, a namespace (describing the system) and a regex pattern for validating identifiers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IdentifierType.Builder
-
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 IdentifierType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IdentifierType.Builder
builder()
String
getLabel()
String
getNamespace()
String
getPattern()
void
setLabel(String label)
void
setNamespace(String namespace)
void
setPattern(String pattern)
-
Methods inherited from class de.digitalcollections.model.UniqueObject
equals, getCreated, getLastModified, getUuid, hashCode, init, setCreated, setLastModified, setUuid
-
-
-
-
Method Detail
-
builder
public static IdentifierType.Builder builder()
-
getLabel
public String getLabel()
-
getNamespace
public String getNamespace()
-
getPattern
public String getPattern()
-
setLabel
public void setLabel(String label)
-
setNamespace
public void setNamespace(String namespace)
-
setPattern
public void setPattern(String pattern)
-
-