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 voidadd(SpdxFile fileInfo, String pkgId)Add the file to the spreadsheetstatic voidcreate(org.apache.poi.ss.usermodel.Workbook wb, String sheetName)SpdxFilefindFileByName(String fileName, SpdxDocumentContainer container)Finds an SPDX file by name by searching through the rows for a matching file nameSpdxFilegetFileInfo(int rowNum, SpdxDocumentContainer container)Get the file information for a row in the PerFileSheetString[]getPackageIds(int row)Stringverify()Methods inherited from class org.spdx.spdxspreadsheet.PerFileSheet
csvToStrings, openVersion, stringsToCsvMethods 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:PerFileSheetAdd the file to the spreadsheet- Specified by:
addin classPerFileSheetpkgId- string containing the package ID's which contain this file
-
getFileInfo
public SpdxFile getFileInfo(int rowNum, SpdxDocumentContainer container) throws SpreadsheetExceptionDescription copied from class:PerFileSheetGet the file information for a row in the PerFileSheet- Specified by:
getFileInfoin 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:
verifyin classAbstractSheet
-
create
-
getPackageIds
- Specified by:
getPackageIdsin classPerFileSheet- Returns:
-