Package org.mycore.mets.model
Class MCRMETSAbstractGenerator
java.lang.Object
org.mycore.mets.model.MCRMETSAbstractGenerator
- All Implemented Interfaces:
MCRMETSGenerator
- Direct Known Subclasses:
MCRMETSDefaultGenerator
,MCRMETSHierarchyGenerator
Base implementation for a METS generator.
- Author:
- Matthias Eichner
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the path to the derivate.Returns a set of paths which should be ignore while creating the mets.xml.Optional<org.mycore.mets.model.Mets>
Returns an optional of the old mets.protected String
getOwner()
Returns the owner of the derivate path, so the derivate id as string.void
setDerivatePath
(MCRPath derivatePath) void
setIgnorePaths
(Set<MCRPath> ignorePaths) void
setOldMets
(org.mycore.mets.model.Mets oldMets) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.mycore.mets.model.MCRMETSGenerator
generate
-
Constructor Details
-
MCRMETSAbstractGenerator
public MCRMETSAbstractGenerator()
-
-
Method Details
-
getDerivatePath
Returns the path to the derivate.- Returns:
- path to the derivate
-
getOldMets
Returns an optional of the old mets. Sometimes a generator needs to copy informations of the previous state of the mets.xml.- Returns:
- optional of the previous mets.xml
-
getIgnorePaths
Returns a set of paths which should be ignore while creating the mets.xml.- Returns:
- set of paths which should be ignored
-
getOwner
Returns the owner of the derivate path, so the derivate id as string.- Returns:
- the derivate id
-
setDerivatePath
-
setIgnorePaths
-
setOldMets
public void setOldMets(org.mycore.mets.model.Mets oldMets)
-