Package org.mycore.pi.urn
Class MCRDNBURN
java.lang.Object
org.mycore.pi.urn.MCRUniformResourceName
org.mycore.pi.urn.MCRDNBURN
- All Implemented Interfaces:
MCRPersistentIdentifier
Base class for every DNBURN
- Author:
- Sebastian Hofmann, shermann, Robert Stephan
-
Field Summary
Fields inherited from class org.mycore.pi.urn.MCRUniformResourceName
namespaceSpecificString, PREFIX, subNamespace
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
addLeadingZeroes
(int digits, int value) Method adds leading zeroes to the value parameterint
Calculates the checksum of this urn.toGranular
(String setID, int i, int max) toGranular
(String setID, String index) withNamespaceSuffix
(String suffix) withSuffix
(String suffix) Methods inherited from class org.mycore.pi.urn.MCRUniformResourceName
asString, getSubNamespace
-
Field Details
-
TYPE
- See Also:
-
URN_NID
- See Also:
-
-
Constructor Details
-
MCRDNBURN
-
-
Method Details
-
getPREFIX
- Overrides:
getPREFIX
in classMCRUniformResourceName
-
addLeadingZeroes
Method adds leading zeroes to the value parameter- Parameters:
digits
- the amount of digitsvalue
- the value to which the zeroes to add
-
toGranular
-
withSuffix
-
withNamespaceSuffix
-
toGranular
-
getNamespaceSpecificString
- Overrides:
getNamespaceSpecificString
in classMCRUniformResourceName
-
calculateChecksum
public int calculateChecksum()Calculates the checksum of this urn. Checksum is calculated for urn with the following structureurn:nbn:de:<your stuff here>
. For other schemas the calculated checksum may not be correct.- Returns:
- the calculated checksum
- See Also:
-