public class ClaimAggregator extends AbstractClaimReporter
Constructor and Description |
---|
ClaimAggregator(ClaimStatistic statistic)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
endReport()
Empty default implementation.
|
protected void |
handleApprovedLicenseClaim(MetaData metadata)
Increment the approved license claim.
|
protected void |
handleDocumentCategoryClaim(Document.Type documentType)
Increment the document type counter.
|
protected void |
handleLicenseClaim(ILicense license)
Increment the counts associated with the license
The default implementation does nothing.
|
report
startReport
public ClaimAggregator(ClaimStatistic statistic)
statistic
- The statistic to store the statistics in.protected void handleDocumentCategoryClaim(Document.Type documentType)
AbstractClaimReporter
handleDocumentCategoryClaim
in class AbstractClaimReporter
documentType
- The document type counter to increment.protected void handleApprovedLicenseClaim(MetaData metadata)
AbstractClaimReporter
handleApprovedLicenseClaim
in class AbstractClaimReporter
metadata
- The metadata for the documentprotected void handleLicenseClaim(ILicense license)
AbstractClaimReporter
handleLicenseClaim
in class AbstractClaimReporter
license
- the license to record the category for.public void endReport() throws RatException
AbstractReport
endReport
in interface RatReport
endReport
in class AbstractReport
RatException
- on error.RatReport.report(Document)
Copyright © 2006–2024 Apache Software Foundation. All rights reserved.