Package org.spdx.utility.compare
Class SpdxLicenseDifference
java.lang.Object
org.spdx.utility.compare.SpdxLicenseDifference
public class SpdxLicenseDifference extends Object
Contains the results of a comparison between two SPDX non-standard licenses
where the license text is equivalent and the license comment, license ID, or
other fields are different
- Author:
- Gary O'Neall
-
Constructor Summary
Constructors Constructor Description SpdxLicenseDifference(ExtractedLicenseInfo licenseA, ExtractedLicenseInfo licenseB) -
Method Summary
Modifier and Type Method Description StringgetCommentA()StringgetCommentB()StringgetIdA()StringgetIdB()StringgetLicenseNameA()StringgetLicenseNameB()StringgetLicenseText()Collection<String>getSourceUrlsA()Collection<String>getSourceUrlsB()booleanisCommentsEqual()booleanisLicenseNamesEqual()booleanisSourceUrlsEqual()
-
Constructor Details
-
SpdxLicenseDifference
public SpdxLicenseDifference(ExtractedLicenseInfo licenseA, ExtractedLicenseInfo licenseB) throws InvalidSPDXAnalysisException- Parameters:
licenseA-licenseB-- Throws:
InvalidSPDXAnalysisException
-
-
Method Details
-
getLicenseText
- Returns:
- the licenseText
-
getLicenseNameA
- Returns:
- the licenseNameA
-
getLicenseNameB
- Returns:
- the licenseNameB
-
isLicenseNamesEqual
public boolean isLicenseNamesEqual()- Returns:
- the licenseNamesEqual
-
getIdA
- Returns:
- the idA
-
getIdB
- Returns:
- the idB
-
getCommentA
- Returns:
- the commentA
-
getCommentB
- Returns:
- the commentB
-
isCommentsEqual
public boolean isCommentsEqual()- Returns:
- the commentsEqual
-
getSourceUrlsA
- Returns:
- the sourceUrlsA
-
getSourceUrlsB
- Returns:
- the sourceUrlsB
-
isSourceUrlsEqual
public boolean isSourceUrlsEqual()- Returns:
- the sourceUrlsEqual
-