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

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 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 compare
      licenseB - B license to compare
      Throws:
      org.spdx.core.InvalidSPDXAnalysisException - on SPDX parsing errors
  • Method Details

    • 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