Class SpdxLicenseDifference
java.lang.Object
org.spdx.utility.compare.SpdxLicenseDifference
Contains the results of a comparison between two SPDX non-standard licenses
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
ConstructorsConstructorDescriptionSpdxLicenseDifference(org.spdx.library.model.v2.license.ExtractedLicenseInfo licenseA, org.spdx.library.model.v2.license.ExtractedLicenseInfo licenseB) -
Method Summary
-
Constructor Details
-
SpdxLicenseDifference
public SpdxLicenseDifference(org.spdx.library.model.v2.license.ExtractedLicenseInfo licenseA, org.spdx.library.model.v2.license.ExtractedLicenseInfo licenseB) throws org.spdx.core.InvalidSPDXAnalysisException - Parameters:
licenseA- A license to comparelicenseB- B license to compare- Throws:
org.spdx.core.InvalidSPDXAnalysisException- on SPDX parsing errors
-
-
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
-