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
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 -
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 TypeMethodDescriptionvoidadd(String identifier, String extractedTextIn, String licenseName, Collection<String> crossRefUrlCollection, String comment) Add a new row to the NonStandardLicenses sheetstatic voidgetComment(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
openVersionMethods 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:ExtractedLicenseInfoSheetRetrieve the license identifier for a specific row in the spreadsheet- Specified by:
getIdentifierin classExtractedLicenseInfoSheet- Parameters:
rowNum- Row number in the sheet.- Returns:
- License identifier.
-
getExtractedText
Description copied from class:ExtractedLicenseInfoSheetRetrieve the extracted text for a specific row in the spreadsheet- Specified by:
getExtractedTextin 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:ExtractedLicenseInfoSheetAdd a new row to the NonStandardLicenses sheet- Specified by:
addin classExtractedLicenseInfoSheet- Parameters:
identifier- License IDextractedTextIn- Extracted license textlicenseName- optional license namecrossRefUrlCollection- optional cross reference URL'scomment- optional comment
-
getLicenseName
Description copied from class:ExtractedLicenseInfoSheetRetrieves the license name for a specific row.- Specified by:
getLicenseNamein classExtractedLicenseInfoSheet- Parameters:
rowNum- Row number in the sheet.- Returns:
- License name.
-
getCrossRefUrls
Description copied from class:ExtractedLicenseInfoSheetRetrieves the cross-reference URLs for a specific row.- Specified by:
getCrossRefUrlsin classExtractedLicenseInfoSheet- Parameters:
rowNum- Row number in the sheet.- Returns:
- A collection of cross-reference URLs.
-
getComment
Description copied from class:ExtractedLicenseInfoSheetRetrieves the comment for a specific row.- Specified by:
getCommentin classExtractedLicenseInfoSheet- Parameters:
rowNum- Row number in the sheet.- Returns:
- Comment as a string.
-
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.
-