Package org.spdx.spdxspreadsheet
Class PerFileSheetV1d2
java.lang.Object
org.spdx.spdxspreadsheet.AbstractSheet
org.spdx.spdxspreadsheet.PerFileSheet
org.spdx.spdxspreadsheet.PerFileSheetV1d2
public class PerFileSheetV1d2 extends PerFileSheet
- 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 PerFileSheetV1d2(org.apache.poi.ss.usermodel.Workbook workbook, String sheetName, String version)
-
Method Summary
Modifier and Type Method Description void
add(SpdxFile fileInfo, String pkgId)
Add the file to the spreadsheetstatic void
create(org.apache.poi.ss.usermodel.Workbook wb, String sheetName)
SpdxFile
findFileByName(String fileName, SpdxDocumentContainer container)
Finds an SPDX file by name by searching through the rows for a matching file nameSpdxFile
getFileInfo(int rowNum, SpdxDocumentContainer container)
Get the file information for a row in the PerFileSheetString[]
getPackageIds(int row)
String
verify()
Methods inherited from class org.spdx.spdxspreadsheet.PerFileSheet
csvToStrings, openVersion, stringsToCsv
Methods inherited from class org.spdx.spdxspreadsheet.AbstractSheet
addRow, clear, createCenterStyle, createHeaderStyle, createLeftWrapStyle, getFirstDataRow, getNumDataRows, getSheet, resizeRows
-
Constructor Details
-
PerFileSheetV1d2
public PerFileSheetV1d2(org.apache.poi.ss.usermodel.Workbook workbook, String sheetName, String version)- Parameters:
workbook
-sheetName
-version
-
-
-
Method Details
-
add
Description copied from class:PerFileSheet
Add the file to the spreadsheet- Specified by:
add
in classPerFileSheet
pkgId
- string containing the package ID's which contain this file
-
getFileInfo
public SpdxFile getFileInfo(int rowNum, SpdxDocumentContainer container) throws SpreadsheetExceptionDescription copied from class:PerFileSheet
Get the file information for a row in the PerFileSheet- Specified by:
getFileInfo
in classPerFileSheet
- Returns:
- Throws:
SpreadsheetException
-
findFileByName
public SpdxFile findFileByName(String fileName, SpdxDocumentContainer container) throws SpreadsheetExceptionFinds an SPDX file by name by searching through the rows for a matching file name- Parameters:
fileName
-- Returns:
- Throws:
SpreadsheetException
-
verify
- Specified by:
verify
in classAbstractSheet
-
create
-
getPackageIds
- Specified by:
getPackageIds
in classPerFileSheet
- Returns:
-