Package org.spdx.utility.compare
Class SpdxFileDifference
java.lang.Object
org.spdx.utility.compare.SpdxItemDifference
org.spdx.utility.compare.SpdxFileDifference
public class SpdxFileDifference extends SpdxItemDifference
Contains the results of a comparison between two SPDX files with the same name
- Author:
- Gary O'Neall
-
Constructor Summary
Constructors Constructor Description SpdxFileDifference(SpdxFile fileA, SpdxFile fileB, boolean concludedLicensesEqual, boolean seenLicensesEqual, List<AnyLicenseInfo> uniqueSeenLicensesA, List<AnyLicenseInfo> uniqueSeenLicensesB, boolean checksumsEquals, List<Checksum> uniqueChecksumsA, List<Checksum> uniqueChecksumsB, boolean relationshipsEquals, List<Relationship> uniqueRelationshipA, List<Relationship> uniqueRelationshipB, boolean annotationsEquals, List<Annotation> uniqueAnnotationsA, List<Annotation> uniqueAnnotationsB)
-
Method Summary
Modifier and Type Method Description List<String>
getContributorsA()
String
getContributorsAAsString()
List<String>
getContributorsB()
String
getContributorsBAsString()
List<String>
getDependantFileNamesA()
List<String>
getDependantFileNamesB()
String
getFileDependenciesAAsString()
String
getFileDependenciesBAsString()
String
getFileName()
List<FileType>
getFileTypeA()
List<FileType>
getFileTypeB()
String
getNoticeA()
String
getNoticeB()
String
getSpdxIdA()
String
getSpdxIdB()
List<Checksum>
getUniqueChecksumsA()
List<Checksum>
getUniqueChecksumsB()
boolean
isChecksumsEquals()
boolean
isContributorsEqual()
boolean
isFileDependenciesEqual()
boolean
isNoticeTextsEqual()
boolean
isTypeEqual()
Methods inherited from class org.spdx.utility.compare.SpdxItemDifference
getCommentA, getCommentB, getConcludedLicenseA, getConcludedLicenseB, getCopyrightA, getCopyrightB, getLicenseCommentsA, getLicenseCommentsB, getName, getUniqueAnnotationsA, getUniqueAnnotationsB, getUniqueRelationshipA, getUniqueRelationshipB, getUniqueSeenLicensesA, getUniqueSeenLicensesB, isAnnotationsEquals, isCommentsEquals, isConcludedLicenseEquals, isCopyrightsEqual, isLicenseCommentsEqual, isRelationshipsEquals, isSeenLicensesEquals
-
Constructor Details
-
SpdxFileDifference
public SpdxFileDifference(SpdxFile fileA, SpdxFile fileB, boolean concludedLicensesEqual, boolean seenLicensesEqual, List<AnyLicenseInfo> uniqueSeenLicensesA, List<AnyLicenseInfo> uniqueSeenLicensesB, boolean checksumsEquals, List<Checksum> uniqueChecksumsA, List<Checksum> uniqueChecksumsB, boolean relationshipsEquals, List<Relationship> uniqueRelationshipA, List<Relationship> uniqueRelationshipB, boolean annotationsEquals, List<Annotation> uniqueAnnotationsA, List<Annotation> uniqueAnnotationsB) throws InvalidSPDXAnalysisException, SpdxCompareException
-
-
Method Details
-
getFileName
- Returns:
- the fileName
-
getFileTypeA
- Returns:
- the fileTypeA
-
getFileTypeB
- Returns:
- the fileTypeB
-
isContributorsEqual
public boolean isContributorsEqual() -
isNoticeTextsEqual
public boolean isNoticeTextsEqual() -
isFileDependenciesEqual
public boolean isFileDependenciesEqual() -
isTypeEqual
public boolean isTypeEqual()- Returns:
-
isChecksumsEquals
public boolean isChecksumsEquals()- Returns:
-
getContributorsAAsString
- Returns:
-
getContributorsBAsString
- Returns:
-
getFileDependenciesAAsString
- Returns:
-
getFileDependenciesBAsString
- Returns:
-
getContributorsA
- Returns:
- the contributorsA
-
getNoticeA
- Returns:
- the noticeA
-
getContributorsB
- Returns:
- the contributorsB
-
getNoticeB
- Returns:
- the noticeB
-
getDependantFileNamesA
- Returns:
- the dependantFileNamesA
-
getDependantFileNamesB
- Returns:
- the dependantFileNamesB
-
getUniqueChecksumsA
- Returns:
- the uniqueChecksumsA
-
getUniqueChecksumsB
- Returns:
- the uniqueChecksumsB
-
getSpdxIdA
- Returns:
-
getSpdxIdB
- Returns:
-