|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.phoenix.report.ReportMerger
public class ReportMerger
Provides merging and filtering of various jcoderz-report.xml files. It combines parts of the functions from ReportNormalizer and XmlMergeAntTask.
| Constructor Summary | |
|---|---|
ReportMerger()
|
|
| Method Summary | |
|---|---|
void |
addFilter(File filter)
Adds the filter. |
void |
addReport(File report)
Adds the report. |
void |
filter()
Filters the report XML file using the JDK XSL processor. |
void |
flagNewFindings()
Searches for new findings based on the old jcReport and increases the severity of such findings to NEW. |
Level |
getLogLevel()
Gets the log level. |
File |
getOutFile()
Gets the out file. |
static void |
main(String[] args)
The main method. |
void |
merge()
Merge input reports. |
void |
setLogLevel(Level logLevel)
Sets the log level. |
void |
setOldFile(File file)
Set the old report to compare with. |
void |
setOutFile(File outFile)
Sets the out file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReportMerger()
| Method Detail |
|---|
public void merge()
throws JAXBException,
FileNotFoundException
JAXBException - if a xml handling error occurs.
FileNotFoundException - in case of an IO issue.
public void filter()
throws TransformerException,
IOException
TransformerException - if the transformation fails.
IOException - if an io operation fails.public void flagNewFindings()
public static void main(String[] args)
throws Exception
args - the arguments
Exception - in case of a technical issue.public void addReport(File report)
report - the reportpublic void addFilter(File filter)
filter - the filterpublic Level getLogLevel()
public void setLogLevel(Level logLevel)
logLevel - the new log levelpublic File getOutFile()
public void setOldFile(File file)
throws IOException
file - old report file.
IOException - if the file name conversion fails
public void setOutFile(File outFile)
throws IOException
outFile - the new out file
IOException - Signals that an I/O exception has occurred.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||