Uses of Class
org.spdx.library.model.SpdxDocument
Packages that use SpdxDocument
Package
Description
Package containing useful library functions for reading, writing, and manipulating
SPDX documents.
Copyright (c) 2019 Source Auditor Inc.
Utility classes for comparing SPDX model objects
-
Uses of SpdxDocument in org.spdx.library
Methods in org.spdx.library that return SpdxDocumentModifier and TypeMethodDescriptionstatic SpdxDocumentRead.Document.get(IModelStore modelStore, String documentUri) Methods in org.spdx.library that return types with arguments of type SpdxDocumentModifier and TypeMethodDescriptionstatic List<SpdxDocument>Read.Document.get(IModelStore modelStore) Obtains the SPDX Documents described in the provided model store. -
Uses of SpdxDocument in org.spdx.library.model
Methods in org.spdx.library.model that return SpdxDocumentModifier and TypeMethodDescriptionstatic SpdxDocumentSpdxModelFactory.createSpdxDocument(IModelStore modelStore, String documentUri, ModelCopyManager copyManager) Create an SPDX document with default values for creator, created, licenseListVersion, data license and specVersionSpdxDocument.setDocumentDescribes(List<SpdxItem> documentDescribes) clear and reset document describes to the paramater collectionSpdxDocument.setExternalDocumentRefs(Collection<ExternalDocumentRef> externalDocumentRefs) Clear the externalDocumentRefs and add all elements from externalDocumentRefsSpdxDocument.setExtractedLicenseInfos(List<ExtractedLicenseInfo> extractedLicenseInfos) Clear the extractedLicenseInfos and add all elements from extractedLicenseInfosMethods in org.spdx.library.model that return types with arguments of type SpdxDocumentModifier and TypeMethodDescriptionExternalDocumentRef.getSpdxDocument()Returns the SPDX document if it exists within the same model store, otherwise it returns Optional.emptyMethods in org.spdx.library.model with parameters of type SpdxDocument -
Uses of SpdxDocument in org.spdx.utility.compare
Fields in org.spdx.utility.compare with type parameters of type SpdxDocumentModifier and TypeFieldDescriptionprotected Map<SpdxDocument,SpdxItem> SpdxItemComparer.documentItemMap of SPDX document to Itemsprotected Map<SpdxDocument,Map<SpdxDocument, Map<String, String>>> SpdxItemComparer.extractedLicenseIdMapMapping of all extracted license info ID's between all SPDX documents included in the comparerprotected Map<SpdxDocument,Map<SpdxDocument, Map<String, String>>> SpdxItemComparer.extractedLicenseIdMapMapping of all extracted license info ID's between all SPDX documents included in the comparerMethods in org.spdx.utility.compare that return SpdxDocumentMethods in org.spdx.utility.compare that return types with arguments of type SpdxDocumentMethods in org.spdx.utility.compare with parameters of type SpdxDocumentModifier and TypeMethodDescriptionvoidSpdxFileComparer.addDocumentFile(SpdxDocument spdxDocument, SpdxFile spdxFile) Add a file to the comparer and compare to the existing filesvoidSpdxItemComparer.addDocumentItem(SpdxDocument spdxDocument, SpdxItem spdxItem) Add a new item to the comparer and compare the contents of the item to all items which have been previously addedvoidSpdxPackageComparer.addDocumentPackage(SpdxDocument spdxDocument, SpdxPackage spdxPackage) Add a package to the comparer and performs the comparison to any existing documentsvoidSpdxSnippetComparer.addDocumentSnippet(SpdxDocument spdxDocument, SpdxSnippet snippet) Add a snippet to the comparer and performs the comparison to any existing documentsSpdxComparer.collectAllFiles(SpdxDocument spdxDocument) Collect all of the files present in the SPDX document including files within documents and files embedded in packagesprotected List<SpdxPackage>SpdxComparer.collectAllPackages(SpdxDocument spdxDocument) Collect all of the packages present in the SPDX document including packages embedded in other relationships within documentsvoidSpdxComparer.compare(SpdxDocument spdxDoc1, SpdxDocument spdxDoc2) Compares 2 SPDX documentsSpdxPackageComparer.getDocPackage(SpdxDocument document) Return the package associated with the documentSpdxSnippetComparer.getDocSnippet(SpdxDocument spdxDocument) SpdxPackageComparer.getExternalRefDifferences(SpdxDocument docA, SpdxDocument docB) SpdxFileComparer.getFile(SpdxDocument spdxDocument) SpdxFileComparer.getFileDifference(SpdxDocument docA, SpdxDocument docB) Return a file difference for the file contained in two different documentsSpdxPackageComparer.getFileDifferences(SpdxDocument docA, SpdxDocument docB) Get any fileDifferences which are in docA but not in docBSpdxItemComparer.getItem(SpdxDocument doc) Get the item contained by the document docSpdxSnippetComparer.getSnippetFromFileDifference(SpdxDocument docA, SpdxDocument docB) Get any file difference for the Spdx Snippet From File between the two SPDX documents If the fileName is different, the they are considered unique files and the getUniqueSnippetFromFile should be called to obtain the unique fileSpdxItemComparer.getUniqueAnnotations(SpdxDocument docA, SpdxDocument docB) Get annotations that are in docA but not in docBSpdxFileComparer.getUniqueChecksums(SpdxDocument docA, SpdxDocument docB) Get the checksums which are present in the file contained document A but not in document BSpdxPackageComparer.getUniqueChecksums(SpdxDocument docA, SpdxDocument docB) Get the checksums which are present in document A but not in document BSpdxPackageComparer.getUniqueExternalRefs(SpdxDocument docA, SpdxDocument docB) SpdxPackageComparer.getUniqueFiles(SpdxDocument docA, SpdxDocument docB) Return any unique files by name which are in docA but not in docBSpdxItemComparer.getUniqueRelationship(SpdxDocument docA, SpdxDocument docB) Get relationships that are in docA but not in docBSpdxItemComparer.getUniqueSeenLicenses(SpdxDocument docA, SpdxDocument docB) Get any licenses found in docA but not in docBSpdxSnippetComparer.getUniqueSnippetFromFile(SpdxDocument docA, SpdxDocument docB) Get an SpdxFile that only exists in docA but not docBMethod parameters in org.spdx.utility.compare with type arguments of type SpdxDocumentModifier and TypeMethodDescriptionvoidSpdxComparer.compare(List<SpdxDocument> spdxDocuments) Compares multiple SPDX documentsConstructor parameters in org.spdx.utility.compare with type arguments of type SpdxDocumentModifierConstructorDescriptionSpdxFileComparer(Map<SpdxDocument, Map<SpdxDocument, Map<String, String>>> extractedLicenseIdMap) SpdxFileComparer(Map<SpdxDocument, Map<SpdxDocument, Map<String, String>>> extractedLicenseIdMap) SpdxItemComparer(Map<SpdxDocument, Map<SpdxDocument, Map<String, String>>> extractedLicenseIdMap) SpdxItemComparer(Map<SpdxDocument, Map<SpdxDocument, Map<String, String>>> extractedLicenseIdMap) SpdxPackageComparer(Map<SpdxDocument, Map<SpdxDocument, Map<String, String>>> extractedLicenseIdMap) SpdxPackageComparer(Map<SpdxDocument, Map<SpdxDocument, Map<String, String>>> extractedLicenseIdMap) SpdxSnippetComparer(Map<SpdxDocument, Map<SpdxDocument, Map<String, String>>> extractedLicenseIdMap) SpdxSnippetComparer(Map<SpdxDocument, Map<SpdxDocument, Map<String, String>>> extractedLicenseIdMap)