Package org.spdx.spreadsheetstore
Class ExtractedLicenseInfoSheetV1d1
java.lang.Object
org.spdx.spreadsheetstore.AbstractSheet
org.spdx.spreadsheetstore.ExtractedLicenseInfoSheet
org.spdx.spreadsheetstore.ExtractedLicenseInfoSheetV1d1
Sheet containing the text of any non-standard licenses found in an SPDX document
Implementat for version 1.1
- Author:
- Gary O'Neall
-
Field Summary
Fields inherited from class org.spdx.spreadsheetstore.ExtractedLicenseInfoSheet
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
ConstructorsConstructorDescriptionExtractedLicenseInfoSheetV1d1
(org.apache.poi.ss.usermodel.Workbook workbook, String packageInfoSheetName, String version, org.spdx.storage.IModelStore modelStore, String documentUri, org.spdx.library.ModelCopyManager copyManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(String identifier, String extractedTextIn, String licenseName, Collection<String> crossRefUrlCollection, String comment) Add a new row to the NonStandardLicenses sheetstatic void
getComment
(int rowNum) Retrieves the comment for a specific row.getCrossRefUrls
(int rowNum) Retrieves the cross-reference URLs for a specific row.getExtractedText
(int rowNum) Retrieve the extracted text for a specific row in the spreadsheetgetIdentifier
(int rowNum) Retrieve the license identifier for a specific row in the spreadsheetgetLicenseName
(int rowNum) Retrieves the license name for a specific row.verify()
Verifies the integrity of the sheet's dataMethods inherited from class org.spdx.spreadsheetstore.ExtractedLicenseInfoSheet
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
-
ExtractedLicenseInfoSheetV1d1
-
-
Method Details
-
create
-
getIdentifier
Description copied from class:ExtractedLicenseInfoSheet
Retrieve the license identifier for a specific row in the spreadsheet- Specified by:
getIdentifier
in classExtractedLicenseInfoSheet
- Parameters:
rowNum
- Row number in the sheet.- Returns:
- License identifier.
-
getExtractedText
Description copied from class:ExtractedLicenseInfoSheet
Retrieve the extracted text for a specific row in the spreadsheet- Specified by:
getExtractedText
in classExtractedLicenseInfoSheet
- Parameters:
rowNum
- Row number in the sheet.- Returns:
- Extracted license text.
-
add
public void add(String identifier, String extractedTextIn, String licenseName, Collection<String> crossRefUrlCollection, String comment) Description copied from class:ExtractedLicenseInfoSheet
Add a new row to the NonStandardLicenses sheet- Specified by:
add
in classExtractedLicenseInfoSheet
- Parameters:
identifier
- License IDextractedTextIn
- Extracted license textlicenseName
- optional license namecrossRefUrlCollection
- optional cross reference URL'scomment
- optional comment
-
getLicenseName
Description copied from class:ExtractedLicenseInfoSheet
Retrieves the license name for a specific row.- Specified by:
getLicenseName
in classExtractedLicenseInfoSheet
- Parameters:
rowNum
- Row number in the sheet.- Returns:
- License name.
-
getCrossRefUrls
Description copied from class:ExtractedLicenseInfoSheet
Retrieves the cross-reference URLs for a specific row.- Specified by:
getCrossRefUrls
in classExtractedLicenseInfoSheet
- Parameters:
rowNum
- Row number in the sheet.- Returns:
- A collection of cross-reference URLs.
-
getComment
Description copied from class:ExtractedLicenseInfoSheet
Retrieves the comment for a specific row.- Specified by:
getComment
in classExtractedLicenseInfoSheet
- Parameters:
rowNum
- Row number in the sheet.- Returns:
- Comment as a string.
-
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.
-