net.firstpartners.nounit.report
Class AbstractReport

java.lang.Object
  |
  +--net.firstpartners.nounit.report.AbstractReport
All Implemented Interfaces:
IReport
Direct Known Subclasses:
SimpleReport

public abstract class AbstractReport
extends java.lang.Object
implements IReport

Generate the report from the XML describing the Java. Provides Common functions that can be re-used or overwritten


Constructor Summary
AbstractReport()
           
 
Method Summary
abstract  void makeReport(CommandPackage inPackage)
          Transform the XML into the required reports
protected  void transformFile(java.lang.String xmlFile, java.lang.String xslFile, java.lang.String outFile)
          Use the TraX interface to perform a transformation in the simplest manner possible (Calls the main method of org.apache.xalan.xslt.Process - mimics calling the transfromer from the command-line where the xslt has been tested)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractReport

public AbstractReport()
Method Detail

makeReport

public abstract void makeReport(CommandPackage inPackage)
                         throws javax.xml.transform.TransformerException,
                                javax.xml.transform.TransformerConfigurationException,
                                java.io.IOException,
                                java.io.FileNotFoundException,
                                NoUnitException
Transform the XML into the required reports
Specified by:
makeReport in interface IReport
Parameters:
inPackage - - CommandPackage with required parameters
Throws:
javax.xml.transform.TransformerException -  
javax.xml.transform.TransformerConfigurationException -  
java.io.IOException -  
java.io.FileNotFoundException -  
NoUnitException -  

transformFile

protected void transformFile(java.lang.String xmlFile,
                             java.lang.String xslFile,
                             java.lang.String outFile)
Use the TraX interface to perform a transformation in the simplest manner possible (Calls the main method of org.apache.xalan.xslt.Process - mimics calling the transfromer from the command-line where the xslt has been tested)
Parameters:
xmlFile - - the xml to transform
xslFile - - the stylesheet to apply
outFile - - tmp file , showing how to move tmp names to actual names