Uses of Class
org.spdx.rdfparser.model.SpdxDocument
| Package | Description |
|---|---|
| org.spdx.compare | |
| org.spdx.html | |
| org.spdx.merge | |
| org.spdx.rdfparser | |
| org.spdx.rdfparser.model |
Model for the SPDX 2.0+ specification.
|
| org.spdx.spdxspreadsheet | |
| org.spdx.tag | |
| org.spdx.tools |
-
Uses of SpdxDocument in org.spdx.compare
Fields in org.spdx.compare with type parameters of type SpdxDocument Modifier and Type Field Description protected 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.compare that return SpdxDocument Modifier and Type Method Description SpdxDocumentSpdxComparer. getSpdxDoc(int docIndex)SpdxDocument[]SpdxComparer. getSpdxDocuments()Methods in org.spdx.compare with parameters of type SpdxDocument Modifier and Type Method Description voidSpdxFileComparer. 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 documentsprotected SpdxFile[]SpdxComparer. collectAllFiles(SpdxDocument spdxDocument)Collect all of the files present in the SPDX document including files within documents and files embedded in packagesprotected 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[] spdxDocuments)Compares multiple SPDX documentsvoidSpdxComparer. compare(SpdxDocument spdxDoc1, SpdxDocument spdxDoc2)Compares 2 SPDX documentsSpdxPackageSpdxPackageComparer. getDocPackage(SpdxDocument document)Return the package associated with the documentSpdxSnippetSpdxSnippetComparer. getDocSnippet(SpdxDocument spdxDocument)SpdxExternalRefDifference[]SpdxPackageComparer. getExternalRefDifferences(SpdxDocument docA, SpdxDocument docB)SpdxFileSpdxFileComparer. getFile(SpdxDocument spdxDocument)SpdxFileDifferenceSpdxFileComparer. getFileDifference(SpdxDocument docA, SpdxDocument docB)Return a file difference for the file contained in two different documentsSpdxFileDifference[]SpdxPackageComparer. getFileDifferences(SpdxDocument docA, SpdxDocument docB)Get any fileDifferences which are in docA but not in docBSpdxItemSpdxItemComparer. getItem(SpdxDocument doc)Get the item contained by the document docSpdxFileDifferenceSpdxSnippetComparer. 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 fileAnnotation[]SpdxItemComparer. getUniqueAnnotations(SpdxDocument docA, SpdxDocument docB)Get annotations that are in docA but not in docBDoapProject[]SpdxFileComparer. getUniqueArtifactOf(SpdxDocument docA, SpdxDocument docB)Return all artifactOfs which are in the file contained in docA but not in file contained in docBChecksum[]SpdxFileComparer. getUniqueChecksums(SpdxDocument docA, SpdxDocument docB)Get the checksums which are present in the file contained document A but not in document BChecksum[]SpdxPackageComparer. getUniqueChecksums(SpdxDocument docA, SpdxDocument docB)Get the checksums which are present in document A but not in document BExternalRef[]SpdxPackageComparer. getUniqueExternalRefs(SpdxDocument docA, SpdxDocument docB)SpdxFile[]SpdxPackageComparer. getUniqueFiles(SpdxDocument docA, SpdxDocument docB)Return any unique files by name which are in docA but not in docBRelationship[]SpdxItemComparer. getUniqueRelationship(SpdxDocument docA, SpdxDocument docB)Get relationships that are in docA but not in docBAnyLicenseInfo[]SpdxItemComparer. getUniqueSeenLicenses(SpdxDocument docA, SpdxDocument docB)Get any licenses found in docA but not in docBSpdxFileSpdxSnippetComparer. getUniqueSnippetFromFile(SpdxDocument docA, SpdxDocument docB)Get an SpdxFile that only exists in docA but not docBConstructor parameters in org.spdx.compare with type arguments of type SpdxDocument Constructor Description SpdxFileComparer(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) -
Uses of SpdxDocument in org.spdx.html
Methods in org.spdx.html with parameters of type SpdxDocument Modifier and Type Method Description static Map<String,Object>MustacheMap. buildDocFileMustacheMap(SpdxDocument doc, SpdxFile[] files, Map<String,String> spdxIdToUrl, Map<String,List<SpdxSnippet>> fileIdToSnippets)static Map<String,Object>MustacheMap. buildDocMustachMap(SpdxDocument doc, Map<String,String> spdxIdToUrl)static Map<String,Object>MustacheMap. buildExtractedLicMustachMap(SpdxDocument doc, Map<String,String> spdxIdToUrl)static Map<String,Object>MustacheMap. buildSnippetMustachMap(SpdxDocument doc, Map<String,String> spdxIdToUrl)Constructors in org.spdx.html with parameters of type SpdxDocument Constructor Description CreatorInfoContext(SpdxDocument doc2) -
Uses of SpdxDocument in org.spdx.merge
Methods in org.spdx.merge with parameters of type SpdxDocument Modifier and Type Method Description AnyLicenseInfo[]SpdxPackageInfoMerger. checkLicenseFromFile(SpdxDocument doc, SpdxPackage temp)A method to check license from file information through mapLicenseInfo function.booleanSpdxLicenseMapper. docInNonStdLicIdMap(SpdxDocument spdxDoc)Map<AnyLicenseInfo,AnyLicenseInfo>SpdxLicenseMapper. foundInterMap(SpdxDocument spdxDoc)AnyLicenseInfoSpdxLicenseMapper. mapLicenseInfo(SpdxDocument spdxDoc, AnyLicenseInfo license)a method gets a sub SPDX document and licenses from declared licenses in document package.AnyLicenseInfoSpdxLicenseMapper. mapNonStdLicInMap(SpdxDocument spdxDoc, AnyLicenseInfo license)a method gets a sub SPDX document and one of its license (non-standard license).voidSpdxLicenseMapper. mappingExistingNonStdLic(SpdxDocument output, ExtractedLicenseInfo outputDocLicense, SpdxDocument subDocs, ExtractedLicenseInfo subLicense)Maps a subDoc nonstandard license to an existing output document nonstandard licenseExtractedLicenseInfoSpdxLicenseMapper. mappingNewNonStdLic(SpdxDocument outputDoc, SpdxDocument subDoc, ExtractedLicenseInfo subNonStdLicInfo)Creates a new non-standard license in the outputDoc and creates a mapping between the output document non-standard license and the subDoc non standard license This particular non-standard license is unique to the outputDoc document.SpdxFile[]SpdxFileInfoMerger. mergeFileInfo(SpdxDocument[] subDocs)ExtractedLicenseInfo[]SpdxLicenseInfoMerger. mergeNonStdLic(SpdxDocument[] subDocs)SpdxFileSpdxLicenseMapper. replaceNonStdLicInFile(SpdxDocument spdxDoc, SpdxFile subFileInfo)a method gets a sub SPDX document and its file information.StringSpdxPackageInfoMerger. translateSubDelcaredLicsIntoComments(SpdxDocument[] subDocs)Deprecated.Constructors in org.spdx.merge with parameters of type SpdxDocument Constructor Description SpdxFileInfoMerger(SpdxDocument master, SpdxLicenseMapper mapper)SpdxItemInfoMerger(SpdxItem itemInfoResult2, SpdxDocument[] mergeDocs)SpdxLicenseInfoMerger(SpdxDocument outputDoc, SpdxLicenseMapper mapper)SpdxPackageInfoMerger(List<SpdxPackage> masterPackagesInfo, SpdxDocument[] subDocs, SpdxLicenseMapper mapper) -
Uses of SpdxDocument in org.spdx.rdfparser
Methods in org.spdx.rdfparser that return SpdxDocument Modifier and Type Method Description static SpdxDocumentSPDXDocumentFactory. createSpdxDocument(InputStream input, String baseUri, String fileType)static SpdxDocumentSPDXDocumentFactory. createSpdxDocument(String fileNameOrUrl)Create an SPDX Document from a filestatic SpdxDocumentSPDXDocumentFactory. createSpdxDocument(org.apache.jena.rdf.model.Model model)Create a new SPDX Document populating the data from the existing modelSpdxDocumentSpdxDocumentContainer. getSpdxDocument() -
Uses of SpdxDocument in org.spdx.rdfparser.model
Methods in org.spdx.rdfparser.model that return SpdxDocument Modifier and Type Method Description SpdxDocumentExternalDocumentRef. getSpdxDocument()Methods in org.spdx.rdfparser.model with parameters of type SpdxDocument Modifier and Type Method Description voidExternalDocumentRef. setSpdxDocument(SpdxDocument spdxDocument)Constructors in org.spdx.rdfparser.model with parameters of type SpdxDocument Constructor Description ExternalDocumentRef(SpdxDocument externalDocument, Checksum checksum, String externalDocumentId) -
Uses of SpdxDocument in org.spdx.spdxspreadsheet
Methods in org.spdx.spdxspreadsheet with parameters of type SpdxDocument Modifier and Type Method Description abstract voidDocumentInfoSheet. addDocument(SpdxDocument doc)Add all origin information from the documentvoidOriginsSheetV0d9d4. addDocument(SpdxDocument doc)voidOriginsSheetV1d1. addDocument(SpdxDocument doc)voidOriginsSheetV1d2. addDocument(SpdxDocument doc)voidOriginsSheetV2d0. addDocument(SpdxDocument doc) -
Uses of SpdxDocument in org.spdx.tag
Methods in org.spdx.tag with parameters of type SpdxDocument Modifier and Type Method Description static voidCommonCode. printDoc(SpdxDocument doc, PrintWriter out, Properties constants) -
Uses of SpdxDocument in org.spdx.tools
Methods in org.spdx.tools that return SpdxDocument Modifier and Type Method Description protected static SpdxDocumentCompareSpdxDocs. convertTagValueToRdf(File tagValueFile, List<String> warnings)Converts a tag/value file to an rdfFilestatic SpdxDocumentSpreadsheetToRDF. copySpreadsheetToSPDXAnalysis(SPDXSpreadsheet ss)protected static SpdxDocumentCompareSpdxDocs. openRdfOrTagDoc(String spdxDocFileName, List<String> warnings)Methods in org.spdx.tools with parameters of type SpdxDocument Modifier and Type Method Description static voidRdfToSpreadsheet. copyRdfXmlToSpreadsheet(SpdxDocument doc, SPDXSpreadsheet ss)static voidRdfToHtml. rdfToHtml(SpdxDocument doc, File docHtmlFile, File licenseHtmlFile, File snippetHtmlFile, File docFilesHtmlFile)static voidRdfToHtml. rdfToHtml(SpdxDocument doc, File templateDir, File docHtmlFile, File licenseHtmlFile, File snippetHtmlFile, File docFilesHtmlFile)