Klasse VisualizerImpl
java.lang.Object
org.oxt.toolbox.visualization.VisualizerImpl
- Alle implementierten Schnittstellen:
IVisualizer
Class implementing the visualization processing (implements the IVisualizer interface).
- Autor:
- Dr. Jan C. Thiele
-
Feldübersicht
Modifizierer und TypFeldBeschreibung(Package privat) StringWriter
String writer to store visualization HTML.(Package privat) StringWriter
String writer to store intermediate XML tranformation result (syntax-neutral).(Package privat) String
Class member to store invoice path.(Package privat) org.apache.logging.log4j.Logger
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungrunVisualization
(String invoicePath, String xslPathubl, String xslPathublcn, String xslPathcii, String htmlXslPath) Method to run visualization.void
Method to save HTML visualization to file.void
transformAndSaveToPDF
(String xslPath, String outFile) Method to create PDF transformation and save result to file.
-
Felddetails
-
invoicePath
String invoicePathClass member to store invoice path. -
html
StringWriter htmlString writer to store visualization HTML. -
intermediateXML
StringWriter intermediateXMLString 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 SchnittstelleIVisualizer
- Parameter:
invoicePath
- path to invoice filexslPathubl
- path to xsl for ublxslPathublcn
- path to xsl for ubl credit notexslPathcii
- path to xsl for CIIhtmlXslPath
- path to xsl for HTML- Gibt zurück:
- report string writer
- Löst aus:
IOException
- read errorException
- unspecific error
-
saveAs
Beschreibung aus Schnittstelle kopiert:IVisualizer
Method to save HTML visualization to file.- Angegeben von:
saveAs
in SchnittstelleIVisualizer
- 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 SchnittstelleIVisualizer
- Parameter:
xslPath
- path to transformation xsl script for pdfoutFile
- output pdf file- Löst aus:
IOException
- write exceptionTransformerException
- transformer errororg.apache.fop.apps.FOPException
- fop error
-