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, 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 fileInfo)
Add information about a specific SPDX file to the PerFileSheet
|
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)
Get the file information for a row in the PerFileSheet
|
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 fileInfo)
fileInfo - public abstract SPDXFile getFileInfo(int rowNum) throws SpreadsheetException
rowNum - SpreadsheetExceptionpublic static void create(org.apache.poi.ss.usermodel.Workbook wb,
String perFileSheetName)
wb - perFileSheetName - Copyright © 2014 Linux Foundation. All Rights Reserved.