Package org.spdx.spdxspreadsheet
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 Summary
Fields inherited from class org.spdx.spdxspreadsheet.AbstractSheet
checkboxStyle, dateStyle, firstCellNum, firstRowNum, FONT_SIZE, greenWrapped, lastRowNum, redWrapped, sheet, workbook, yellowWrapped -
Constructor Summary
Constructors Constructor Description NonStandardLicensesSheet(org.apache.poi.ss.usermodel.Workbook workbook, String sheetName, String version) -
Method Summary
Modifier and Type Method Description abstract voidadd(String identifier, String extractedText, String licenseName, String[] crossRefUrls, String comment)Add a new row to the NonStandardLicenses sheetstatic voidcreate(org.apache.poi.ss.usermodel.Workbook wb, String nonStandardLicenseSheetName)Create a blank worksheet NOTE: Replaces / deletes existing sheet by the same nameabstract StringgetComment(int rowNum)abstract String[]getCrossRefUrls(int rowNum)abstract StringgetExtractedText(int rowNum)Retrieve the extracted text for a specific row in the spreadsheetabstract StringgetIdentifier(int rowNum)Retrieve the license identifier for a specific row in the spreadsheetabstract StringgetLicenseName(int rowNum)static NonStandardLicensesSheetopenVersion(org.apache.poi.ss.usermodel.Workbook workbook, String nonStandardLicenseSheetName, String version)Open an existing NonStandardLicenseSheetMethods inherited from class org.spdx.spdxspreadsheet.AbstractSheet
addRow, clear, createCenterStyle, createHeaderStyle, createLeftWrapStyle, getFirstDataRow, getNumDataRows, getSheet, resizeRows, verify
-
Field Details
-
Constructor Details
-
NonStandardLicensesSheet
public NonStandardLicensesSheet(org.apache.poi.ss.usermodel.Workbook workbook, String sheetName, String version)- Parameters:
workbook-sheetName-
-
-
Method Details
-
getIdentifier
Retrieve the license identifier for a specific row in the spreadsheet- Parameters:
rowNum-- Returns:
-
getExtractedText
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 IDextractedText- Extracted license textoptional- license namecrossRefUrls- optional cross reference URL'soptional- 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
- Returns:
-
getCrossRefUrls
- Returns:
-
getComment
- Returns:
-