Package org.spdx.spreadsheetstore
Class DocumentInfoSheetV2d0
java.lang.Object
org.spdx.spreadsheetstore.AbstractSheet
org.spdx.spreadsheetstore.DocumentInfoSheet
org.spdx.spreadsheetstore.DocumentInfoSheetV2d0
DocumentInfoSheet for version 2.0+ of the SPDX Spec
- Author:
- Gary O'Neall
-
Field Summary
Fields inherited from class org.spdx.spreadsheetstore.DocumentInfoSheet
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
ConstructorsConstructorDescriptionDocumentInfoSheetV2d0(org.apache.poi.ss.usermodel.Workbook workbook, String sheetName, String version, org.spdx.storage.IModelStore modelStore, org.spdx.library.ModelCopyManager copyManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDocument(org.spdx.library.model.v2.SpdxDocument doc) Add all origin information from the documentstatic voidRetrieve the author comments for the SPDX documentRetrieve the creation date of the SPDX documentRetrieve the list of creators of the SPDX documentRetrieve the license for the SPDX documentRetrieve the document comment for the SPDX documentSet SPDX identifier for the documentRetrieve the document nameCollection<org.spdx.library.model.v2.ExternalDocumentRef> Retrieve the external document refsRetrieve the license list version for the SPDX documentRetrieve the namespace for the SPDX documentRetrieve the SPDX identifier for the SPDX documentRetrieve the SPDX specification version of the SPDX documentvoidsetAuthorComments(String comments) Set the author comments for the SPDX documentvoidsetCreated(Date created) Set the created date for the SPDX documentvoidsetCreatedBy(String createdBy) voidsetCreatedBy(Collection<String> createdByCollection) Set the list of creators of the SPDX documentvoidsetDataLicense(String dataLicense) Set the license for the SPDX documentvoidsetDocumentComment(String docComment) Set the document comment for the SPDX documentvoidsetDocumentDescribes(Collection<String> contentsCollection) Set the SPDX ID's for content described by this SPDX documentvoidsetDocumentName(String documentName) Set the document namevoidsetExternalDocumentRefs(Collection<org.spdx.library.model.v2.ExternalDocumentRef> externalDocumentRefColleciton) Set the external document refsvoidsetLicenseListVersion(String licenseVersion) Set the license list version for the SPDX documentvoidSet the SPDX identifier for the documentvoidsetSPDXVersion(String version) Set the SPDX specification version for the SPDX documentvoidsetSpreadsheetVersion(String version) verify()Verifies the integrity of the sheet's dataMethods inherited from class org.spdx.spreadsheetstore.DocumentInfoSheet
getDataCellDateValue, getDataCellStringValue, getDataRow, getDataRow, getOrCreateDataCell, openVersion, setDataCellDateValue, setDataCellStringValueMethods 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
-
DocumentInfoSheetV2d0
public DocumentInfoSheetV2d0(org.apache.poi.ss.usermodel.Workbook workbook, String sheetName, String version, org.spdx.storage.IModelStore modelStore, org.spdx.library.ModelCopyManager copyManager) throws SpreadsheetException - Throws:
SpreadsheetException
-
-
Method Details
-
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.
-
create
-
setAuthorComments
Description copied from class:DocumentInfoSheetSet the author comments for the SPDX document- Specified by:
setAuthorCommentsin classDocumentInfoSheet- Parameters:
comments- Author comments
-
setCreatedBy
-
setDataLicense
Description copied from class:DocumentInfoSheetSet the license for the SPDX document- Specified by:
setDataLicensein classDocumentInfoSheet- Parameters:
dataLicense- License ID
-
setSPDXVersion
Description copied from class:DocumentInfoSheetSet the SPDX specification version for the SPDX document- Specified by:
setSPDXVersionin classDocumentInfoSheet- Parameters:
version- SPDX specification version
-
setSpreadsheetVersion
-
getAuthorComments
Description copied from class:DocumentInfoSheetRetrieve the author comments for the SPDX document- Specified by:
getAuthorCommentsin classDocumentInfoSheet- Returns:
- Author comments
-
getCreated
Description copied from class:DocumentInfoSheetRetrieve the creation date of the SPDX document- Specified by:
getCreatedin classDocumentInfoSheet- Returns:
- Date the SPDX document was created
-
getDataLicense
Description copied from class:DocumentInfoSheetRetrieve the license for the SPDX document- Specified by:
getDataLicensein classDocumentInfoSheet- Returns:
- License ID
-
getSPDXVersion
Description copied from class:DocumentInfoSheetRetrieve the SPDX specification version of the SPDX document- Specified by:
getSPDXVersionin classDocumentInfoSheet- Returns:
- SPDX specification version
-
getSpreadsheetVersion
-
setCreatedBy
Description copied from class:DocumentInfoSheetSet the list of creators of the SPDX document- Specified by:
setCreatedByin classDocumentInfoSheet- Parameters:
createdByCollection- List of creators
-
getCreatedBy
Description copied from class:DocumentInfoSheetRetrieve the list of creators of the SPDX document- Specified by:
getCreatedByin classDocumentInfoSheet- Returns:
- List of creators
-
setCreated
Description copied from class:DocumentInfoSheetSet the created date for the SPDX document- Specified by:
setCreatedin classDocumentInfoSheet- Parameters:
created- Created date
-
getDocumentComment
Description copied from class:DocumentInfoSheetRetrieve the document comment for the SPDX document- Specified by:
getDocumentCommentin classDocumentInfoSheet- Returns:
- Document comment
-
setDocumentComment
Description copied from class:DocumentInfoSheetSet the document comment for the SPDX document- Specified by:
setDocumentCommentin classDocumentInfoSheet- Parameters:
docComment- Document comment
-
getLicenseListVersion
Description copied from class:DocumentInfoSheetRetrieve the license list version for the SPDX document- Specified by:
getLicenseListVersionin classDocumentInfoSheet- Returns:
- License list version
-
setLicenseListVersion
Description copied from class:DocumentInfoSheetSet the license list version for the SPDX document- Specified by:
setLicenseListVersionin classDocumentInfoSheet- Parameters:
licenseVersion- License list version
-
getNamespace
Description copied from class:DocumentInfoSheetRetrieve the namespace for the SPDX document- Specified by:
getNamespacein classDocumentInfoSheet- Returns:
- Namespace
-
addDocument
Description copied from class:DocumentInfoSheetAdd all origin information from the document- Specified by:
addDocumentin classDocumentInfoSheet- Parameters:
doc- SPDX document to add- Throws:
SpreadsheetException
-
getSpdxId
Description copied from class:DocumentInfoSheetRetrieve the SPDX identifier for the SPDX document- Specified by:
getSpdxIdin classDocumentInfoSheet- Returns:
- SPDX identifier for the document
-
setSpdxId
Description copied from class:DocumentInfoSheetSet the SPDX identifier for the document- Specified by:
setSpdxIdin classDocumentInfoSheet- Parameters:
id- SPDX identifier
-
getDocumentName
Description copied from class:DocumentInfoSheetRetrieve the document name- Specified by:
getDocumentNamein classDocumentInfoSheet- Returns:
- Document name
-
setDocumentName
Description copied from class:DocumentInfoSheetSet the document name- Specified by:
setDocumentNamein classDocumentInfoSheet- Parameters:
documentName- Document name
-
getDocumentContents
Description copied from class:DocumentInfoSheetSet SPDX identifier for the document- Specified by:
getDocumentContentsin classDocumentInfoSheet- Returns:
- SPDX ID's for content described by this SPDX document
-
setDocumentDescribes
Description copied from class:DocumentInfoSheetSet the SPDX ID's for content described by this SPDX document- Specified by:
setDocumentDescribesin classDocumentInfoSheet- Parameters:
contentsCollection- SPDX ID's for content described by this SPDX document
-
getExternalDocumentRefs
public Collection<org.spdx.library.model.v2.ExternalDocumentRef> getExternalDocumentRefs() throws SpreadsheetExceptionDescription copied from class:DocumentInfoSheetRetrieve the external document refs- Specified by:
getExternalDocumentRefsin classDocumentInfoSheet- Returns:
- External document refs
- Throws:
SpreadsheetException
-
setExternalDocumentRefs
public void setExternalDocumentRefs(Collection<org.spdx.library.model.v2.ExternalDocumentRef> externalDocumentRefColleciton) throws SpreadsheetException Description copied from class:DocumentInfoSheetSet the external document refs- Specified by:
setExternalDocumentRefsin classDocumentInfoSheet- Parameters:
externalDocumentRefColleciton-- Throws:
SpreadsheetException
-