Package org.eclipse.emf.compare
Interface Comparison
- All Known Implementing Classes:
ComparisonImpl
,ComparisonSpec
A representation of the model object 'Comparison'. This will act as the "root" of a comparison. It will reference
one match for every root of the input models, along with the differences detected for each of them.
The following features are supported:
- See Also:
- Generated:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the 'Conflicts' containment reference list.Returns the value of the 'Diagnostic' attribute.Returns all differences contained by this Comparison and its children.getDifferences
(EObject element) Returns all differences that reference the given EObject (for instance, all ReferenceChanges that reference the given EObject through the "value" EReference).Returns the value of the 'Equivalences' containment reference list.Finds and return the Match for the given EObject.Returns the value of the 'Matched Resources' containment reference list.Returns the value of the 'Matches' containment reference list.boolean
Returns the value of the 'Three Way' attribute.void
setDiagnostic
(Diagnostic value) Sets the value of the 'Diagnostic
' attribute.void
setThreeWay
(boolean value) Sets the value of the 'Three Way
' attribute.Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Field Details
-
copyright
- See Also:
- Generated:
-
-
Method Details
-
getMatchedResources
EList<MatchResource> getMatchedResources()Returns the value of the 'Matched Resources' containment reference list. The list contents are of typeMatchResource
. This contains the mappings for each compared Resource.- Returns:
- the value of the 'Matched Resources' containment reference list.
- See Also:
- Generated:
-
getMatches
Returns the value of the 'Matches' containment reference list. The list contents are of typeMatch
. This contains the match tree "mimicking" the input models' hierarchy.- Returns:
- the value of the 'Matches' containment reference list.
- See Also:
- Generated:
-
getConflicts
Returns the value of the 'Conflicts' containment reference list. The list contents are of typeConflict
. If we detected any conflict during the comparison process, this will contain them.- Returns:
- the value of the 'Conflicts' containment reference list.
- See Also:
- Generated:
-
getEquivalences
EList<Equivalence> getEquivalences()Returns the value of the 'Equivalences' containment reference list. The list contents are of typeEquivalence
. If we detected any equivalence between diffs during the comparison process, this will contain them.- Returns:
- the value of the 'Equivalences' containment reference list.
- See Also:
- Generated:
-
getDifferences
Returns all differences contained by this Comparison and its children.- Generated:
-
getDifferences
Returns all differences that reference the given EObject (for instance, all ReferenceChanges that reference the given EObject through the "value" EReference).To get differences detected on the given EObject or one of its counterpart in left, right or origin, you should call the following code:
Match match = getMatch(eObject); if (match != null) { differences = match.getDifferences(); }
- Parameters:
element
- The EObject for which we seek all related differences.- Generated:
-
getMatch
Finds and return the Match for the given EObject.- Parameters:
element
- The EObject for which we seek the match.- Generated:
-
getEqualityHelper
IEqualityHelper getEqualityHelper()- Generated:
-
isThreeWay
boolean isThreeWay()Returns the value of the 'Three Way' attribute.- Returns:
- the value of the 'Three Way' attribute.
- See Also:
- Generated:
-
setThreeWay
void setThreeWay(boolean value) Sets the value of the 'Three Way
' attribute.- Parameters:
value
- the new value of the 'Three Way' attribute.- See Also:
- Generated:
-
getDiagnostic
Diagnostic getDiagnostic()Returns the value of the 'Diagnostic' attribute.If the meaning of the 'Diagnostic' attribute isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Diagnostic' attribute.
- See Also:
- Generated:
-
setDiagnostic
Sets the value of the 'Diagnostic
' attribute.- Parameters:
value
- the new value of the 'Diagnostic' attribute.- See Also:
- Generated:
-