Class AbstractExporterDelegate<T>

  • Direct Known Subclasses:
    ExplodedExporterDelegate

    public abstract class AbstractExporterDelegate<T>
    extends Object
    AbstractExporterDelegate Abstract delegate used for archive export. Provides a template for exporters for handling archive contents.
    Version:
    $Revision: $
    Author:
    John Bailey
    • Constructor Detail

      • AbstractExporterDelegate

        protected AbstractExporterDelegate​(Archive<?> archive)
        Creates a new abstract exporter delegate for the provided Archive
    • Method Detail

      • export

        public final T export()
        Runs the export operation, returning the result
        Returns:
      • doExport

        protected void doExport()
        Primary method providing a template for exporting the contents of an archive
      • processNode

        protected abstract void processNode​(ArchivePath path,
                                            Node node)
        Template method for processing a single node.
        Parameters:
        path -
        node -
      • getResult

        protected abstract T getResult()
        Return the results of the export. Should process any tasks required to finalize the export.
        Returns:
      • getArchive

        protected Archive<?> getArchive()
        Return the archive being exported
        Returns: