public class LicenseSheet extends AbstractSheet
checkboxStyle, dateStyle, firstCellNum, firstRowNum, FONT_SIZE, greenWrapped, lastRowNum, redWrapped, sheet, workbook, yellowWrapped| Constructor and Description |
|---|
LicenseSheet(org.apache.poi.ss.usermodel.Workbook workbook,
String sheetName,
File workbookFile) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(SpdxListedLicense license) |
static void |
create(org.apache.poi.ss.usermodel.Workbook wb,
String sheetName,
String version,
String releaseDate)
Create a blank worksheet NOTE: Replaces / deletes existing sheet by the same name
|
SpdxListedLicense |
getLicense(int rowNum)
Retrieve a license for a specific row in the sheet
|
static String |
getLicenseTemplateText(org.apache.poi.ss.usermodel.Cell textCell,
String textFilePath)
Retrieve the text from a license text cell either through the hyperlink
to a text file in a directory local to the spreadsheet or from the cell
itself if there is no hyperlink present
|
String |
getReleaseDate() |
String |
getVersion() |
static void |
setTemplateText(org.apache.poi.ss.usermodel.Cell textCell,
String text,
String licenseId,
String textFilePath,
org.apache.poi.ss.usermodel.Workbook workbook)
Adds a license template to a text cell.
|
String |
verify() |
addRow, clear, createCenterStyle, createHeaderStyle, createLeftWrapStyle, getFirstDataRow, getNumDataRows, getSheet, resizeRowspublic static void create(org.apache.poi.ss.usermodel.Workbook wb,
String sheetName,
String version,
String releaseDate)
public String getVersion()
public String getReleaseDate()
public void add(SpdxListedLicense license)
public static void setTemplateText(org.apache.poi.ss.usermodel.Cell textCell,
String text,
String licenseId,
String textFilePath,
org.apache.poi.ss.usermodel.Workbook workbook)
textCell - text - public static String getLicenseTemplateText(org.apache.poi.ss.usermodel.Cell textCell, String textFilePath)
textCell - public SpdxListedLicense getLicense(int rowNum) throws InvalidSPDXAnalysisException
rowNum - InvalidSPDXAnalysisExceptionpublic String verify()
verify in class AbstractSheetCopyright © 2018 Linux Foundation. All Rights Reserved.