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(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getContributorsA()StringgetContributorsAAsString()List<String>getContributorsB()StringgetContributorsBAsString()List<String>getDependantFileNamesA()List<String>getDependantFileNamesB()StringgetFileDependenciesAAsString()StringgetFileDependenciesBAsString()StringgetFileName()List<org.spdx.library.model.v2.enumerations.FileType>getFileTypeA()List<org.spdx.library.model.v2.enumerations.FileType>getFileTypeB()StringgetNoticeA()StringgetNoticeB()StringgetSpdxIdA()StringgetSpdxIdB()List<org.spdx.library.model.v2.Checksum>getUniqueChecksumsA()List<org.spdx.library.model.v2.Checksum>getUniqueChecksumsB()booleanisChecksumsEquals()booleanisContributorsEqual()booleanisFileDependenciesEqual()booleanisNoticeTextsEqual()booleanisTypeEqual()-
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 Detail
-
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.InvalidSPDXAnalysisExceptionSpdxCompareException
-
-
Method Detail
-
getFileName
public String getFileName()
- Returns:
- the fileName
-
getFileTypeA
public List<org.spdx.library.model.v2.enumerations.FileType> getFileTypeA()
- Returns:
- the fileTypeA
-
getFileTypeB
public List<org.spdx.library.model.v2.enumerations.FileType> 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
public String getContributorsAAsString()
- Returns:
- string form af all A contributors
-
getContributorsBAsString
public String getContributorsBAsString()
- Returns:
- string form of all B contributors
-
getFileDependenciesAAsString
public String getFileDependenciesAAsString()
- Returns:
- string form of all A file dependencies
-
getFileDependenciesBAsString
public String getFileDependenciesBAsString()
- Returns:
- string form of all B file dependencies
-
getNoticeA
public String getNoticeA()
- Returns:
- the noticeA
-
getNoticeB
public String getNoticeB()
- Returns:
- the noticeB
-
getDependantFileNamesA
public List<String> getDependantFileNamesA()
- Returns:
- the dependantFileNamesA
-
getDependantFileNamesB
public List<String> getDependantFileNamesB()
- Returns:
- the dependantFileNamesB
-
getUniqueChecksumsA
public List<org.spdx.library.model.v2.Checksum> getUniqueChecksumsA()
- Returns:
- the uniqueChecksumsA
-
getUniqueChecksumsB
public List<org.spdx.library.model.v2.Checksum> getUniqueChecksumsB()
- Returns:
- the uniqueChecksumsB
-
getSpdxIdA
public String getSpdxIdA()
- Returns:
- SPDX ID for A
-
getSpdxIdB
public String getSpdxIdB()
- Returns:
- SPDX ID for B
-
-