Package org.spdx.spreadsheetstore
Class PerFileSheetV2d3
java.lang.Object
org.spdx.spreadsheetstore.AbstractSheet
org.spdx.spreadsheetstore.PerFileSheet
org.spdx.spreadsheetstore.PerFileSheetV2d3
Per file sheet voer version 2.2 of the SPDX spec
- Author:
- Gary O'Neall
-
Field Summary
Fields inherited from class org.spdx.spreadsheetstore.PerFileSheet
version
Fields inherited from class org.spdx.spreadsheetstore.AbstractSheet
checkboxStyle, CHECKSUM_PATTERN, copyManager, dateStyle, documentUri, firstCellNum, firstRowNum, FONT_SIZE, greenWrapped, lastRowNum, modelStore, redWrapped, sheet, workbook, yellowWrapped
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add the file to the spreadsheetstatic void
org.spdx.library.model.v2.SpdxFile
findFileByName
(String fileName) Finds an SPDX file by name by searching through the rows for a matching file nameprotected String
getFileId
(int rowNum) org.spdx.library.model.v2.SpdxFile
getFileInfo
(int rowNum) Get the file information for a row in the PerFileSheetgetPackageIds
(int row) verify()
Verifies the integrity of the sheet's dataMethods inherited from class org.spdx.spreadsheetstore.PerFileSheet
fileTypesToString, openVersion, parseFileTypeString
Methods inherited from class org.spdx.spreadsheetstore.AbstractSheet
addRow, checksumsToString, checksumToString, clear, createCenterStyle, createHeaderStyle, createLeftWrapStyle, csvToStrings, getFirstDataRow, getNumDataRows, getSheet, licensesToString, parseChecksum, resizeRows, stringsToCsv, strToChecksums
-
Method Details
-
create
-
add
public void add(org.spdx.library.model.v2.SpdxFile fileInfo, String pkgId) throws SpreadsheetException Description copied from class:PerFileSheet
Add the file to the spreadsheet- Specified by:
add
in classPerFileSheet
- Parameters:
fileInfo
-pkgId
- string containing the package ID's which contain this file- Throws:
SpreadsheetException
-
getFileInfo
public org.spdx.library.model.v2.SpdxFile getFileInfo(int rowNum) throws SpreadsheetException, org.spdx.core.DefaultStoreNotInitializedException Description copied from class:PerFileSheet
Get the file information for a row in the PerFileSheet- Specified by:
getFileInfo
in classPerFileSheet
- Parameters:
rowNum
-- Returns:
- Throws:
org.spdx.core.DefaultStoreNotInitializedException
SpreadsheetException
-
findFileByName
public org.spdx.library.model.v2.SpdxFile findFileByName(String fileName) throws SpreadsheetException, org.spdx.core.DefaultStoreNotInitializedException Finds an SPDX file by name by searching through the rows for a matching file name- Parameters:
fileName
-- Returns:
- Throws:
SpreadsheetException
org.spdx.core.DefaultStoreNotInitializedException
-
getPackageIds
- Specified by:
getPackageIds
in classPerFileSheet
- Parameters:
row
-- Returns:
-
verify
Description copied from class:AbstractSheet
Verifies the integrity of the sheet's data- Specified by:
verify
in classAbstractSheet
- Returns:
- A string describing any issues, or an empty string if valid.
-
getFileId
- Specified by:
getFileId
in classPerFileSheet
- Parameters:
rowNum
-- Returns:
- file ID for rownum
-