public abstract class PerFileSheet extends AbstractSheet
| Modifier and Type | Field and Description |
|---|---|
protected String |
version |
checkboxStyle, dateStyle, firstCellNum, firstRowNum, FONT_SIZE, greenWrapped, lastRowNum, redWrapped, sheet, workbook, yellowWrapped| Constructor and Description |
|---|
PerFileSheet(org.apache.poi.ss.usermodel.Workbook workbook,
String sheetName,
String version) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
add(SpdxFile file,
String pkgIds)
Add the file to the spreadsheet
|
static void |
create(org.apache.poi.ss.usermodel.Workbook wb,
String perFileSheetName)
Create a blank worksheet NOTE: Replaces / deletes existing sheet by the same name
|
static String[] |
csvToStrings(String csv)
Converts a comma separated CSV string to an array of strings
|
abstract SpdxFile |
getFileInfo(int rowNum,
SpdxDocumentContainer container)
Get the file information for a row in the PerFileSheet
|
abstract String[] |
getPackageIds(int row) |
static PerFileSheet |
openVersion(org.apache.poi.ss.usermodel.Workbook workbook,
String perFileSheetName,
String version)
Open a specific version of the PerFileSheet
|
static String |
stringsToCsv(String[] strings)
converts an array of strings to a comma separated list
|
addRow, clear, createCenterStyle, createHeaderStyle, createLeftWrapStyle, getFirstDataRow, getNumDataRows, getSheet, resizeRows, verifyprotected String version
public static PerFileSheet openVersion(org.apache.poi.ss.usermodel.Workbook workbook, String perFileSheetName, String version)
workbook - perFileSheetName - version - spreadsheet versionpublic static String stringsToCsv(String[] strings)
strings - public static String[] csvToStrings(String csv)
csv - public abstract void add(SpdxFile file, String pkgIds)
file - pkgIds - string containing the package ID's which contain this filepublic abstract SpdxFile getFileInfo(int rowNum, SpdxDocumentContainer container) throws SpreadsheetException
rowNum - SpreadsheetExceptionpublic static void create(org.apache.poi.ss.usermodel.Workbook wb,
String perFileSheetName)
wb - perFileSheetName - public abstract String[] getPackageIds(int row)
row - Copyright © 2018 Linux Foundation. All Rights Reserved.