Class SpdxSpreadsheet

java.lang.Object
org.spdx.spreadsheetstore.SpdxSpreadsheet

public class SpdxSpreadsheet extends Object
Spreadsheet workbook for an SPDX Document
Author:
Gary O'Neall
  • Field Details

  • Constructor Details

  • Method Details

    • clear

      public void clear()
    • verifyVersion

      public static boolean verifyVersion(String ver)
    • verifyWorkbook

      public String verifyWorkbook()
    • getDocumentUri

      public String getDocumentUri()
      Returns:
      the documentUri
    • getOriginsSheet

      public DocumentInfoSheet getOriginsSheet()
      Returns:
      the originsSheet
    • setOriginsSheet

      public void setOriginsSheet(DocumentInfoSheet originsSheet)
      Parameters:
      originsSheet - the originsSheet to set
    • getPackageInfoSheet

      public PackageInfoSheet getPackageInfoSheet()
      Returns:
      the packageInfoSheet
    • getPerFileSheet

      public PerFileSheet getPerFileSheet()
      Returns:
      the perFileSheet
    • getRelationshipsSheet

      public RelationshipsSheet getRelationshipsSheet()
    • setRelationshipsSheet

      public void setRelationshipsSheet(RelationshipsSheet relationshipsSheet)
    • getAnnotationsSheet

      public AnnotationsSheet getAnnotationsSheet()
    • setAnnotationsSheet

      public void setAnnotationsSheet(AnnotationsSheet annotationsSheet)
    • setPackageInfoSheet

      public void setPackageInfoSheet(PackageInfoSheet packageInfoSheet)
    • setPerFileSheet

      public void setPerFileSheet(PerFileSheet perFileSheet)
    • getSnippetSheet

      public SnippetSheet getSnippetSheet()
      Returns:
      the snippetSheet
    • setSnippetSheet

      public void setSnippetSheet(SnippetSheet snippetSheet)
      Parameters:
      snippetSheet - the snippetSheet to set
    • getExternalRefsSheet

      public ExternalRefsSheet getExternalRefsSheet()
      Returns:
      the externalRefsSheet
    • setExternaRefsSheet

      public void setExternaRefsSheet(ExternalRefsSheet externalRefsSheet)
      Parameters:
      externalRefsSheet - the externalRefsSheet to set
    • getDocumentInfoSheet

      public DocumentInfoSheet getDocumentInfoSheet()
      Returns:
      the documentInfoSheet
    • setDocumentInfoSheet

      public void setDocumentInfoSheet(DocumentInfoSheet documentInfoSheet)
      Parameters:
      documentInfoSheet - the documentInfoSheet to set
    • getExtractedLicenseInfoSheet

      public ExtractedLicenseInfoSheet getExtractedLicenseInfoSheet()
      Returns:
      the extractedLicenseInfoSheet
    • setExtractedLicenseInfoSheet

      public void setExtractedLicenseInfoSheet(ExtractedLicenseInfoSheet extractedLicenseInfoSheet)
      Parameters:
      extractedLicenseInfoSheet - the extractedLicenseInfoSheet to set
    • getWorkbook

      public org.apache.poi.ss.usermodel.Workbook getWorkbook()
      Returns:
      the workbook
    • getModelStore

      public org.spdx.storage.IModelStore getModelStore()
      Returns:
      the modelStore
    • getVersion

      public String getVersion()
      Returns:
      the version
    • getCopyManager

      public org.spdx.library.ModelCopyManager getCopyManager()
      Returns:
      the copyManager
    • setExternalRefsSheet

      public void setExternalRefsSheet(ExternalRefsSheet externalRefsSheet)
      Parameters:
      externalRefsSheet - the externalRefsSheet to set
    • resizeRow

      public void resizeRow()
      Resize the height of all rows - will not exceed a maximum height
    • write

      public void write(OutputStream stream) throws IOException
      Write the spreadsheet to the output stream
      Parameters:
      stream -
      Throws:
      IOException