Package org.apache.rat.report.claim
Class ClaimStatistic
java.lang.Object
org.apache.rat.report.claim.ClaimStatistic
This class provides a numerical overview about
the report.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetCounter(Document.Type documentType)Gets the counts for the Document.Type.intgetCounter(ClaimStatistic.Counter counter)Returns the counts for the counter.Gets the list of Document.Types seen in the run.intgetLicenseCategoryCount(String licenseFamilyCategory)Gets the counts for the license category.Gets the set of license family categories that were seen.intgetLicenseNameCount(String licenseName)Gets the counts for the license name.Gets the license names sorted by name.voidincCounter(Document.Type documentType, int value)Increments the number of times the Document.Type was seen.voidincCounter(ClaimStatistic.Counter counter, int value)Increments the counts for the counter.voidincLicenseCategoryCount(String licenseFamilyCategory, int value)Increments the number of times a license family category was seen.voidincLicenseNameCount(String licenseName, int value)Increments the license family name count.
-
Constructor Details
-
ClaimStatistic
public ClaimStatistic()
-
-
Method Details
-
getCounter
Returns the counts for the counter.- Parameters:
counter- the counter to get the value for.- Returns:
- the number times the counter type was seen.
-
incCounter
Increments the counts for the counter.- Parameters:
counter- the counter to increment.value- the value to increment the counter by.
-
getCounter
Gets the counts for the Document.Type.- Parameters:
documentType- the Document.Type to get the counter for.- Returns:
- the number times the Document.Type was seen.
-
getDocumentTypes
Gets the list of Document.Types seen in the run.- Returns:
- the list of Document.Types seen in the run.
-
incCounter
Increments the number of times the Document.Type was seen.- Parameters:
documentType- the Document.Type to increment.value- the value to increment the counter by.
-
getLicenseCategoryCount
Gets the counts for the license category.- Parameters:
licenseFamilyCategory- the license family category to get the count for.- Returns:
- the number of times the license family category was seen.
-
getLicenseNameCount
Gets the counts for the license name.- Parameters:
licenseName- the license name to get the count for.- Returns:
- the number of times the license family category was seen.
-
incLicenseCategoryCount
Increments the number of times a license family category was seen.- Parameters:
licenseFamilyCategory- the License family category to increment.value- the value to increment the count by.
-
getLicenseFamilyCategories
Gets the set of license family categories that were seen.- Returns:
- A set of license family categories.
-
getLicenseNames
Gets the license names sorted by name.- Returns:
- sorted list of license names.
-
incLicenseNameCount
Increments the license family name count.- Parameters:
licenseName- the license name to increment.value- the value to increment the count by.
-