Package org.spdx.tools.compare
Class AbstractFileCompareSheet
java.lang.Object
org.spdx.tools.compare.AbstractSheet
org.spdx.tools.compare.AbstractFileCompareSheet
- Direct Known Subclasses:
FileAnnotationSheet,FileAttributionSheet,FileChecksumSheet,FileCommentSheet,FileConcludedSheet,FileContributorsSheet,FileCopyrightSheet,FileLicenseCommentsSheet,FileLicenseInfoSheet,FileNoticeSheet,FileRelationshipSheet,FileSpdxIdSheet,FileTypeSheet
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.tools.compare.AbstractSheet
checkboxStyle, dateStyle, firstCellNum, firstRowNum, FONT_SIZE, greenWrapped, lastRowNum, redWrapped, sheet, workbook, yellowWrapped -
Constructor Summary
ConstructorsConstructorDescriptionAbstractFileCompareSheet(org.apache.poi.ss.usermodel.Workbook workbook, String sheetName) -
Method Summary
Methods inherited from class org.spdx.tools.compare.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(org.spdx.utility.compare.SpdxComparer comparer, List<List<org.spdx.library.model.v2.SpdxFile>> files, List<String> docNames) throws org.spdx.utility.compare.SpdxCompareException, org.spdx.core.InvalidSPDXAnalysisException - Parameters:
files- Array of SPDX document files - arrays must be sorteddocNames- Document names. Much match the documents in the files.- Throws:
org.spdx.core.InvalidSPDXAnalysisExceptionorg.spdx.utility.compare.SpdxCompareException
-