Package org.mycore.pi.doi
Class MCRMapObjectIDDOIGenerator
java.lang.Object
org.mycore.pi.MCRPIGenerator<MCRDigitalObjectIdentifier>
org.mycore.pi.doi.MCRMapObjectIDDOIGenerator
Uses mapping from MCRObjectID base to DOI prefix to generate DOIs.
e.g.
MCR.PI.Generator.MapObjectIDDOI.Prefix.mycore_mods = 10.5072/my.
will map
mycore_mods_00004711
to 10.5072/my.4711
- Author:
- Thomas Scheffler (yagee)
-
Constructor Summary
-
Method Summary
Methods inherited from class org.mycore.pi.MCRPIGenerator
checkPropertyExists, getGeneratorID, getProperties, init, setProperties
-
Constructor Details
-
MCRMapObjectIDDOIGenerator
public MCRMapObjectIDDOIGenerator()
-
-
Method Details
-
generate
public MCRDigitalObjectIdentifier generate(MCRBase mcrObject, String additional) throws MCRPersistentIdentifierException Description copied from class:MCRPIGenerator
generates aMCRPersistentIdentifier
- Specified by:
generate
in classMCRPIGenerator<MCRDigitalObjectIdentifier>
- Parameters:
mcrObject
- the mycore object for which the identifier is generatedadditional
- additional information dedicated to the object like a mcrpath- Returns:
- a unique persistence identifier
- Throws:
MCRPersistentIdentifierException
- if something goes wrong while generating
-