Class PerFileSheetV2d3


public class PerFileSheetV2d3 extends PerFileSheet
Per file sheet voer version 2.2 of the SPDX spec
Author:
Gary O'Neall
  • Method Details

    • create

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

      public void add(org.spdx.library.model.v2.SpdxFile fileInfo, String pkgId) throws SpreadsheetException
      Description copied from class: PerFileSheet
      Add the file to the spreadsheet
      Specified by:
      add in class PerFileSheet
      Parameters:
      fileInfo -
      pkgId - string containing the package ID's which contain this file
      Throws:
      SpreadsheetException
    • getFileInfo

      public org.spdx.library.model.v2.SpdxFile getFileInfo(int rowNum) throws SpreadsheetException, org.spdx.core.DefaultStoreNotInitializedException
      Description copied from class: PerFileSheet
      Get the file information for a row in the PerFileSheet
      Specified by:
      getFileInfo in class PerFileSheet
      Parameters:
      rowNum -
      Returns:
      Throws:
      org.spdx.core.DefaultStoreNotInitializedException
      SpreadsheetException
    • findFileByName

      public org.spdx.library.model.v2.SpdxFile findFileByName(String fileName) throws SpreadsheetException, org.spdx.core.DefaultStoreNotInitializedException
      Finds an SPDX file by name by searching through the rows for a matching file name
      Parameters:
      fileName -
      Returns:
      Throws:
      SpreadsheetException
      org.spdx.core.DefaultStoreNotInitializedException
    • getPackageIds

      public List<String> getPackageIds(int row)
      Specified by:
      getPackageIds in class PerFileSheet
      Parameters:
      row -
      Returns:
    • 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.
    • getFileId

      protected String getFileId(int rowNum)
      Specified by:
      getFileId in class PerFileSheet
      Parameters:
      rowNum -
      Returns:
      file ID for rownum