Class XmlReportFactory
java.lang.Object
org.apache.rat.report.xml.XmlReportFactory
A factory to create reports from a writer and a configuration.
-
Method Summary
Modifier and TypeMethodDescriptionstatic RatReportconfiguration(XmlWriter writer, ReportConfiguration configuration) Creates a configuration reportstatic RatReportcreateStandardReport(XmlWriter writer, ClaimStatistic statistic, ReportConfiguration configuration) Creates a RatReport from the arguments.static RatReportmultiplexer(XmlWriter writer, boolean dryRun, DocumentAnalyser analyser, List<? extends RatReport> reporters) Creates a RatReport that multiplexes the running of multiple RatReportsstatic RatReportCreates a simple claim reporter.static RatReportvalidator(XmlWriter writer, ClaimStatistic statistic, ReportConfiguration configuration) Creates a simple claim validator reporter
-
Method Details
-
createStandardReport
public static RatReport createStandardReport(XmlWriter writer, ClaimStatistic statistic, ReportConfiguration configuration) Creates a RatReport from the arguments. Thestatisticis used to create a ClaimAggregator. If theconfigurationindicates that licenses should be added a LicenseAddingReport is added.- Parameters:
writer- The XML writer to send output to.statistic- the ClaimStatistics for the report. may be null.configuration- The report configuration.- Returns:
- a RatReport instance.
-
simple
-
validator
public static RatReport validator(XmlWriter writer, ClaimStatistic statistic, ReportConfiguration configuration) Creates a simple claim validator reporter- Parameters:
writer- The XmlWriter to use- Returns:
- the RatReport that will write to the writer.
-
configuration
Creates a configuration report- Parameters:
writer- The writer to write the XML data to.configuration- the configuration to write
-
multiplexer
public static RatReport multiplexer(XmlWriter writer, boolean dryRun, DocumentAnalyser analyser, List<? extends RatReport> reporters) Creates a RatReport that multiplexes the running of multiple RatReports
-