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
  • Field Details

  • 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:
      IOException
      org.spdx.spreadsheetstore.SpreadsheetException
    • importCompareResults

      public void importCompareResults(org.spdx.utility.compare.SpdxComparer comparer, List<String> docNames) throws org.spdx.utility.compare.SpdxCompareException, org.spdx.core.InvalidSPDXAnalysisException
      Throws:
      org.spdx.utility.compare.SpdxCompareException
      org.spdx.core.InvalidSPDXAnalysisException
    • clear

      public void clear()
    • verifyWorkbook

      public String 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:
      org.spdx.spreadsheetstore.SpreadsheetException
    • writeToFile

      public void writeToFile(File file) throws IOException
      Writes the spreadsheet to a file
      Throws:
      IOException
    • getDocumentSheet

      public DocumentSheet getDocumentSheet()