Package org.spdx.tools.compare
Class MultiDocumentSpreadsheet
java.lang.Object
org.spdx.tools.compare.MultiDocumentSpreadsheet
public class MultiDocumentSpreadsheet extends Object
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
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classMultiDocumentSpreadsheet.SpdxFileComparator -
Field Summary
-
Constructor Summary
Constructors Constructor Description MultiDocumentSpreadsheet(File spreadsheetFile, boolean create, boolean readonly) -
Method Summary
Modifier and Type Method Description voidclear()voidclose()voidcreate(File spreadsheetFile)DocumentSheetgetDocumentSheet()voidimportCompareResults(org.spdx.utility.compare.SpdxComparer comparer, List<String> docNames)voidimportVerificationErrors(List<List<String>> verificationErrors, List<String> docNames)StringverifyWorkbook()voidwriteToFile(File file)Writes the spreadsheet to a file
-
Field Details
-
saveFile
-
workbook
protected org.apache.poi.ss.usermodel.Workbook workbook -
DOCUMENT_SHEET_NAME
- See Also:
- Constant Field Values
-
documentSheet
-
CREATOR_SHEET_NAME
- See Also:
- Constant Field Values
-
creatorSheet
-
PACKAGE_SHEET_NAME
- See Also:
- Constant Field Values
-
packageSheet
-
EXTRACTED_LICENSE_SHEET_NAME
- See Also:
- Constant Field Values
-
extractedLicenseSheet
-
FILE_CHECKSUM_SHEET_NAME
- See Also:
- Constant Field Values
-
fileChecksumSheet
-
FILE_CONCLUDED_SHEET_NAME
- See Also:
- Constant Field Values
-
fileConcludedSheet
-
FILE_FOUND_SHEET_NAME
- See Also:
- Constant Field Values
-
fileLicenseInfoSheet
-
FILE_LICENSE_COMMENT_SHEET_NAME
- See Also:
- Constant Field Values
-
fileLicenseCommentsSheet
-
FILE_COMMENT_SHEET_NAME
- See Also:
- Constant Field Values
-
fileCommentSheet
-
FILE_TYPE_SHEET_NAME
- See Also:
- Constant Field Values
-
fileTypeSheet
-
FILE_CONTRIBUTOR_SHEET_NAME
- See Also:
- Constant Field Values
-
fileContributorsSheet
-
FILE_ATTRIBUTION_SHEET_NAME
- See Also:
- Constant Field Values
-
fileAttributionSheet
-
FILE_NOTICE_SHEET_NAME
- See Also:
- Constant Field Values
-
fileNoticeSheet
-
VERIFICATION_SHEET_NAME
- See Also:
- Constant Field Values
-
MAX_DOCUMENTS
public static final int MAX_DOCUMENTS- See Also:
- Constant Field Values
-
EXTERNAL_REFERENCES_SHEET_NAME
- See Also:
- Constant Field Values
-
DOCUMENT_RELATIONSHIP_SHEET_NAME
- See Also:
- Constant Field Values
-
DOCUMENT_ANNOTATION_SHEET_NAME
- See Also:
- Constant Field Values
-
FILE_SPDX_ID_SHEET_NAME
- See Also:
- Constant Field Values
-
FILE_COPYRIGHT_SHEET_NAME
- See Also:
- Constant Field Values
-
FILE_ANNOTATION_SHEET_NAME
- See Also:
- Constant Field Values
-
FILE_RELATIONSHIP_SHEET
- See Also:
- Constant Field Values
-
SNIPPET_SHEET_NAME
- See Also:
- Constant Field Values
-
verificationSheet
-
externalReferencesSheet
-
documentAnnotationSheet
-
documentRelationshipSheet
-
fileSpdxIdSheet
-
fileCopyrightSheet
-
fileAnnotationSheet
-
fileRelationshipSheet
-
snippetSheet
-
-
Constructor Details
-
MultiDocumentSpreadsheet
public MultiDocumentSpreadsheet(File spreadsheetFile, boolean create, boolean readonly) throws org.spdx.spreadsheetstore.SpreadsheetException- Parameters:
spreadsheetFile-create-readonly-- Throws:
org.spdx.spreadsheetstore.SpreadsheetException
-
-
Method Details
-
create
public void create(File spreadsheetFile) throws IOException, org.spdx.spreadsheetstore.SpreadsheetException- Throws:
IOExceptionorg.spdx.spreadsheetstore.SpreadsheetException
-
importCompareResults
public void importCompareResults(org.spdx.utility.compare.SpdxComparer comparer, List<String> docNames) throws org.spdx.utility.compare.SpdxCompareException, org.spdx.library.InvalidSPDXAnalysisException- Throws:
org.spdx.utility.compare.SpdxCompareExceptionorg.spdx.library.InvalidSPDXAnalysisException
-
clear
public void clear() -
verifyWorkbook
-
importVerificationErrors
public void importVerificationErrors(List<List<String>> verificationErrors, List<String> docNames) throws org.spdx.spreadsheetstore.SpreadsheetException- Parameters:
verificationErrors-docNames-- Throws:
org.spdx.spreadsheetstore.SpreadsheetException
-
close
public void close() throws org.spdx.spreadsheetstore.SpreadsheetException- Throws:
AnalyzeExceptionorg.spdx.spreadsheetstore.SpreadsheetException
-
writeToFile
Writes the spreadsheet to a file- Throws:
IOException
-
getDocumentSheet
-