Class NonStandardLicensesSheet

java.lang.Object
org.spdx.spdxspreadsheet.AbstractSheet
org.spdx.spdxspreadsheet.NonStandardLicensesSheet
Direct Known Subclasses:
NonStandardLicensesSheetV0d9d4, NonStandardLicensesSheetV1d1

public abstract class NonStandardLicensesSheet
extends AbstractSheet
Abstract sheet for NonSTandardLicenses. Specific versions are implemented as subclasses.
Author:
Gary O'Neall
  • Field Details

  • Constructor Details

    • NonStandardLicensesSheet

      public NonStandardLicensesSheet​(org.apache.poi.ss.usermodel.Workbook workbook, String sheetName, String version)
      Parameters:
      workbook -
      sheetName -
  • Method Details

    • getIdentifier

      public abstract String getIdentifier​(int rowNum)
      Retrieve the license identifier for a specific row in the spreadsheet
      Parameters:
      rowNum -
      Returns:
    • getExtractedText

      public abstract String getExtractedText​(int rowNum)
      Retrieve the extracted text for a specific row in the spreadsheet
      Parameters:
      rowNum -
      Returns:
    • add

      public abstract void add​(String identifier, String extractedText, String licenseName, String[] crossRefUrls, String comment)
      Add a new row to the NonStandardLicenses sheet
      Parameters:
      identifier - License ID
      extractedText - Extracted license text
      optional - license name
      crossRefUrls - optional cross reference URL's
      optional - comment
    • openVersion

      public static NonStandardLicensesSheet openVersion​(org.apache.poi.ss.usermodel.Workbook workbook, String nonStandardLicenseSheetName, String version)
      Open an existing NonStandardLicenseSheet
      Parameters:
      workbook -
      nonStandardLicenseSheetName -
      version - Spreadsheet version
      Returns:
    • create

      public static void create​(org.apache.poi.ss.usermodel.Workbook wb, String nonStandardLicenseSheetName)
      Create a blank worksheet NOTE: Replaces / deletes existing sheet by the same name
      Parameters:
      wb -
      nonStandardLicenseSheetName -
    • getLicenseName

      public abstract String getLicenseName​(int rowNum)
      Returns:
    • getCrossRefUrls

      public abstract String[] getCrossRefUrls​(int rowNum)
      Returns:
    • getComment

      public abstract String getComment​(int rowNum)
      Returns: