Package org.spdx.utility.compare
Class SpdxItemDifference
java.lang.Object
org.spdx.utility.compare.SpdxItemDifference
- Direct Known Subclasses:
SpdxFileDifference
public class SpdxItemDifference extends Object
Contains the results of a comparison between two SPDX items with the same name
- Author:
- Gary O'Neall
-
Constructor Summary
Constructors Constructor Description SpdxItemDifference(SpdxItem itemA, SpdxItem itemB, boolean concludedLicensesEqual, boolean seenLicensesEqual, List<AnyLicenseInfo> uniqueSeenLicensesA, List<AnyLicenseInfo> uniqueSeenLicensesB, boolean relationshipsEquals, List<Relationship> uniqueRelationshipA, List<Relationship> uniqueRelationshipB, boolean annotationsEquals, List<Annotation> uniqueAnnotationsA, List<Annotation> uniqueAnnotationsB) -
Method Summary
Modifier and Type Method Description StringgetCommentA()StringgetCommentB()StringgetConcludedLicenseA()StringgetConcludedLicenseB()StringgetCopyrightA()StringgetCopyrightB()StringgetLicenseCommentsA()StringgetLicenseCommentsB()StringgetName()List<Annotation>getUniqueAnnotationsA()List<Annotation>getUniqueAnnotationsB()List<Relationship>getUniqueRelationshipA()List<Relationship>getUniqueRelationshipB()List<AnyLicenseInfo>getUniqueSeenLicensesA()List<AnyLicenseInfo>getUniqueSeenLicensesB()booleanisAnnotationsEquals()booleanisCommentsEquals()booleanisConcludedLicenseEquals()booleanisCopyrightsEqual()booleanisLicenseCommentsEqual()booleanisRelationshipsEquals()booleanisSeenLicensesEquals()
-
Constructor Details
-
SpdxItemDifference
public SpdxItemDifference(SpdxItem itemA, SpdxItem itemB, boolean concludedLicensesEqual, boolean seenLicensesEqual, List<AnyLicenseInfo> uniqueSeenLicensesA, List<AnyLicenseInfo> uniqueSeenLicensesB, boolean relationshipsEquals, List<Relationship> uniqueRelationshipA, List<Relationship> uniqueRelationshipB, boolean annotationsEquals, List<Annotation> uniqueAnnotationsA, List<Annotation> uniqueAnnotationsB) throws SpdxCompareException, InvalidSPDXAnalysisException
-
-
Method Details
-
getName
- Returns:
- the name
-
getCommentA
- Returns:
- the commentA
-
getCommentB
- Returns:
- the commentB
-
getConcludedLicenseA
- Returns:
- the concludedLicenseA
-
getConcludedLicenseB
- Returns:
- the concludedLicenseB
-
isConcludedLicenseEquals
public boolean isConcludedLicenseEquals()- Returns:
- the concludedLicenseEquals
-
getCopyrightA
- Returns:
- the copyrightA
-
getCopyrightB
- Returns:
- the copyrightB
-
getLicenseCommentsA
- Returns:
- the licenseCommentsA
-
getLicenseCommentsB
- Returns:
- the licenseCommentsB
-
isSeenLicensesEquals
public boolean isSeenLicensesEquals()- Returns:
- the seenLicensesEqual
-
getUniqueSeenLicensesA
- Returns:
- the uniqueSeenLicensesA
-
getUniqueSeenLicensesB
- Returns:
- the uniqueSeenLicensesB
-
isCommentsEquals
public boolean isCommentsEquals() -
isCopyrightsEqual
public boolean isCopyrightsEqual() -
isLicenseCommentsEqual
public boolean isLicenseCommentsEqual() -
isRelationshipsEquals
public boolean isRelationshipsEquals()- Returns:
- the relationshipsEquals
-
getUniqueRelationshipA
- Returns:
- the uniqueRelationshipA
-
getUniqueRelationshipB
- Returns:
- the uniqueRelationshipB
-
isAnnotationsEquals
public boolean isAnnotationsEquals()- Returns:
- the annotationsEquals
-
getUniqueAnnotationsA
- Returns:
- the uniqueAnnotationsA
-
getUniqueAnnotationsB
- Returns:
- the uniqueAnnotationsB
-