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

    • getNumApproved

      public int getNumApproved()
      Returns:
      Returns the number of files with approved licenses.
    • setNumApproved

      public void setNumApproved(int pNumApproved)
      Sets the number of files with approved licenses.
      Parameters:
      pNumApproved - number of files with approved licenses.
    • getNumUnApproved

      public int getNumUnApproved()
      Returns:
      Returns the number of files with unapproved licenses. Note: This might include files with unknown licenses.
      See Also:
      getNumUnknown()
    • setNumUnApproved

      public void setNumUnApproved(int pNumUnApproved)
      Sets the number of files with unapproved licenses.
      Parameters:
      pNumUnApproved - number of files with unapproved licenses.
    • getNumGenerated

      public int getNumGenerated()
      Returns:
      Returns the number of generated files.
    • setNumGenerated

      public void setNumGenerated(int pNumGenerated)
      Sets the number of generated files.
      Parameters:
      pNumGenerated - the number of generated files.
    • getNumUnknown

      public int getNumUnknown()
      Returns:
      Returns the number of files, which are neither generated nor have a known license header.
    • setNumUnknown

      public void setNumUnknown(int pNumUnknown)
      Sets the number of files, which are neither generated nor have a known license header.
      Parameters:
      pNumUnknown - set number of files.
    • setDocumentCategoryMap

      public void setDocumentCategoryMap(Map<String,​Integer> pDocumentCategoryMap)
      Sets a map with the file types. The map keys are file type names and the map values are integers with the number of resources matching the file type.
      Parameters:
      pDocumentCategoryMap - doc-category map.
    • getDocumentCategoryMap

      public Map<String,​Integer> getDocumentCategoryMap()
      Returns:
      Returns a map with the file types. The map keys are file type names and the map values are integers with the number of resources matching the file type.
    • getLicenseFileCodeMap

      public Map<String,​Integer> getLicenseFileCodeMap()
      Returns:
      Returns a map with the license family codes. The map keys are license family category names, the map values are integers with the number of resources matching the license family code.
    • setLicenseFileCodeMap

      public void setLicenseFileCodeMap(Map<String,​Integer> pLicenseFamilyCodeMap)
      Sets a map with the license family codes. The map keys are instances of license family category names and the map values are integers with the number of resources matching the license family code.
      Parameters:
      pLicenseFamilyCodeMap - license family map.
    • getLicenseFileNameMap

      public Map<String,​Integer> getLicenseFileNameMap()
      Returns:
      Returns a map with the license family codes. The map keys are the names of the license families and the map values are integers with the number of resources matching the license family name.
    • setLicenseFileNameMap

      public void setLicenseFileNameMap(Map<String,​Integer> pLicenseFamilyNameMap)
      Sets map with the license family codes. The map keys are the name of the license families and the map values are integers with the number of resources matching the license family name.
      Parameters:
      pLicenseFamilyNameMap - license family-name map.