Class AbstractExporterDelegate<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Archive<?> archive
      The archive being exported
      private static java.util.logging.Logger log
      Logger
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doExport()
      Primary method providing a template for exporting the contents of an archive
      T export()
      Runs the export operation, returning the result
      protected Archive<?> getArchive()
      Return the archive being exported
      protected abstract T getResult()
      Return the results of the export.
      protected abstract void processNode​(ArchivePath path, Node node)
      Template method for processing a single node.
      private void processNode​(Node node)
      Recursive call to process all the node hierarchy
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • log

        private static final java.util.logging.Logger log
        Logger
      • archive

        private final Archive<?> archive
        The archive being exported
    • 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

        private void processNode​(Node node)
        Recursive call to process all the node hierarchy
        Parameters:
        node -
      • 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: