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 Details

    • XmlGenUtil

      public XmlGenUtil()
  • Method Details

    • transformVel

      public static void transformVel(String templateFile)
      generates through velocity
      Parameters:
      templateFile -
    • transformVel

      public static void transformVel(String templateFile, Properties p)
      generates through velocity
      Parameters:
      templateFile - source file, destination will be generated/ + templateFile
      p - properties
    • transformVel

      public static void transformVel(String templateFile, String destFile, Properties p)
      generates through velocity
      Parameters:
      templateFile - source file
      destFile - destination file
      p - properties
    • jasperReport

      public void jasperReport(String srcName, String outputFilename) throws Exception
      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 pdf
      parameter - (optional) extended parameters for jasper
      connection - (optional) database connection if needed
      Returns:
      exported bytes to be saved or printed