| java.lang.Object org.apache.batik.test.xml.XSLXMLReportConsumer
XSLXMLReportConsumer | public class XSLXMLReportConsumer implements XMLTestReportProcessor.XMLReportConsumer(Code) | | This implementation of the XMLTestReportProcessor.XMLReportConsumer
interface simply applies an XSL transformation to the input
XML file and stores the result in a configurable directory.
author: Vincent Hardy version: $Id: XSLXMLReportConsumer.java 475477 2006-11-15 22:44:28Z cam $ |
ERROR_OUTPUT_DIRECTORY_UNUSABLE | final public static String ERROR_OUTPUT_DIRECTORY_UNUSABLE(Code) | | Error code used when the output directory cannot be used
|
XSLXMLReportConsumer | public XSLXMLReportConsumer(String stylesheet, String outputDirectory, String outputFileName)(Code) | | Constructor
Parameters: stylesheet - URI for the stylesheet to apply to the XML report Parameters: outputDirectory - directory where the result of the XSL transformationshould be written Parameters: outputFileName - name of the output report. |
checkDirectory | public void checkDirectory(File dir) throws TestException(Code) | | Checks that the input File represents a directory that
can be used. If the directory does not exist, this method
will attempt to create it.
|
createNewReportOutput | public File createNewReportOutput(File reportDirectory) throws Exception(Code) | | Returns a new file in the outputDirectory, with
the requested report name.
|
onNewReport | public void onNewReport(File xmlReport, File reportDirectory) throws Exception(Code) | | When a new report has been generated, this consumer
applies the same stylesheet to the input XML document
|
|
|