Class SpdxItemComparer

  • Direct Known Subclasses:
    SpdxFileComparer, SpdxPackageComparer, SpdxSnippetComparer

    public class SpdxItemComparer
    extends Object
    Compares two SPDX items. The compare(itemA, itemB) method will perform the comparison and store the results. isDifferenceFound() will return true of any differences were found.
    Author:
    Gary
    • Field Detail

      • documentItem

        protected Map<org.spdx.library.model.v2.SpdxDocument,​org.spdx.library.model.v2.SpdxItem> documentItem
        Map of SPDX document to Items
      • extractedLicenseIdMap

        protected Map<org.spdx.library.model.v2.SpdxDocument,​Map<org.spdx.library.model.v2.SpdxDocument,​Map<String,​String>>> extractedLicenseIdMap
        Mapping of all extracted license info ID's between all SPDX documents included in the comparer
    • Constructor Detail

      • SpdxItemComparer

        public SpdxItemComparer​(Map<org.spdx.library.model.v2.SpdxDocument,​Map<org.spdx.library.model.v2.SpdxDocument,​Map<String,​String>>> extractedLicenseIdMap)