Package org.spdx.spdxspreadsheet
Class SPDXSpreadsheet
java.lang.Object
org.spdx.spdxspreadsheet.AbstractSpreadsheet
org.spdx.spdxspreadsheet.SPDXSpreadsheet
public class SPDXSpreadsheet extends AbstractSpreadsheet
A spreadsheet containing information on an SPDX Document.
The spreadsheet contains 4 sheets:
- Origins - Information about the origin of the SPDX Document (Version, createdby, ...)
- Package Info - Information about the package itself
- Non-standard licenses - text from any non-standard licenses found
- Per File Info - Information about each file in the document
- Reviewers - Information on any organizations who have reviewed the documents
See notes below on version management
- Author:
- Gary O'Neall
-
Field Summary
Fields Modifier and Type Field Description static StringCURRENT_VERSIONstatic com.google.common.collect.ImmutableList<String>SUPPORTED_VERSIONSstatic StringUNKNOWN_VERSIONstatic StringVERSION_0_9_1static StringVERSION_0_9_2static StringVERSION_0_9_3static StringVERSION_0_9_4static StringVERSION_1_1_0static StringVERSION_1_2_0static StringVERSION_2_0_0static StringVERSION_2_1_0 -
Constructor Summary
Constructors Constructor Description SPDXSpreadsheet(File spreadsheetFile, boolean create, boolean readonly)Creates a new spreadsheet based on an existing file. -
Method Summary
-
Field Details
-
CURRENT_VERSION
- See Also:
- Constant Field Values
-
VERSION_2_1_0
- See Also:
- Constant Field Values
-
VERSION_2_0_0
- See Also:
- Constant Field Values
-
VERSION_1_2_0
- See Also:
- Constant Field Values
-
VERSION_1_1_0
- See Also:
- Constant Field Values
-
VERSION_0_9_4
- See Also:
- Constant Field Values
-
VERSION_0_9_3
- See Also:
- Constant Field Values
-
VERSION_0_9_2
- See Also:
- Constant Field Values
-
VERSION_0_9_1
- See Also:
- Constant Field Values
-
SUPPORTED_VERSIONS
-
UNKNOWN_VERSION
- See Also:
- Constant Field Values
-
-
Constructor Details
-
SPDXSpreadsheet
public SPDXSpreadsheet(File spreadsheetFile, boolean create, boolean readonly) throws SpreadsheetExceptionCreates a new spreadsheet based on an existing file. Handles all version compatibilities- Parameters:
spreadsheetFile-create-readonly-- Throws:
SpreadsheetException
-
-
Method Details
-
verifyVersion
- Parameters:
versionToCheck-- Returns:
-
create
- Specified by:
createin classAbstractSpreadsheet- Throws:
IOExceptionSpreadsheetException
-
clear
public void clear()- Specified by:
clearin classAbstractSpreadsheet
-
verifyWorkbook
- Specified by:
verifyWorkbookin classAbstractSpreadsheet
-
getOriginsSheet
- Returns:
- the originsSheet
-
setOriginsSheet
- Parameters:
originsSheet- the originsSheet to set
-
getPackageInfoSheet
- Returns:
- the packageInfoSheet
-
setPackageInfoSheet
- Parameters:
packageInfoSheet- the packageInfoSheet to set
-
getNonStandardLicensesSheet
- Returns:
- the nonStandardLicensesSheet
-
setNonStandardLicensesSheet
- Parameters:
nonStandardLicensesSheet- the nonStandardLicensesSheet to set
-
getPerFileSheet
- Returns:
- the perFileSheet
-
setPerFileSheet
- Parameters:
perFileSheet- the perFileSheet to set
-
getReviewersSheet
- Returns:
- the reviewersSheet
-
setReviewersSheet
- Parameters:
reviewersSheet- the reviewersSheet to set
-
getRelationshipsSheet
-
setRelationshipsSheet
-
getAnnotationsSheet
-
setAnnotationsSheet
-
setPackageInfoSheet
-
setNonStandardLicensesSheet
-
setPerFileSheet
-
getSnippetSheet
- Returns:
- the snippetSheet
-
setSnippetSheet
- Parameters:
snippetSheet- the snippetSheet to set
-
getExternalRefsSheet
- Returns:
- the externalRefsSheet
-
setExternaRefsSheet
- Parameters:
snippetSheet- the snippetSheet to set
-
resizeRow
public void resizeRow()Resize the height of all rows - will not exceed a maximum height
-