Class SpdxFileDifference
java.lang.Object
org.spdx.utility.compare.SpdxItemDifference
org.spdx.utility.compare.SpdxFileDifference
Contains the results of a comparison between two SPDX files with the same name
- Author:
- Gary O'Neall
-
Constructor Summary
ConstructorsConstructorDescriptionSpdxFileDifference
(org.spdx.library.model.v2.SpdxFile fileA, org.spdx.library.model.v2.SpdxFile fileB, boolean concludedLicensesEqual, boolean seenLicensesEqual, List<org.spdx.library.model.v2.license.AnyLicenseInfo> uniqueSeenLicensesA, List<org.spdx.library.model.v2.license.AnyLicenseInfo> uniqueSeenLicensesB, boolean checksumsEquals, List<org.spdx.library.model.v2.Checksum> uniqueChecksumsA, List<org.spdx.library.model.v2.Checksum> uniqueChecksumsB, boolean relationshipsEquals, List<org.spdx.library.model.v2.Relationship> uniqueRelationshipA, List<org.spdx.library.model.v2.Relationship> uniqueRelationshipB, boolean annotationsEquals, List<org.spdx.library.model.v2.Annotation> uniqueAnnotationsA, List<org.spdx.library.model.v2.Annotation> uniqueAnnotationsB) -
Method Summary
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(org.spdx.library.model.v2.SpdxFile fileA, org.spdx.library.model.v2.SpdxFile fileB, boolean concludedLicensesEqual, boolean seenLicensesEqual, List<org.spdx.library.model.v2.license.AnyLicenseInfo> uniqueSeenLicensesA, List<org.spdx.library.model.v2.license.AnyLicenseInfo> uniqueSeenLicensesB, boolean checksumsEquals, List<org.spdx.library.model.v2.Checksum> uniqueChecksumsA, List<org.spdx.library.model.v2.Checksum> uniqueChecksumsB, boolean relationshipsEquals, List<org.spdx.library.model.v2.Relationship> uniqueRelationshipA, List<org.spdx.library.model.v2.Relationship> uniqueRelationshipB, boolean annotationsEquals, List<org.spdx.library.model.v2.Annotation> uniqueAnnotationsA, List<org.spdx.library.model.v2.Annotation> uniqueAnnotationsB) throws org.spdx.core.InvalidSPDXAnalysisException, SpdxCompareException - Throws:
org.spdx.core.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:
- true if the types are equal
-
isChecksumsEquals
public boolean isChecksumsEquals()- Returns:
- true if the checksums are equal
-
getContributorsAAsString
- Returns:
- string form af all A contributors
-
getContributorsBAsString
- Returns:
- string form of all B contributors
-
getFileDependenciesAAsString
- Returns:
- string form of all A file dependencies
-
getFileDependenciesBAsString
- Returns:
- string form of all B file dependencies
-
getContributorsA
-
getNoticeA
- Returns:
- the noticeA
-
getContributorsB
-
getNoticeB
- Returns:
- the noticeB
-
getDependantFileNamesA
-
getDependantFileNamesB
-
getUniqueChecksumsA
- Returns:
- the uniqueChecksumsA
-
getUniqueChecksumsB
- Returns:
- the uniqueChecksumsB
-
getSpdxIdA
- Returns:
- SPDX ID for A
-
getSpdxIdB
- Returns:
- SPDX ID for B
-