Package org.apache.rat.report.claim
Class ClaimAggregator
java.lang.Object
org.apache.rat.report.claim.AbstractClaimReporter
org.apache.rat.report.claim.ClaimAggregator
- All Implemented Interfaces:
RatReport
The aggregator is used to create a numerical statistic of claims.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSignals the end of execution for the report.protected voidhandleApprovedLicenseClaim(MetaData metadata)Increment the approved license claim.protected voidhandleDocumentCategoryClaim(Document.Type documentType)Increment the document type counter.protected voidhandleLicenseClaim(ILicense license)Increment the counts associated with the license The default implementation does nothing.Methods inherited from class org.apache.rat.report.claim.AbstractClaimReporter
reportMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.rat.report.RatReport
startReport
-
Constructor Details
-
ClaimAggregator
Constructor.- Parameters:
statistic- The statistic to store the statistics in.
-
-
Method Details
-
handleDocumentCategoryClaim
Description copied from class:AbstractClaimReporterIncrement the document type counter. The default implementations does nothing.- Overrides:
handleDocumentCategoryClaimin classAbstractClaimReporter- Parameters:
documentType- The document type counter to increment.
-
handleApprovedLicenseClaim
Description copied from class:AbstractClaimReporterIncrement the approved license claim. The default implementation does nothing.- Overrides:
handleApprovedLicenseClaimin classAbstractClaimReporter- Parameters:
metadata- The metadata for the document
-
handleLicenseClaim
Description copied from class:AbstractClaimReporterIncrement the counts associated with the license The default implementation does nothing.- Overrides:
handleLicenseClaimin classAbstractClaimReporter- Parameters:
license- the license to record the category for.
-
endReport
Description copied from interface:RatReportSignals the end of execution for the report. Will be called after thereport()method to ensure proper cleanup. Default implementation does nothing.- Throws:
RatException- on error.- See Also:
RatReport.report(Document)
-