Package org.spdx.compare
Class MultiDocumentSpreadsheet
java.lang.Object
org.spdx.spdxspreadsheet.AbstractSpreadsheet
org.spdx.compare.MultiDocumentSpreadsheet
public class MultiDocumentSpreadsheet extends AbstractSpreadsheet
Spreadsheet holding the results of a comparison from multiple SPDX documents
Each sheet contains the comparison result results with the columns representing the SPDX documents
and the rows representing the SPDX fields.
The sheets include:
- document: Document level fields Created, Data License, Document Comment, created date, creator comment
- creator: Creators
- package: Package level fields name, version, filename, supplier, ...
- extracted license info: Extracted license text and identifiers
- file checksums: file checksums
- file concluded: license concluded for each file
- file licenseInfo: license information from each file
- file license comments: license comments from each file
- file artifactOfs: artifact of for all files
- file type: file type of all files
- reviewers: review information
- verification: List of any verification errors
- Author:
- Gary O'Neall
-
Field Summary
Fields Modifier and Type Field Description static intMAX_DOCUMENTS -
Constructor Summary
Constructors Constructor Description MultiDocumentSpreadsheet(File spreadsheetFile, boolean create, boolean readonly) -
Method Summary
Modifier and Type Method Description voidclear()voidcreate(File spreadsheetFile)voidimportCompareResults(SpdxComparer comparer, String[] docNames)voidimportVerificationErrors(List<String>[] verificationErrors, String[] docNames)StringverifyWorkbook()
-
Field Details
-
MAX_DOCUMENTS
public static final int MAX_DOCUMENTS- See Also:
- Constant Field Values
-
-
Constructor Details
-
MultiDocumentSpreadsheet
public MultiDocumentSpreadsheet(File spreadsheetFile, boolean create, boolean readonly) throws SpreadsheetException- Parameters:
spreadsheetFile-create-readonly-- Throws:
SpreadsheetException
-
-
Method Details
-
create
- Specified by:
createin classAbstractSpreadsheet- Throws:
IOExceptionSpreadsheetException
-
importCompareResults
public void importCompareResults(SpdxComparer comparer, String[] docNames) throws SpdxCompareException, InvalidSPDXAnalysisException -
clear
public void clear()- Specified by:
clearin classAbstractSpreadsheet
-
verifyWorkbook
- Specified by:
verifyWorkbookin classAbstractSpreadsheet
-
importVerificationErrors
public void importVerificationErrors(List<String>[] verificationErrors, String[] docNames) throws SpreadsheetException- Parameters:
verificationErrors-docNames-- Throws:
SpreadsheetException
-