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()
String
getContributorsAAsString()
List<String>
getContributorsB()
String
getContributorsBAsString()
List<String>
getDependantFileNamesA()
List<String>
getDependantFileNamesB()
String
getFileDependenciesAAsString()
String
getFileDependenciesBAsString()
String
getFileName()
List<org.spdx.library.model.v2.enumerations.FileType>
getFileTypeA()
List<org.spdx.library.model.v2.enumerations.FileType>
getFileTypeB()
String
getNoticeA()
String
getNoticeB()
String
getSpdxIdA()
String
getSpdxIdB()
List<org.spdx.library.model.v2.Checksum>
getUniqueChecksumsA()
List<org.spdx.library.model.v2.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 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.InvalidSPDXAnalysisException
SpdxCompareException
-
-
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:
-
isChecksumsEquals
public boolean isChecksumsEquals()
- Returns:
-
getContributorsAAsString
public String getContributorsAAsString()
- Returns:
-
getContributorsBAsString
public String getContributorsBAsString()
- Returns:
-
getFileDependenciesAAsString
public String getFileDependenciesAAsString()
- Returns:
-
getFileDependenciesBAsString
public String getFileDependenciesBAsString()
- Returns:
-
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:
-
getSpdxIdB
public String getSpdxIdB()
- Returns:
-
-