Package org.spdx.compare
Class AbstractFileCompareSheet
java.lang.Object
org.spdx.spdxspreadsheet.AbstractSheet
org.spdx.compare.AbstractFileCompareSheet
- Direct Known Subclasses:
FileAnnotationSheet,FileArtifactOfSheet,FileAttributionSheet,FileChecksumSheet,FileCommentSheet,FileConcludedSheet,FileContributorsSheet,FileCopyrightSheet,FileDependenciesSheet,FileLicenseCommentsSheet,FileLicenseInfoSheet,FileNoticeSheet,FileRelationshipSheet,FileSpdxIdSheet,FileTypeSheet
public abstract class AbstractFileCompareSheet extends AbstractSheet
Abstract worksheet for any comparison involving files.
The first column is the file path, second column indicates if all documents are equal,
columns 3 through N are for the values of the individual documents
- Author:
- Gary O'Neall
-
Field Summary
Fields inherited from class org.spdx.spdxspreadsheet.AbstractSheet
checkboxStyle, dateStyle, firstCellNum, firstRowNum, FONT_SIZE, greenWrapped, lastRowNum, redWrapped, sheet, workbook, yellowWrapped -
Constructor Summary
Constructors Constructor Description AbstractFileCompareSheet(org.apache.poi.ss.usermodel.Workbook workbook, String sheetName) -
Method Summary
Modifier and Type Method Description static voidcreate(org.apache.poi.ss.usermodel.Workbook wb, String sheetName, int columnWidth)voidimportCompareResults(SpdxComparer comparer, SpdxFile[][] files, String[] docNames)Stringverify()Methods inherited from class org.spdx.spdxspreadsheet.AbstractSheet
addRow, clear, createCenterStyle, createHeaderStyle, createLeftWrapStyle, getFirstDataRow, getNumDataRows, getSheet, resizeRows
-
Constructor Details
-
AbstractFileCompareSheet
- Parameters:
workbook-sheetName-
-
-
Method Details
-
verify
- Specified by:
verifyin classAbstractSheet
-
create
public static void create(org.apache.poi.ss.usermodel.Workbook wb, String sheetName, int columnWidth)- Parameters:
wb-sheetName-
-
importCompareResults
public void importCompareResults(SpdxComparer comparer, SpdxFile[][] files, String[] docNames) throws SpdxCompareException- Parameters:
files- Array of SPDX document files - arrays must be sorteddocNames- Document names. Much match the documents in the files.- Throws:
SpdxCompareException
-