Class SpdxItemDifference

  • Direct Known Subclasses:
    SpdxFileDifference

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

      • SpdxItemDifference

        public SpdxItemDifference​(org.spdx.library.model.v2.SpdxItem itemA,
                                  org.spdx.library.model.v2.SpdxItem itemB,
                                  boolean concludedLicensesEqual,
                                  boolean seenLicensesEqual,
                                  List<org.spdx.library.model.v2.license.AnyLicenseInfo> uniqueSeenLicensesA,
                                  List<org.spdx.library.model.v2.license.AnyLicenseInfo> uniqueSeenLicensesB,
                                  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
        Throws:
        org.spdx.core.InvalidSPDXAnalysisException
    • Method Detail

      • getName

        public String getName()
        Returns:
        the name
      • getCommentA

        public String getCommentA()
        Returns:
        the commentA
      • getCommentB

        public String getCommentB()
        Returns:
        the commentB
      • getConcludedLicenseA

        public String getConcludedLicenseA()
        Returns:
        the concludedLicenseA
      • getConcludedLicenseB

        public String getConcludedLicenseB()
        Returns:
        the concludedLicenseB
      • isConcludedLicenseEquals

        public boolean isConcludedLicenseEquals()
        Returns:
        the concludedLicenseEquals
      • getCopyrightA

        public String getCopyrightA()
        Returns:
        the copyrightA
      • getCopyrightB

        public String getCopyrightB()
        Returns:
        the copyrightB
      • getLicenseCommentsA

        public String getLicenseCommentsA()
        Returns:
        the licenseCommentsA
      • getLicenseCommentsB

        public String getLicenseCommentsB()
        Returns:
        the licenseCommentsB
      • isSeenLicensesEquals

        public boolean isSeenLicensesEquals()
        Returns:
        the seenLicensesEqual
      • getUniqueSeenLicensesA

        public List<org.spdx.library.model.v2.license.AnyLicenseInfo> getUniqueSeenLicensesA()
        Returns:
        the uniqueSeenLicensesA
      • getUniqueSeenLicensesB

        public List<org.spdx.library.model.v2.license.AnyLicenseInfo> getUniqueSeenLicensesB()
        Returns:
        the uniqueSeenLicensesB
      • isCommentsEquals

        public boolean isCommentsEquals()
      • isCopyrightsEqual

        public boolean isCopyrightsEqual()
      • isLicenseCommentsEqual

        public boolean isLicenseCommentsEqual()
      • isRelationshipsEquals

        public boolean isRelationshipsEquals()
        Returns:
        the relationshipsEquals
      • getUniqueRelationshipA

        public List<org.spdx.library.model.v2.Relationship> getUniqueRelationshipA()
        Returns:
        the uniqueRelationshipA
      • getUniqueRelationshipB

        public List<org.spdx.library.model.v2.Relationship> getUniqueRelationshipB()
        Returns:
        the uniqueRelationshipB
      • isAnnotationsEquals

        public boolean isAnnotationsEquals()
        Returns:
        the annotationsEquals
      • getUniqueAnnotationsA

        public List<org.spdx.library.model.v2.Annotation> getUniqueAnnotationsA()
        Returns:
        the uniqueAnnotationsA
      • getUniqueAnnotationsB

        public List<org.spdx.library.model.v2.Annotation> getUniqueAnnotationsB()
        Returns:
        the uniqueAnnotationsB