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 TypeMethodDescriptionint
getCounter
(Document.Type documentType) Gets the counts for the Document.Type.int
getCounter
(ClaimStatistic.Counter counter) Returns the counts for the counter.Gets the set of Document.Types seen in the run.int
getLicenseCategoryCount
(String licenseFamilyCategory) Gets the counts for the license category.Gets the set of license family categories that were seen.int
getLicenseNameCount
(String licenseName) Gets the counts for the license name.Gets the license names sorted by name.void
incCounter
(Document.Type documentType, int value) Increments the number of times the Document.Type was seen.void
incCounter
(ClaimStatistic.Counter counter, int value) Increments the counts for the counter.void
incLicenseCategoryCount
(String licenseFamilyCategory, int value) Increments the number of times a license family category was seen.void
incLicenseNameCount
(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 set of Document.Types seen in the run.- Returns:
- the set 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.
-