Class MCRMETSAbstractGenerator

java.lang.Object
org.mycore.mets.model.MCRMETSAbstractGenerator
All Implemented Interfaces:
MCRMETSGenerator
Direct Known Subclasses:
MCRMETSDefaultGenerator, MCRMETSHierarchyGenerator

public abstract class MCRMETSAbstractGenerator extends Object implements MCRMETSGenerator
Base implementation for a METS generator.
Author:
Matthias Eichner
  • Constructor Details

    • MCRMETSAbstractGenerator

      public MCRMETSAbstractGenerator()
  • Method Details

    • getDerivatePath

      public MCRPath getDerivatePath()
      Returns the path to the derivate.
      Returns:
      path to the derivate
    • getOldMets

      public Optional<org.mycore.mets.model.Mets> 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

      public Set<MCRPath> getIgnorePaths()
      Returns a set of paths which should be ignore while creating the mets.xml.
      Returns:
      set of paths which should be ignored
    • getOwner

      protected String getOwner()
      Returns the owner of the derivate path, so the derivate id as string.
      Returns:
      the derivate id
    • setDerivatePath

      public void setDerivatePath(MCRPath derivatePath)
    • setIgnorePaths

      public void setIgnorePaths(Set<MCRPath> ignorePaths)
    • setOldMets

      public void setOldMets(org.mycore.mets.model.Mets oldMets)