public interface Comparison extends EObject
The following features are supported:
ComparePackage.getComparison()| Modifier and Type | Method and Description |
|---|---|
EList<Conflict> |
getConflicts()
Returns the value of the 'Conflicts' containment reference list.
|
Diagnostic |
getDiagnostic()
Returns the value of the 'Diagnostic' attribute.
|
EList<Diff> |
getDifferences()
Returns all differences
contained by this Comparison and its children.
|
EList<Diff> |
getDifferences(EObject element)
Returns all differences that
reference the given EObject (for instance, all ReferenceChanges that reference the given EObject
through the "value" EReference).
|
IEqualityHelper |
getEqualityHelper() |
EList<Equivalence> |
getEquivalences()
Returns the value of the 'Equivalences' containment reference list.
|
Match |
getMatch(EObject element)
Finds and return the Match for
the given EObject.
|
EList<MatchResource> |
getMatchedResources()
Returns the value of the 'Matched Resources' containment reference list.
|
EList<Match> |
getMatches()
Returns the value of the 'Matches' containment reference list.
|
boolean |
isThreeWay()
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.
|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnseteAdapters, eDeliver, eNotify, eSetDeliverstatic final String copyright
EList<MatchResource> getMatchedResources()
MatchResource. This contains the mappings for each compared Resource. ComparePackage.getComparison_MatchedResources()EList<Match> getMatches()
Match. This contains the match tree "mimicking" the input models' hierarchy. ComparePackage.getComparison_Matches()EList<Conflict> getConflicts()
Conflict. If we detected any conflict during the comparison process, this will contain them.
ComparePackage.getComparison_Conflicts()EList<Equivalence> getEquivalences()
Equivalence.
If we detected any equivalence between diffs during the comparison process,
this will contain them. ComparePackage.getComparison_Equivalences()EList<Diff> getDifferences()
EList<Diff> getDifferences(EObject element)
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();
}
element - The EObject for which we seek all related differences. Match getMatch(EObject element)
element - The EObject for which we seek the match. IEqualityHelper getEqualityHelper()
boolean isThreeWay()
setThreeWay(boolean),
ComparePackage.getComparison_ThreeWay()void setThreeWay(boolean value)
Three Way'
attribute. value - the new value of the 'Three Way' attribute.isThreeWay()Diagnostic getDiagnostic()
If the meaning of the 'Diagnostic' attribute isn't clear, there really should be more of a description here...
setDiagnostic(Diagnostic),
ComparePackage.getComparison_Diagnostic()void setDiagnostic(Diagnostic value)
Diagnostic'
attribute. value - the new value of the 'Diagnostic' attribute.getDiagnostic()
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.