Package org.spdx.spreadsheetstore
Class PackageInfoSheetV2d1
java.lang.Object
org.spdx.spreadsheetstore.AbstractSheet
org.spdx.spreadsheetstore.PackageInfoSheet
org.spdx.spreadsheetstore.PackageInfoSheetV2d1
Version 2.1 of the package info sheet
- Author:
- Gary O'Neall
-
Field Summary
Fields inherited from class org.spdx.spreadsheetstore.PackageInfoSheet
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
-
Constructor Summary
ConstructorsConstructorDescriptionPackageInfoSheetV2d1
(org.apache.poi.ss.usermodel.Workbook workbook, String sheetName, String version, org.spdx.storage.IModelStore modelStore, String documentUri, org.spdx.library.ModelCopyManager copyManager) -
Method Summary
Methods inherited from class org.spdx.spreadsheetstore.PackageInfoSheet
openVersion
Methods inherited from class org.spdx.spreadsheetstore.AbstractSheet
addRow, checksumsToString, checksumToString, clear, createCenterStyle, createHeaderStyle, createLeftWrapStyle, csvToStrings, getFirstDataRow, getNumDataRows, getSheet, licensesToString, parseChecksum, resizeRows, stringsToCsv, strToChecksums
-
Constructor Details
-
PackageInfoSheetV2d1
public PackageInfoSheetV2d1(org.apache.poi.ss.usermodel.Workbook workbook, String sheetName, String version, org.spdx.storage.IModelStore modelStore, String documentUri, org.spdx.library.ModelCopyManager copyManager) - Parameters:
workbook
-sheetName
-version
-modelStore
-documentUri
-copyManager
-
-
-
Method Details
-
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.
-
create
-
add
public void add(org.spdx.library.model.v2.SpdxPackage pkgInfo) throws org.spdx.core.InvalidSPDXAnalysisException Description copied from class:PackageInfoSheet
Adds a new SPDX package to the sheet- Specified by:
add
in classPackageInfoSheet
- Parameters:
pkgInfo
- the SPDX package to add- Throws:
org.spdx.core.InvalidSPDXAnalysisException
- if there is an error with the SPDX analysis
-
getPackages
public List<org.spdx.library.model.v2.SpdxPackage> getPackages() throws SpreadsheetException, org.spdx.core.DefaultStoreNotInitializedExceptionDescription copied from class:PackageInfoSheet
Retrieves a list of SPDX packages from the sheet- Specified by:
getPackages
in classPackageInfoSheet
- Returns:
- a list of SPDX packages
- Throws:
SpreadsheetException
- if there is an error reading the spreadsheetorg.spdx.core.DefaultStoreNotInitializedException
- if the model store is not initialized
-