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 licensesContains 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 SummaryConstructors Constructor Description SpdxLicenseDifference(org.spdx.library.model.v2.license.ExtractedLicenseInfo licenseA, org.spdx.library.model.v2.license.ExtractedLicenseInfo licenseB)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCommentA()StringgetCommentB()StringgetIdA()StringgetIdB()StringgetLicenseNameA()StringgetLicenseNameB()StringgetLicenseText()Collection<String>getSourceUrlsA()Collection<String>getSourceUrlsB()booleanisCommentsEqual()booleanisLicenseNamesEqual()booleanisSourceUrlsEqual()
 
- 
- 
- 
Constructor Detail- 
SpdxLicenseDifferencepublic 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 compare
- licenseB- B license to compare
- Throws:
- org.spdx.core.InvalidSPDXAnalysisException- on SPDX parsing errors
 
 
- 
 - 
Method Detail- 
getLicenseTextpublic String getLicenseText() - Returns:
- the licenseText
 
 - 
getLicenseNameApublic String getLicenseNameA() - Returns:
- the licenseNameA
 
 - 
getLicenseNameBpublic String getLicenseNameB() - Returns:
- the licenseNameB
 
 - 
isLicenseNamesEqualpublic boolean isLicenseNamesEqual() - Returns:
- the licenseNamesEqual
 
 - 
getIdApublic String getIdA() - Returns:
- the idA
 
 - 
getIdBpublic String getIdB() - Returns:
- the idB
 
 - 
getCommentApublic String getCommentA() - Returns:
- the commentA
 
 - 
getCommentBpublic String getCommentB() - Returns:
- the commentB
 
 - 
isCommentsEqualpublic boolean isCommentsEqual() - Returns:
- the commentsEqual
 
 - 
getSourceUrlsApublic Collection<String> getSourceUrlsA() - Returns:
- the sourceUrlsA
 
 - 
getSourceUrlsBpublic Collection<String> getSourceUrlsB() - Returns:
- the sourceUrlsB
 
 - 
isSourceUrlsEqualpublic boolean isSourceUrlsEqual() - Returns:
- the sourceUrlsEqual
 
 
- 
 
-