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.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
void
setDocumentCategoryMap(Map<String,Integer> pDocumentCategoryMap)
Sets a map with the file types.void
setLicenseFileCodeMap(Map<String,Integer> pLicenseFamilyCodeMap)
Sets a map with the license family codes.void
setLicenseFileNameMap(Map<String,Integer> pLicenseFamilyNameMap)
Sets map with the license family codes.void
setNumApproved(int pNumApproved)
Sets the number of files with approved licenses.void
setNumGenerated(int pNumGenerated)
Sets the number of generated files.void
setNumUnApproved(int pNumUnApproved)
Sets the number of files with unapproved licenses.void
setNumUnknown(int pNumUnknown)
Sets the number of files, which are neither generated nor have a known license header.
-
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
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
- 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
- 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
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
- 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
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.
-