Lines Matching full:document
14 from zspdx.datatypes import DocumentConfig, Document, File, PackageConfig, Package, RelationshipDat…
23 # prefix for Document namespaces; should not end with "/"
32 # should also add an SPDX document for the SDK?
53 # dict of absolute file path => the Document that owns that file
95 rd.ownerType = RelationshipDataElementType.DOCUMENT
181 # set up app document
186 self.docApp = Document(cfgApp)
201 # set up build document
206 self.docBuild = Document(cfgBuild)
210 # the DESCRIBES relationship for the build document will be
213 rd.ownerType = RelationshipDataElementType.DOCUMENT
223 # set up zephyr document
228 self.docZephyr = Document(cfgZephyr)
305 # set up SDK document
310 self.docSDK = Document(cfgSDK)
323 rd.ownerType = RelationshipDataElementType.DOCUMENT
333 # set up zephyr document
338 self.docModulesExtRefs = Document(cfgModuleExtRef)
431 # add Package to build Document
463 # add file path link to Document and global links
620 # assigning them to the appropriate Document and Package
643 … log.dbg(f" - {srcAbspath}: assigning to build document, package {pkgBuild.cfg.name}")
647 log.dbg(f" - {srcAbspath}: assigning to sdk document")
651 log.dbg(f" - {srcAbspath}: assigning to app document")
655 log.dbg(f" - {srcAbspath}: assigning to zephyr document")
659 log.dbg(f" - {srcAbspath}: can't determine which document should own; skipping")
662 # create File and assign it to the Package and Document
673 # add file path link to Document and global links
680 def findPackageFromSrcAbsPath(self, document, srcAbspath): argument
686 for pkg in document.pkgs.values():
723 # get owner (left side) document and SPDX ID of Relationship for given RelationshipData
724 # returns: doc, spdxID, rlnsArray (for either Document, Package, or File, as applicable)
727 # find the document for this file abspath, and then the specific file's ID
730 …log.dbg(f" - searching for relationship, can't find document with file {rlnData.ownerFileAbspath}…
734 …earching for relationship for file {rlnData.ownerFileAbspath} points to document {ownerDoc.cfg.nam…
742 # find the document for this target name, and then the specific package's ID
752 …r relationship for target {rlnData.ownerTargetName}, target not found in build document; skipping")
754 elif rlnData.ownerType == RelationshipDataElementType.DOCUMENT:
755 # will always be SPDXRef-DOCUMENT
756 return rlnData.ownerDocument, "SPDXRef-DOCUMENT", rlnData.ownerDocument.relationships
764 # find the document for this file abspath, and then the specific file's ID
767 …log.dbg(f" - searching for relationship, can't find document with file {rlnData.otherFileAbspath}…
771 …earching for relationship for file {rlnData.otherFileAbspath} points to document {otherDoc.cfg.nam…
784 # find the document for this target name, and then the specific package's ID
798 …r relationship for target {rlnData.otherTargetName}, target not found in build document; skipping")