Class RelationshipsSheet

java.lang.Object
org.spdx.spreadsheetstore.AbstractSheet
org.spdx.spreadsheetstore.RelationshipsSheet

public class RelationshipsSheet extends AbstractSheet
Sheet containing relationship data
Author:
Gary O'Neall
  • Constructor Details

    • RelationshipsSheet

      public RelationshipsSheet(org.apache.poi.ss.usermodel.Workbook workbook, String sheetName, org.spdx.storage.IModelStore modelStore, String documentUri, org.spdx.library.ModelCopyManager copyManager)
      Construct a RelationshipsSheet
      Parameters:
      workbook - Workbook containing the sheet.
      sheetName - Name of the sheet.
      modelStore - Model store for SPDX objects.
      documentUri - URI of the SPDX document.
      copyManager - Copy manager for SPDX objects.
  • 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.Relationship relationship, String elementId) throws SpreadsheetException
      Parameters:
      relationship -
      Throws:
      SpreadsheetException
    • getElmementId

      public String getElmementId(int rowNum)
    • getRelationship

      public org.spdx.library.model.v2.Relationship getRelationship(int rowNum) throws SpreadsheetException
      Throws:
      SpreadsheetException