public class DeprecatedLicenseSheet extends AbstractSheet
checkboxStyle, dateStyle, firstCellNum, firstRowNum, FONT_SIZE, greenWrapped, lastRowNum, redWrapped, sheet, workbook, yellowWrapped| Constructor and Description |
|---|
DeprecatedLicenseSheet(org.apache.poi.ss.usermodel.Workbook workbook,
String sheetName,
File workbookFile) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(SpdxListedLicense license,
String deprecatedVersion)
Add a new row to the spreadsheet
|
static void |
create(org.apache.poi.ss.usermodel.Workbook wb,
String sheetName)
Create a blank worksheet NOTE: Replaces / deletes existing sheet by the same name
|
String |
getDeprecatedVersion(int rowNum)
Get the version the license was deprecated in (deprecated from)
|
SpdxListedLicense |
getLicense(int rowNum)
Retrieve a license for a specific row in the sheet
|
String |
verify() |
addRow, clear, createCenterStyle, createHeaderStyle, createLeftWrapStyle, getFirstDataRow, getNumDataRows, getSheet, resizeRowspublic static void create(org.apache.poi.ss.usermodel.Workbook wb,
String sheetName)
public void add(SpdxListedLicense license, String deprecatedVersion)
license - SPDX standard licensedeprecatedVersion - Version of the license list this license was first deprecatedpublic SpdxListedLicense getLicense(int rowNum) throws InvalidSPDXAnalysisException
rowNum - InvalidSPDXAnalysisExceptionpublic String getDeprecatedVersion(int rowNum)
rowNum - public String verify()
verify in class AbstractSheetCopyright © 2018 Linux Foundation. All Rights Reserved.