| Package | Description |
|---|---|
| org.spdx.compare | |
| org.spdx.tools |
| Modifier and Type | Method and Description |
|---|---|
void |
SpdxComparer.compare(SPDXDocument[] compareDocs)
Compares multiple SPDX documents
|
void |
SpdxComparer.compare(SPDXDocument doc1,
SPDXDocument doc2)
Compares 2 SPDX documents
|
void |
SpdxFileComparer.compare(SPDXFile fileA,
SPDXFile fileB,
HashMap<String,String> licenseXlationMap)
Compare two SPDX files and store the results
|
boolean |
SpdxComparer.compareLicense(int doc1,
SPDXLicenseInfo license1,
int doc2,
SPDXLicenseInfo license2)
Compares two licenses from two different SPDX documents taking into account
the extracted license infos who's ID's may be different between the two documents
Note: The ExtracedLicenseIDMap must be initialized before this method is invoked
|
String |
SpdxComparer.SPDXReviewDifference.getComment(int i)
Get the reviewer comment for one of the two reviews compared
|
String |
SpdxComparer.SPDXReviewDifference.getDate(int i)
Get the reviewer date for one of the two reviews compared
|
SpdxLicenseDifference[] |
SpdxComparer.getExtractedLicenseDifferences(int docIndexA,
int docIndexB)
Retrieves any licenses which where the text matches in both documents but
other fields are different
|
SpdxFileDifference |
SpdxFileComparer.getFileDifference()
Return a file difference - the two file names must equal
|
SpdxFileDifference[] |
SpdxComparer.getFileDifferences(int docindex1,
int docindex2)
Returns any file differences found between the first and second SPDX documents
as specified by the document index
|
SpdxComparer.SPDXReviewDifference[] |
SpdxComparer.getReviewerDifferences(int docindex1,
int docindex2)
Get all reviewer differences between two documents.
|
SPDXDocument |
SpdxComparer.getSpdxDoc(int docIndex) |
String[] |
SpdxComparer.getUniqueCreators(int doc1index,
int doc2index)
Returns any creators which are in the SPDX document 1 which are not in document 2
|
SPDXNonStandardLicense[] |
SpdxComparer.getUniqueExtractedLicenses(int docIndexA,
int docIndexB)
Retrieves any unique extracted licenses fromt the first SPDX document index
relative to the second - unique is determined by the license text matching
|
SPDXFile[] |
SpdxComparer.getUniqueFiles(int docindex1,
int docindex2)
Return any files which are in spdx document index 1 but not in spdx document index 2
|
SPDXReview[] |
SpdxComparer.getUniqueReviewers(int docindex1,
int docindex2)
Get all unique reviewers in SPDX document at index 1 relative to reviewers
in SPDX Document at index 2
|
void |
AbstractFileCompareSheet.importCompareResults(SpdxComparer comparer,
SPDXFile[][] files,
String[] docNames) |
void |
ReviewerSheet.importCompareResults(SpdxComparer comparer,
String[] docNames) |
void |
PackageSheet.importCompareResults(SpdxComparer comparer,
String[] docNames) |
void |
MultiDocumentSpreadsheet.importCompareResults(SpdxComparer comparer,
String[] docNames) |
void |
ExtractedLicenseSheet.importCompareResults(SpdxComparer comparer,
String[] docNames) |
void |
DocumentSheet.importCompareResults(SpdxComparer comparer,
String[] docNames)
Import comapare results from a comparison
|
void |
CreatorSheet.importCompareResults(SpdxComparer comparer,
String[] docNames) |
boolean |
SpdxComparer.isCopyrightTextsEqual() |
boolean |
SpdxComparer.isCreatorInformationEqual() |
boolean |
SpdxComparer.isDataLicenseEqual() |
boolean |
SpdxFileComparer.isDifferenceFound() |
boolean |
SpdxComparer.isDocumentCommentsEqual() |
boolean |
SpdxComparer.isExtractedLicensingInfosEqual() |
boolean |
SpdxComparer.isfilesEquals() |
boolean |
SpdxComparer.isLicenseCommentsEqual() |
static boolean |
LicenseCompareHelper.isLicenseEqual(SPDXLicenseInfo license1,
SPDXLicenseInfo license2,
HashMap<String,String> xlationMap)
Compares two licenses from potentially two different documents which may have
different license ID's for the same license
|
boolean |
SpdxComparer.isLicenseListVersionEqual() |
boolean |
SpdxComparer.isPackageChecksumsEqual() |
boolean |
SpdxComparer.isPackageConcludedLicensesEqual() |
boolean |
SpdxComparer.isPackageDeclaredLicensesEqual() |
boolean |
SpdxComparer.isPackageDescriptionsEqual() |
boolean |
SpdxComparer.isPackageDownloadLocationsEqual() |
boolean |
SpdxComparer.isPackageEqual() |
boolean |
SpdxComparer.isPackageFileNamesEqual() |
boolean |
SpdxComparer.ispackageHomePagesEqual() |
boolean |
SpdxComparer.isPackageLicenseInfoFromFilesEqual() |
boolean |
SpdxComparer.isPackageNamesEqual() |
boolean |
SpdxComparer.isPackageOriginatorsEqual() |
boolean |
SpdxComparer.isPackageSummariesEqual() |
boolean |
SpdxComparer.isPackageSuppliersEqual() |
boolean |
SpdxComparer.isPackageVerificationCodesEqual() |
boolean |
SpdxComparer.isPackageVersionsEqual() |
boolean |
SpdxComparer.isReviewersEqual() |
boolean |
SpdxComparer.isSourceInformationEqual() |
boolean |
SpdxComparer.isSpdxVersionEqual() |
static boolean |
LicenseCompareHelper.isTextStandardLicense(SPDXStandardLicense license,
String compareText) |
| Modifier and Type | Method and Description |
|---|---|
protected static SPDXDocument |
CompareSpdxDocs.openRdfOrTagDoc(String spdxDocFileName) |
Copyright © 2014 Linux Foundation. All Rights Reserved.