Package org.mycore.pi.doi
Class MCRStaticDOIGenerator
Just for testing. Provides the doi in the doi property.
-
Constructor Summary
-
Method Summary
Methods inherited from class org.mycore.pi.MCRPIGenerator
checkPropertyExists, getGeneratorID, getProperties, init, setProperties
-
Constructor Details
-
MCRStaticDOIGenerator
public MCRStaticDOIGenerator()
-
-
Method Details
-
generate
public MCRDigitalObjectIdentifier generate(MCRBase mcrBase, String additional) throws MCRPersistentIdentifierException Description copied from class:MCRPIGenerator
generates aMCRPersistentIdentifier
- Specified by:
generate
in classMCRPIGenerator<MCRDigitalObjectIdentifier>
- Parameters:
mcrBase
- 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
-