org.apache.tools.ant.taskdefs.optional.junit
public class AggregateTransformer extends Object
Nested Class Summary | |
---|---|
static class | AggregateTransformer.Format
defines acceptable formats. |
Field Summary | |
---|---|
protected static DocumentBuilderFactory | dbfactory XML Parser factory accessible to subclasses |
protected Document | document the xml document to process |
protected String | format the format to use for the report. |
static String | FRAMES
name of the frames format. |
static String | NOFRAMES
name of the no frames format. |
protected File | styleDir the style directory. |
protected Task | task Task |
protected File | toDir the destination directory, this is the root from where html should be generated |
Constructor Summary | |
---|---|
AggregateTransformer(Task task)
constructor creating the transformer from the junitreport task. |
Method Summary | |
---|---|
protected void | checkOptions() check for invalid options |
XSLTProcess.Param | createParam()
Create an instance of an XSL parameter for configuration by Ant.
|
protected static DocumentBuilderFactory | getDocumentBuilderFactory()
Get the Document Builder Factory
|
protected Resource | getStylesheet()
access the stylesheet to be used as a resource. |
protected String | getStylesheetSystemId()
Get the systemid of the appropriate stylesheet based on its
name and styledir. |
void | setExtension(String ext) set the extension of the output files |
void | setFormat(AggregateTransformer.Format format)
sets the format. |
void | setStyledir(File styledir)
set the style directory. |
void | setTodir(File todir) set the destination directory. |
void | setXmlDocument(Document doc)
sets the input document. |
protected void | setXmlfile(File xmlfile)
Set the xml file to be processed. |
void | transform()
transformation |
Parameters: task task delegating to this class
Throws: BuildException if something goes wrong.
Returns: an instance of the Param class to be configured.
Since: Ant 1.7
Returns: the DocumentBuilderFactory instance in use
Returns: stylesheet as a resource
Returns: system ID of the stylesheet.
Throws: IOException thrown if the requested stylesheet does not exist.
Parameters: ext extension.
Parameters: format Must be FRAMES or NOFRAMES
Parameters: styledir the directory containing the xsl files if the user would like to override with its own style.
Parameters: todir the destination directory
Parameters: doc input dom tree
Parameters: xmlfile xml file to be processed
Throws: BuildException if the document cannot be parsed.
Throws: BuildException exception if something goes wrong with the transformation.