public abstract class DocumentInfoSheet extends AbstractSheet
| Modifier and Type | Field and Description |
|---|---|
protected String |
version |
checkboxStyle, dateStyle, firstCellNum, firstRowNum, FONT_SIZE, greenWrapped, lastRowNum, redWrapped, sheet, workbook, yellowWrapped| Constructor and Description |
|---|
DocumentInfoSheet(org.apache.poi.ss.usermodel.Workbook workbook,
String sheetName,
String version) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addDocument(SpdxDocument doc)
Add all origin information from the document
|
static void |
create(org.apache.poi.ss.usermodel.Workbook wb,
String sheetName) |
abstract String |
getAuthorComments() |
abstract Date |
getCreated() |
abstract String[] |
getCreatedBy() |
protected Date |
getDataCellDateValue(int colNum) |
protected String |
getDataCellStringValue(int colNum) |
abstract String |
getDataLicense() |
protected org.apache.poi.ss.usermodel.Row |
getDataRow() |
protected org.apache.poi.ss.usermodel.Row |
getDataRow(int rowIndex) |
abstract String |
getDocumentComment() |
abstract String[] |
getDocumentContents() |
abstract String |
getDocumentName() |
abstract ExternalDocumentRef[] |
getExternalDocumentRefs() |
abstract String |
getLicenseListVersion() |
abstract String |
getNamespace() |
protected org.apache.poi.ss.usermodel.Cell |
getOrCreateDataCell(int colNum) |
abstract String |
getSpdxId() |
abstract String |
getSPDXVersion() |
static DocumentInfoSheet |
openVersion(org.apache.poi.ss.usermodel.Workbook workbook,
String originSheetName,
String version)
Open an existing worksheet
|
abstract void |
setAuthorComments(String comments) |
abstract void |
setCreated(Date parse) |
abstract void |
setCreatedBy(String[] createdBys) |
protected void |
setDataCellDateValue(int colNum,
Date value) |
protected void |
setDataCellStringValue(int colNum,
String value) |
abstract void |
setDataLicense(String id) |
abstract void |
setDocumentComment(String docComment) |
abstract void |
setDocumentDescribes(String[] contents)
Set the SPDX ID's for content described by this SPDX document
|
abstract void |
setDocumentName(String documentName)
Set the document name
|
abstract void |
setExternalDocumentRefs(ExternalDocumentRef[] externalDocumentRefs)
Set the external document refs
|
abstract void |
setLicenseListVersion(String licenseVersion) |
abstract void |
setSpdxId(String id)
Set the SPDX identified for the document
|
abstract void |
setSPDXVersion(String spdxVersion) |
addRow, clear, createCenterStyle, createHeaderStyle, createLeftWrapStyle, getFirstDataRow, getNumDataRows, getSheet, resizeRows, verifyprotected String version
public static void create(org.apache.poi.ss.usermodel.Workbook wb,
String sheetName)
public static DocumentInfoSheet openVersion(org.apache.poi.ss.usermodel.Workbook workbook, String originSheetName, String version)
workbook - originSheetName - version - Spreadsheet versionprotected org.apache.poi.ss.usermodel.Row getDataRow()
protected org.apache.poi.ss.usermodel.Row getDataRow(int rowIndex)
protected org.apache.poi.ss.usermodel.Cell getOrCreateDataCell(int colNum)
protected void setDataCellStringValue(int colNum,
String value)
protected void setDataCellDateValue(int colNum,
Date value)
protected Date getDataCellDateValue(int colNum)
protected String getDataCellStringValue(int colNum)
public abstract void setSPDXVersion(String spdxVersion)
spdxVersion - public abstract void setCreatedBy(String[] createdBys)
createdBys - public abstract void setDataLicense(String id)
id - public abstract void setAuthorComments(String comments)
comments - public abstract void setCreated(Date parse)
parse - public abstract Date getCreated()
public abstract String[] getCreatedBy()
public abstract String getAuthorComments()
public abstract String getSPDXVersion()
public abstract String getDataLicense()
public abstract String getDocumentComment()
public abstract void setDocumentComment(String docComment)
docComment - public abstract String getLicenseListVersion()
public abstract void setLicenseListVersion(String licenseVersion)
licenseVersion - public abstract String getNamespace()
public abstract void addDocument(SpdxDocument doc) throws SpreadsheetException
doc - SpreadsheetExceptionpublic abstract String getSpdxId()
public abstract void setSpdxId(String id)
id - public abstract String getDocumentName()
public abstract void setDocumentName(String documentName)
documentName - public abstract String[] getDocumentContents()
public abstract void setDocumentDescribes(String[] contents)
contents - public abstract ExternalDocumentRef[] getExternalDocumentRefs() throws SpreadsheetException
SpreadsheetExceptionpublic abstract void setExternalDocumentRefs(ExternalDocumentRef[] externalDocumentRefs) throws SpreadsheetException
externalDocumentRefs - SpreadsheetExceptionCopyright © 2018 Linux Foundation. All Rights Reserved.