public class SpdxPackageInfoMerger extends Object
| Constructor and Description |
|---|
SpdxPackageInfoMerger(List<SpdxPackage> masterPackagesInfo,
SpdxDocument[] subDocs,
SpdxLicenseMapper mapper) |
| Modifier and Type | Method and Description |
|---|---|
AnyLicenseInfo[] |
checkLicenseFromFile(SpdxDocument doc,
SpdxPackage temp)
A method to check license from file information through mapLicenseInfo function.
|
List<SpdxPackage> |
clonePackages(List<SpdxPackage> packagesList)
A method to clone the packages in the list
|
String[] |
collectSkippedFiles(SpdxPackage main,
SpdxPackage sub)
A method to collect all skipped files from input SPDX package.
|
AnyLicenseInfo |
licsCombiner(AnyLicenseInfo lic1,
AnyLicenseInfo lic2)
A method to combine two licenses into one
|
List<SpdxPackage> |
mergePackagesInfo(SpdxFile[] fileMergeResult)
A method to merge all packages' information from sub list documents into master document
|
String |
stringCombiner(String line1,
String line2)
A method to combine two string variables into one string
|
String |
translateSubDelcaredLicsIntoComments(SpdxDocument[] subDocs)
Deprecated.
|
public SpdxPackageInfoMerger(List<SpdxPackage> masterPackagesInfo, SpdxDocument[] subDocs, SpdxLicenseMapper mapper)
masterPackagesInfo - subDocs - public List<SpdxPackage> mergePackagesInfo(SpdxFile[] fileMergeResult) throws InvalidSPDXAnalysisException, NoSuchAlgorithmException, InvalidLicenseStringException
subDocs - fileMergeResult - InvalidSPDXAnalysisExceptionNoSuchAlgorithmExceptionInvalidLicenseStringExceptionpublic AnyLicenseInfo[] checkLicenseFromFile(SpdxDocument doc, SpdxPackage temp)
doc - temp - public List<SpdxPackage> clonePackages(List<SpdxPackage> packagesList)
packagesArray - public String stringCombiner(String line1, String line2)
line1 - line2 - public AnyLicenseInfo licsCombiner(AnyLicenseInfo lic1, AnyLicenseInfo lic2) throws InvalidLicenseStringException
lic1 - lic2 - InvalidLicenseStringExceptionpublic String[] collectSkippedFiles(SpdxPackage main, SpdxPackage sub) throws InvalidSPDXAnalysisException
InvalidSPDXAnalysisException@Deprecated public String translateSubDelcaredLicsIntoComments(SpdxDocument[] subDocs) throws InvalidSPDXAnalysisException
InvalidSPDXAnalysisExceptionCopyright © 2017 Linux Foundation. All Rights Reserved.