Schnittstelle IVisualizer

Alle bekannten Implementierungsklassen:
VisualizerImpl

public interface IVisualizer
Interface defining the methods for XRechnung visualization.
Autor:
Dr. Jan C. Thiele
  • Methodendetails

    • runVisualization

      StringWriter runVisualization(String invoicePath, String xslPathubl, String xslPathublcn, String xslPathcii, String htmlXslPath) throws XMLStreamException, IOException, Exception
      Method to run visualization.
      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:
      XMLStreamException - XML stream error
      IOException - read error
      Exception - unspecific error
    • transformAndSaveToPDF

      void transformAndSaveToPDF(String xslPath, String outFile) throws IOException, TransformerException, org.apache.fop.apps.FOPException
      Method to create PDF transformation and save result to file.
      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
    • saveAs

      void saveAs(String filePath) throws IOException
      Method to save HTML visualization to file.
      Parameter:
      filePath - path to save the visualization into
      Löst aus:
      IOException - write error