Class SpdxFileDifference


  • public class SpdxFileDifference
    extends SpdxItemDifference
    Contains the results of a comparison between two SPDX files with the same name
    Author:
    Gary O'Neall
    • Constructor Detail

      • SpdxFileDifference

        public SpdxFileDifference​(org.spdx.library.model.v2.SpdxFile fileA,
                                  org.spdx.library.model.v2.SpdxFile fileB,
                                  boolean concludedLicensesEqual,
                                  boolean seenLicensesEqual,
                                  List<org.spdx.library.model.v2.license.AnyLicenseInfo> uniqueSeenLicensesA,
                                  List<org.spdx.library.model.v2.license.AnyLicenseInfo> uniqueSeenLicensesB,
                                  boolean checksumsEquals,
                                  List<org.spdx.library.model.v2.Checksum> uniqueChecksumsA,
                                  List<org.spdx.library.model.v2.Checksum> uniqueChecksumsB,
                                  boolean relationshipsEquals,
                                  List<org.spdx.library.model.v2.Relationship> uniqueRelationshipA,
                                  List<org.spdx.library.model.v2.Relationship> uniqueRelationshipB,
                                  boolean annotationsEquals,
                                  List<org.spdx.library.model.v2.Annotation> uniqueAnnotationsA,
                                  List<org.spdx.library.model.v2.Annotation> uniqueAnnotationsB)
                           throws org.spdx.core.InvalidSPDXAnalysisException,
                                  SpdxCompareException
        Throws:
        org.spdx.core.InvalidSPDXAnalysisException
        SpdxCompareException
    • Method Detail

      • getFileName

        public String getFileName()
        Returns:
        the fileName
      • getFileTypeA

        public List<org.spdx.library.model.v2.enumerations.FileType> getFileTypeA()
        Returns:
        the fileTypeA
      • getFileTypeB

        public List<org.spdx.library.model.v2.enumerations.FileType> getFileTypeB()
        Returns:
        the fileTypeB
      • isContributorsEqual

        public boolean isContributorsEqual()
      • isNoticeTextsEqual

        public boolean isNoticeTextsEqual()
      • isFileDependenciesEqual

        public boolean isFileDependenciesEqual()
      • isTypeEqual

        public boolean isTypeEqual()
        Returns:
      • isChecksumsEquals

        public boolean isChecksumsEquals()
        Returns:
      • getContributorsAAsString

        public String getContributorsAAsString()
        Returns:
      • getContributorsBAsString

        public String getContributorsBAsString()
        Returns:
      • getFileDependenciesAAsString

        public String getFileDependenciesAAsString()
        Returns:
      • getFileDependenciesBAsString

        public String getFileDependenciesBAsString()
        Returns:
      • getContributorsA

        public List<String> getContributorsA()
        Returns:
        the contributorsA
      • getNoticeA

        public String getNoticeA()
        Returns:
        the noticeA
      • getContributorsB

        public List<String> getContributorsB()
        Returns:
        the contributorsB
      • getNoticeB

        public String getNoticeB()
        Returns:
        the noticeB
      • getDependantFileNamesA

        public List<String> getDependantFileNamesA()
        Returns:
        the dependantFileNamesA
      • getDependantFileNamesB

        public List<String> getDependantFileNamesB()
        Returns:
        the dependantFileNamesB
      • getUniqueChecksumsA

        public List<org.spdx.library.model.v2.Checksum> getUniqueChecksumsA()
        Returns:
        the uniqueChecksumsA
      • getUniqueChecksumsB

        public List<org.spdx.library.model.v2.Checksum> getUniqueChecksumsB()
        Returns:
        the uniqueChecksumsB
      • getSpdxIdA

        public String getSpdxIdA()
        Returns:
      • getSpdxIdB

        public String getSpdxIdB()
        Returns: