Package de.tsl2.nano.util
Class XmlGenUtil
java.lang.Object
de.tsl2.nano.core.serialize.XmlUtil
de.tsl2.nano.util.XmlGenUtil
public class XmlGenUtil
extends de.tsl2.nano.core.serialize.XmlUtil
provides convenience methods for:
- de-/serializing xml through jaxb, simple-xml and xml-api - xpath - velocity transformations (to generate source code etc.) - apache fop transformations (to create printable formats like pcl, pdf, rtf, jpg, etc.) - xsl-tranformations
- Version:
- $Revision$
- Author:
- Thomas Schneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]jasperReport(String srcName, boolean compile, boolean xml, Map parameter, Connection connection) jasperReport. for further informations, see http://www.tutorialspoint.com/jasper_reports/jasper_quick_guide.htm.voidjasperReport(String srcName, String outputFilename) static voidtransformVel(String templateFile) generates through velocitystatic voidtransformVel(String templateFile, String destFile, Properties p) generates through velocitystatic voidtransformVel(String templateFile, Properties p) generates through velocityMethods inherited from class de.tsl2.nano.core.serialize.XmlUtil
getSimpleXmlProxyStrategy, loadSimpleXml_, loadXml, loadXml, loadXml, replaceTagsAndNamespace, saveSimpleXml_, saveXml, transformXsl, xpath, xpath
-
Constructor Details
-
XmlGenUtil
public XmlGenUtil()
-
-
Method Details
-
transformVel
generates through velocity- Parameters:
templateFile-
-
transformVel
generates through velocity- Parameters:
templateFile- source file, destination will be generated/ + templateFilep- properties
-
transformVel
generates through velocity- Parameters:
templateFile- source filedestFile- destination filep- properties
-
jasperReport
- Throws:
Exception
-
jasperReport
public byte[] jasperReport(String srcName, boolean compile, boolean xml, Map parameter, Connection connection) jasperReport. for further informations, see http://www.tutorialspoint.com/jasper_reports/jasper_quick_guide.htm.- Parameters:
srcName- xml/jrxml or jasper file to be read. if it is an xml/jrxml, the flag compile should be true.compile-xml- if true, report will be written to xml - otherwise to pdfparameter- (optional) extended parameters for jasperconnection- (optional) database connection if needed- Returns:
- exported bytes to be saved or printed
-