Java Doc for AggregateTransformer.java in  » Build » ANT » org » apache » tools » ant » taskdefs » optional » junit » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Build » ANT » org.apache.tools.ant.taskdefs.optional.junit 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer

AggregateTransformer
public class AggregateTransformer (Code)
Transform a JUnit xml report. The default transformation generates an html report in either framed or non-framed style. The non-framed style is convenient to have a concise report via mail, the framed report is much more convenient if you want to browse into different packages or testcases since it is a Javadoc like report.

Inner Class :public static class Format extends EnumeratedAttribute

Field Summary
final public static  StringFRAMES
     name of the frames format.
final public static  StringNOFRAMES
     name of the no frames format.
protected static  DocumentBuilderFactorydbfactory
    
protected  Documentdocument
    
protected  Stringformat
     the format to use for the report.
protected  FilestyleDir
     the style directory.
protected  Tasktask
    
protected  FiletoDir
    

Constructor Summary
public  AggregateTransformer(Task task)
     constructor creating the transformer from the junitreport task.

Method Summary
protected  voidcheckOptions()
    
public  XSLTProcess.ParamcreateParam()
     Create an instance of an XSL parameter for configuration by Ant.
protected static  DocumentBuilderFactorygetDocumentBuilderFactory()
    
protected  ResourcegetStylesheet()
     access the stylesheet to be used as a resource.
protected  StringgetStylesheetSystemId()
     Get the systemid of the appropriate stylesheet based on its name and styledir.
public  voidsetExtension(String ext)
    
public  voidsetFormat(Format format)
     sets the format.
public  voidsetStyledir(File styledir)
     set the style directory.
public  voidsetTodir(File todir)
     set the destination directory.
public  voidsetXmlDocument(Document doc)
     sets the input document.
protected  voidsetXmlfile(File xmlfile)
     Set the xml file to be processed.
public  voidtransform()
    

Field Detail
FRAMES
final public static String FRAMES(Code)
name of the frames format.



NOFRAMES
final public static String NOFRAMES(Code)
name of the no frames format.



dbfactory
protected static DocumentBuilderFactory dbfactory(Code)
XML Parser factory accessible to subclasses



document
protected Document document(Code)
the xml document to process



format
protected String format(Code)
the format to use for the report. Must be FRAMES or NOFRAMES



styleDir
protected File styleDir(Code)
the style directory. XSLs should be read from here if necessary



task
protected Task task(Code)
Task



toDir
protected File toDir(Code)
the destination directory, this is the root from where html should be generated




Constructor Detail
AggregateTransformer
public AggregateTransformer(Task task)(Code)
constructor creating the transformer from the junitreport task.
Parameters:
  task - task delegating to this class




Method Detail
checkOptions
protected void checkOptions() throws BuildException(Code)
check for invalid options
throws:
  BuildException - if something goes wrong.



createParam
public XSLTProcess.Param createParam()(Code)
Create an instance of an XSL parameter for configuration by Ant. an instance of the Param class to be configured.
since:
   Ant 1.7



getDocumentBuilderFactory
protected static DocumentBuilderFactory getDocumentBuilderFactory()(Code)
Get the Document Builder Factory the DocumentBuilderFactory instance in use



getStylesheet
protected Resource getStylesheet()(Code)
access the stylesheet to be used as a resource. stylesheet as a resource



getStylesheetSystemId
protected String getStylesheetSystemId() throws IOException(Code)
Get the systemid of the appropriate stylesheet based on its name and styledir. If no styledir is defined it will load it as a java resource in the xsl child package, otherwise it will get it from the given directory. system ID of the stylesheet.
throws:
  IOException - thrown if the requested stylesheet doesnot exist.



setExtension
public void setExtension(String ext)(Code)
set the extension of the output files
Parameters:
  ext - extension.



setFormat
public void setFormat(Format format)(Code)
sets the format.
Parameters:
  format - Must be FRAMES or NOFRAMES



setStyledir
public void setStyledir(File styledir)(Code)
set the style directory. It is optional and will override the default xsl used.
Parameters:
  styledir - the directory containing the xsl files if the userwould like to override with its own style.



setTodir
public void setTodir(File todir)(Code)
set the destination directory.
Parameters:
  todir - the destination directory



setXmlDocument
public void setXmlDocument(Document doc)(Code)
sets the input document.
Parameters:
  doc - input dom tree



setXmlfile
protected void setXmlfile(File xmlfile) throws BuildException(Code)
Set the xml file to be processed. This is a helper if you want to set the file directly. Much more for testing purposes.
Parameters:
  xmlfile - xml file to be processed
throws:
  BuildException - if the document cannot be parsed.



transform
public void transform() throws BuildException(Code)
transformation
throws:
  BuildException - exception if something goes wrong with the transformation.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

w___ww_.j__a___v_a_2s.co___m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.