Package org.mycore.pi
Class MCRPIGenerator<T extends MCRPersistentIdentifier>
java.lang.Object
org.mycore.pi.MCRPIGenerator<T>
- Direct Known Subclasses:
MCRCreateDateDOIGenerator
,MCRDNBURNGenerator
,MCRGenericPIGenerator
,MCRIDPURLGenerator
,MCRMapObjectIDDOIGenerator
,MCRStaticDOIGenerator
,MCRUUIDDOIGenerator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkPropertyExists
(String propertyName) checks if the property exists and throws a exception if not.abstract T
generates aMCRPersistentIdentifier
void
void
setProperties
(Map<String, String> properties)
-
Constructor Details
-
MCRPIGenerator
public MCRPIGenerator()
-
-
Method Details
-
getProperties
-
init
-
setProperties
-
generate
public abstract T generate(MCRBase mcrBase, String additional) throws MCRPersistentIdentifierException generates aMCRPersistentIdentifier
- 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
-
checkPropertyExists
checks if the property exists and throws a exception if not.- Parameters:
propertyName
- to check- Throws:
MCRConfigurationException
- if property does not exist
-
getGeneratorID
-