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:
        true if the types are equal
      • isChecksumsEquals

        public boolean isChecksumsEquals()
        Returns:
        true if the checksums are equal
      • getContributorsAAsString

        public String getContributorsAAsString()
        Returns:
        string form af all A contributors
      • getContributorsBAsString

        public String getContributorsBAsString()
        Returns:
        string form of all B contributors
      • getFileDependenciesAAsString

        public String getFileDependenciesAAsString()
        Returns:
        string form of all A file dependencies
      • getFileDependenciesBAsString

        public String getFileDependenciesBAsString()
        Returns:
        string form of all B file dependencies
      • 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:
        SPDX ID for A
      • getSpdxIdB

        public String getSpdxIdB()
        Returns:
        SPDX ID for B