public class XmlGenUtil extends XmlUtil
- 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
| Constructor and Description |
|---|
XmlGenUtil() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
jasperReport(String srcName,
String outputFilename)
|
static void |
transformVel(String templateFile)
generates through velocity
|
static void |
transformVel(String templateFile,
Properties p)
generates through velocity
|
static void |
transformVel(String templateFile,
String destFile,
Properties p)
generates through velocity
|
getSimpleXmlProxyStrategy, loadSimpleXml_, loadXml, loadXml, loadXml, replaceTagsAndNamespace, saveSimpleXml_, saveXml, transformXsl, xpath, xpathpublic static void transformVel(String templateFile)
templateFile - public static void transformVel(String templateFile, Properties p)
templateFile - source file, destination will be generated/ + templateFilep - propertiespublic static void transformVel(String templateFile, String destFile, Properties p)
templateFile - source filedestFile - destination filep - propertiespublic void jasperReport(String srcName, String outputFilename) throws Exception
Exceptionpublic byte[] jasperReport(String srcName, boolean compile, boolean xml, Map parameter, Connection connection)
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 neededCopyright © 2012–2018. All rights reserved.