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
versionFields 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 TypeMethodDescriptionvoidAdd the file to the spreadsheetstatic voidorg.spdx.library.model.v2.SpdxFilefindFileByName(String fileName) Finds an SPDX file by name by searching through the rows for a matching file nameprotected StringgetFileId(int rowNum) org.spdx.library.model.v2.SpdxFilegetFileInfo(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, parseFileTypeStringMethods 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:PerFileSheetAdd the file to the spreadsheet- Specified by:
addin 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:PerFileSheetGet the file information for a row in the PerFileSheet- Specified by:
getFileInfoin classPerFileSheet- Parameters:
rowNum-- Returns:
- Throws:
org.spdx.core.DefaultStoreNotInitializedExceptionSpreadsheetException
-
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:
SpreadsheetExceptionorg.spdx.core.DefaultStoreNotInitializedException
-
getPackageIds
- Specified by:
getPackageIdsin classPerFileSheet- Parameters:
row-- Returns:
-
verify
Description copied from class:AbstractSheetVerifies the integrity of the sheet's data- Specified by:
verifyin classAbstractSheet- Returns:
- A string describing any issues, or an empty string if valid.
-
getFileId
- Specified by:
getFileIdin classPerFileSheet- Parameters:
rowNum-- Returns:
- file ID for rownum
-