Class ClaimStatistic

java.lang.Object
org.apache.rat.report.claim.ClaimStatistic

public class ClaimStatistic extends Object
This class provides a numerical overview about the report.
  • Constructor Details

    • ClaimStatistic

      public ClaimStatistic()
  • Method Details

    • getCounter

      public int getCounter(ClaimStatistic.Counter counter)
      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

      public void incCounter(ClaimStatistic.Counter counter, int value)
      Increments the counts for the counter.
      Parameters:
      counter - the counter to increment.
      value - the value to increment the counter by.
    • getCounter

      public int getCounter(Document.Type documentType)
      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

      public List<Document.Type> getDocumentTypes()
      Gets the set of Document.Types seen in the run.
      Returns:
      the set of Document.Types seen in the run.
    • incCounter

      public void incCounter(Document.Type documentType, int value)
      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

      public int getLicenseCategoryCount(String licenseFamilyCategory)
      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

      public int getLicenseNameCount(String licenseName)
      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

      public void incLicenseCategoryCount(String licenseFamilyCategory, int value)
      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

      public List<String> getLicenseFamilyCategories()
      Gets the set of license family categories that were seen.
      Returns:
      A set of license family categories.
    • getLicenseNames

      public List<String> getLicenseNames()
      Gets the license names sorted by name.
      Returns:
      sorted list of license names.
    • incLicenseNameCount

      public void incLicenseNameCount(String licenseName, int value)
      Increments the license family name count.
      Parameters:
      licenseName - the license name to increment.
      value - the value to increment the count by.