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(org.spdx.library.model.v2.license.ExtractedLicenseInfo licenseA, org.spdx.library.model.v2.license.ExtractedLicenseInfo licenseB)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCommentA()
String
getCommentB()
String
getIdA()
String
getIdB()
String
getLicenseNameA()
String
getLicenseNameB()
String
getLicenseText()
Collection<String>
getSourceUrlsA()
Collection<String>
getSourceUrlsB()
boolean
isCommentsEqual()
boolean
isLicenseNamesEqual()
boolean
isSourceUrlsEqual()
-
-
-
Constructor Detail
-
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 Detail
-
getLicenseText
public String getLicenseText()
- Returns:
- the licenseText
-
getLicenseNameA
public String getLicenseNameA()
- Returns:
- the licenseNameA
-
getLicenseNameB
public String getLicenseNameB()
- Returns:
- the licenseNameB
-
isLicenseNamesEqual
public boolean isLicenseNamesEqual()
- Returns:
- the licenseNamesEqual
-
getIdA
public String getIdA()
- Returns:
- the idA
-
getIdB
public String getIdB()
- Returns:
- the idB
-
getCommentA
public String getCommentA()
- Returns:
- the commentA
-
getCommentB
public String getCommentB()
- Returns:
- the commentB
-
isCommentsEqual
public boolean isCommentsEqual()
- Returns:
- the commentsEqual
-
getSourceUrlsA
public Collection<String> getSourceUrlsA()
- Returns:
- the sourceUrlsA
-
getSourceUrlsB
public Collection<String> getSourceUrlsB()
- Returns:
- the sourceUrlsB
-
isSourceUrlsEqual
public boolean isSourceUrlsEqual()
- Returns:
- the sourceUrlsEqual
-
-