Class PackageInfoSheetV2d2


public class PackageInfoSheetV2d2 extends PackageInfoSheet
Version 2.1 of the package info sheet
Author:
Gary O'Neall
  • Constructor Details

    • PackageInfoSheetV2d2

      public PackageInfoSheetV2d2(org.apache.poi.ss.usermodel.Workbook workbook, String sheetName, String version, org.spdx.storage.IModelStore modelStore, String documentUri, org.spdx.library.ModelCopyManager copyManager)
      Parameters:
      workbook -
      sheetName -
      version -
      modelStore -
      documentUri -
      copyManager -
  • Method Details

    • verify

      public String verify()
      Description copied from class: AbstractSheet
      Verifies the integrity of the sheet's data
      Specified by:
      verify in class AbstractSheet
      Returns:
      A string describing any issues, or an empty string if valid.
    • create

      public static void create(org.apache.poi.ss.usermodel.Workbook wb, String sheetName)
    • add

      public void add(org.spdx.library.model.v2.SpdxPackage pkgInfo) throws org.spdx.core.InvalidSPDXAnalysisException
      Description copied from class: PackageInfoSheet
      Adds a new SPDX package to the sheet
      Specified by:
      add in class PackageInfoSheet
      Parameters:
      pkgInfo - the SPDX package to add
      Throws:
      org.spdx.core.InvalidSPDXAnalysisException - if there is an error with the SPDX analysis
    • getPackages

      public List<org.spdx.library.model.v2.SpdxPackage> getPackages() throws SpreadsheetException, org.spdx.core.DefaultStoreNotInitializedException
      Description copied from class: PackageInfoSheet
      Retrieves a list of SPDX packages from the sheet
      Specified by:
      getPackages in class PackageInfoSheet
      Returns:
      a list of SPDX packages
      Throws:
      SpreadsheetException - if there is an error reading the spreadsheet
      org.spdx.core.DefaultStoreNotInitializedException - if the model store is not initialized