Klasse VisualizerImpl

java.lang.Object
org.oxt.toolbox.visualization.VisualizerImpl
Alle implementierten Schnittstellen:
IVisualizer

public class VisualizerImpl extends Object implements IVisualizer
Class implementing the visualization processing (implements the IVisualizer interface).
Autor:
Dr. Jan C. Thiele
  • Felddetails

    • invoicePath

      String invoicePath
      Class member to store invoice path.
    • html

      String writer to store visualization HTML.
    • intermediateXML

      StringWriter intermediateXML
      String writer to store intermediate XML tranformation result (syntax-neutral).
    • logger

      org.apache.logging.log4j.Logger logger
  • Konstruktordetails

    • VisualizerImpl

      public VisualizerImpl()
  • Methodendetails

    • runVisualization

      public StringWriter runVisualization(String invoicePath, String xslPathubl, String xslPathublcn, String xslPathcii, String htmlXslPath) throws IOException, Exception
      Beschreibung aus Schnittstelle kopiert: IVisualizer
      Method to run visualization.
      Angegeben von:
      runVisualization in Schnittstelle IVisualizer
      Parameter:
      invoicePath - path to invoice file
      xslPathubl - path to xsl for ubl
      xslPathublcn - path to xsl for ubl credit note
      xslPathcii - path to xsl for CII
      htmlXslPath - path to xsl for HTML
      Gibt zurück:
      report string writer
      Löst aus:
      IOException - read error
      Exception - unspecific error
    • saveAs

      public void saveAs(String filePath) throws IOException
      Beschreibung aus Schnittstelle kopiert: IVisualizer
      Method to save HTML visualization to file.
      Angegeben von:
      saveAs in Schnittstelle IVisualizer
      Parameter:
      filePath - path to save the visualization into
      Löst aus:
      IOException - write error
    • transformAndSaveToPDF

      public void transformAndSaveToPDF(String xslPath, String outFile) throws IOException, TransformerException, org.apache.fop.apps.FOPException
      Method to create PDF transformation and save result to file.
      Angegeben von:
      transformAndSaveToPDF in Schnittstelle IVisualizer
      Parameter:
      xslPath - path to transformation xsl script for pdf
      outFile - output pdf file
      Löst aus:
      IOException - write exception
      TransformerException - transformer error
      org.apache.fop.apps.FOPException - fop error