| 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 |
| Modifier and Type | Method and Description |
|---|---|
protected SpdxFile[] |
SpdxComparer.collectAllFiles(SpdxDocument spdxDocument)
Collect all of the files present in the SPDX document including files within documents
and files embedded in packages
|
SpdxFile |
SpdxFileComparer.getFile(SpdxDocument spdxDocument) |
SpdxFile[] |
SpdxComparer.getUniqueFiles(int docindex1,
int docindex2)
Return any files which are in spdx document index 1 but not in spdx document index 2
|
SpdxFile[] |
SpdxPackageComparer.getUniqueFiles(SpdxDocument docA,
SpdxDocument docB)
Return any unique files by name which are in docA but not in docB
|
SpdxFile |
SpdxSnippetComparer.getUniqueSnippetFromFile(SpdxDocument docA,
SpdxDocument docB)
Get an SpdxFile that only exists in docA but not docB
|
| Modifier and Type | Method and Description |
|---|---|
void |
SpdxFileComparer.addDocumentFile(SpdxDocument spdxDocument,
SpdxFile spdxFile)
Add a file to the comparer and compare to the existing files
|
static String[] |
SpdxFileComparer.filesToFileNames(SpdxFile[] files)
Extracts out the file names into a string array
|
void |
AbstractFileCompareSheet.importCompareResults(SpdxComparer comparer,
SpdxFile[][] files,
String[] docNames) |
| Constructor and Description |
|---|
SpdxFileDifference(SpdxFile fileA,
SpdxFile fileB,
boolean concludedLicensesEqual,
boolean seenLicensesEqual,
AnyLicenseInfo[] uniqueSeenLicensesA,
AnyLicenseInfo[] uniqueSeenLicensesB,
boolean artifactOfsEquals,
DoapProject[] uniqueArtifactOfA2,
DoapProject[] uniqueArtifactOfB2,
boolean checksumsEquals,
Checksum[] uniqueChecksumsA,
Checksum[] uniqueChecksumsB,
boolean relationshipsEquals,
Relationship[] uniqueRelationshipA,
Relationship[] uniqueRelationshipB,
boolean annotationsEquals,
Annotation[] uniqueAnnotationsA,
Annotation[] uniqueAnnotationsB) |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Object> |
MustacheMap.buildDocFileMustacheMap(SpdxDocument doc,
SpdxFile[] files,
Map<String,String> spdxIdToUrl,
Map<String,List<SpdxSnippet>> fileIdToSnippets) |
| Constructor and Description |
|---|
FileContext(SpdxFile SpdxFile,
Map<String,String> spdxIdToUrl,
Map<String,List<SpdxSnippet>> fileIdToSnippets) |
| Modifier and Type | Method and Description |
|---|---|
SpdxFile[] |
SpdxFileInfoMerger.cloneList(List<SpdxFile> filesList) |
SpdxFile[] |
SpdxFileInfoMerger.mergeFileInfo(SpdxDocument[] subDocs) |
SpdxFile |
SpdxLicenseMapper.replaceNonStdLicInFile(SpdxDocument spdxDoc,
SpdxFile subFileInfo)
a method gets a sub SPDX document and its file information.
|
| Modifier and Type | Method and Description |
|---|---|
List<SpdxFile> |
SpdxFileInfoMerger.cloneFiles(List<SpdxFile> filesArray) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SpdxFileInfoMerger.checkDoapProject(SpdxFile spdxFile) |
List<SpdxPackage> |
SpdxPackageInfoMerger.mergePackagesInfo(SpdxFile[] fileMergeResult)
A method to merge all packages' information from sub list documents into master document
|
SpdxFile |
SpdxLicenseMapper.replaceNonStdLicInFile(SpdxDocument spdxDoc,
SpdxFile subFileInfo)
a method gets a sub SPDX document and its file information.
|
| Modifier and Type | Method and Description |
|---|---|
List<SpdxFile> |
SpdxFileInfoMerger.cloneFiles(List<SpdxFile> filesArray) |
SpdxFile[] |
SpdxFileInfoMerger.cloneList(List<SpdxFile> filesList) |
| Modifier and Type | Method and Description |
|---|---|
SpdxFile[] |
SpdxDocumentContainer.getFileReferences()
get all file references contained within the container
|
| Modifier and Type | Method and Description |
|---|---|
List<SpdxFile> |
SpdxDocumentContainer.findAllFiles() |
| Modifier and Type | Method and Description |
|---|---|
SpdxPackageVerificationCode |
VerificationCodeGenerator.generatePackageVerificationCode(SpdxFile[] spdxFiles,
String[] skippedFilePaths)
Generate the SPDX Package Verification Code from an array of SPDXFiles
|
| Modifier and Type | Method and Description |
|---|---|
SpdxFile |
SpdxFile.clone() |
SpdxFile |
SpdxFile.clone(Map<String,SpdxElement> clonedElementIds) |
SpdxFile[] |
SpdxFile.cloneFileDependencies(Map<String,SpdxElement> clonedElementIds) |
SpdxFile[] |
SpdxFile.getFileDependencies()
Deprecated.
|
SpdxFile[] |
SpdxPackage.getFiles() |
SpdxFile[] |
SpdxPackage.getFiles(boolean checkRelationships) |
SpdxFile |
SpdxSnippet.getSnippetFromFile() |
| Modifier and Type | Method and Description |
|---|---|
void |
SpdxPackage.addFile(SpdxFile file)
Add a file to the list of files attached to this package
|
int |
SpdxFile.compareTo(SpdxFile file)
This method is used for sorting a list of SPDX files
|
protected static org.apache.jena.rdf.model.Resource |
SpdxFile.findFileResource(IModelContainer modelContainer,
SpdxFile spdxFile)
Finds the resource for an existing file in the model
|
void |
SpdxFile.setFileDependencies(SpdxFile[] fileDependencies)
Deprecated.
|
void |
SpdxPackage.setFiles(SpdxFile[] files) |
void |
SpdxSnippet.setSnippetFromFile(SpdxFile snippetFromFile) |
| Constructor and Description |
|---|
SpdxPackage(String name,
AnyLicenseInfo licenseConcluded,
AnyLicenseInfo[] licenseInfosFromFiles,
String copyrightText,
AnyLicenseInfo licenseDeclared,
String downloadLocation,
SpdxFile[] files,
SpdxPackageVerificationCode packageVerificationCode) |
SpdxPackage(String name,
String comment,
Annotation[] annotations,
Relationship[] relationships,
AnyLicenseInfo licenseConcluded,
AnyLicenseInfo[] licenseInfosFromFiles,
String copyrightText,
String licenseComment,
AnyLicenseInfo licenseDeclared,
Checksum[] checksums,
String description,
String downloadLocation,
SpdxFile[] files,
String homepage,
String originator,
String packageFileName,
SpdxPackageVerificationCode packageVerificationCode,
String sourceInfo,
String summary,
String supplier,
String versionInfo) |
SpdxPackage(String name,
String comment,
Annotation[] annotations,
Relationship[] relationships,
AnyLicenseInfo licenseConcluded,
AnyLicenseInfo[] licenseInfosFromFiles,
String copyrightText,
String licenseComment,
AnyLicenseInfo licenseDeclared,
Checksum[] checksums,
String description,
String downloadLocation,
SpdxFile[] files,
String homepage,
String originator,
String packageFileName,
SpdxPackageVerificationCode packageVerificationCode,
String sourceInfo,
String summary,
String supplier,
String versionInfo,
boolean filesAnalyzed,
ExternalRef[] externalRefs) |
SpdxSnippet(String name,
String comment,
Annotation[] annotations,
Relationship[] relationships,
AnyLicenseInfo licenseConcluded,
AnyLicenseInfo[] licenseInfoInFile,
String copyrightText,
String licenseComment,
SpdxFile snippetFromFile,
StartEndPointer byteRange,
StartEndPointer lineRange) |
| Modifier and Type | Method and Description |
|---|---|
SpdxFile |
PerFileSheetV2d0.findFileByName(String fileName,
SpdxDocumentContainer container)
Finds an SPDX file by name by searching through the rows for a matching file name
|
SpdxFile |
PerFileSheetV1d2.findFileByName(String fileName,
SpdxDocumentContainer container)
Finds an SPDX file by name by searching through the rows for a matching file name
|
SpdxFile |
PerFileSheetV2d0.getFileInfo(int rowNum,
SpdxDocumentContainer container) |
SpdxFile |
PerFileSheetV1d2.getFileInfo(int rowNum,
SpdxDocumentContainer container) |
SpdxFile |
PerFileSheetV1d1.getFileInfo(int rowNum,
SpdxDocumentContainer container) |
SpdxFile |
PerFileSheetV09d3.getFileInfo(int rowNum,
SpdxDocumentContainer container) |
abstract SpdxFile |
PerFileSheet.getFileInfo(int rowNum,
SpdxDocumentContainer container)
Get the file information for a row in the PerFileSheet
|
| Modifier and Type | Method and Description |
|---|---|
void |
PerFileSheetV2d0.add(SpdxFile fileInfo,
String pkgId) |
void |
PerFileSheetV1d2.add(SpdxFile fileInfo,
String pkgId) |
void |
PerFileSheetV1d1.add(SpdxFile fileInfo,
String pkgId) |
void |
PerFileSheetV09d3.add(SpdxFile fileInfo,
String packageIds) |
abstract void |
PerFileSheet.add(SpdxFile file,
String pkgIds)
Add the file to the spreadsheet
|
Copyright © 2017 Linux Foundation. All Rights Reserved.