Package org.spdx.merge
Class SpdxLicenseInfoMerger
java.lang.Object
org.spdx.merge.SpdxLicenseInfoMerger
public class SpdxLicenseInfoMerger extends Object
Application to merge SPDX documents' non-standard license information and return the results to the merge main class
The non-standard license information from the output SPDX document will add to the result arraylist directly.
The non-standard license information from the sub SPDX document will be compared with license information in the result arraylist.
Any new license information will add to the result arraylist with replacing the license ID.
- Author:
- Gang Ling
-
Constructor Summary
Constructors Constructor Description SpdxLicenseInfoMerger(SpdxDocument outputDoc, SpdxLicenseMapper mapper) -
Method Summary
Modifier and Type Method Description ExtractedLicenseInfo[]cloneNonStdLic(ExtractedLicenseInfo[] orgNonStdLicArray)ExtractedLicenseInfo[]mergeNonStdLic(SpdxDocument[] subDocs)
-
Constructor Details
-
Method Details
-
mergeNonStdLic
public ExtractedLicenseInfo[] mergeNonStdLic(SpdxDocument[] subDocs) throws InvalidSPDXAnalysisException- Parameters:
subDocs-- Returns:
- Throws:
InvalidSPDXAnalysisException
-
cloneNonStdLic
- Parameters:
orgNonStdLicArray-- Returns:
- clonedNonStdLicArray
-