Modifier and Type | Method and Description |
---|---|
Comparison |
EMFCompare.compare(IComparisonScope scope)
Computes and returns a new Comparison object representation the differences between Notifier in the
give
scope . |
Comparison |
EMFCompare.compare(IComparisonScope scope,
Monitor monitor)
Launches the comparison with the given scope and reporting progress to the given
monitor . |
Comparison |
CompareFactory.createComparison()
Returns a new object of class 'Comparison'
|
Comparison |
Match.getComparison()
Finds and return the Comparison containing this Match
|
Comparison |
MatchResource.getComparison()
Returns the value of the 'Comparison' container reference.
|
Modifier and Type | Method and Description |
---|---|
void |
MatchResource.setComparison(Comparison value)
Sets the value of the '
Comparison ' container reference |
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultConflictDetector.checkConflict(Comparison comparison,
Diff diff,
Iterable<Diff> candidates)
This will be called once for each difference in the comparison model.
|
protected void |
DefaultConflictDetector.checkContainmentConflict(Comparison comparison,
ReferenceChange diff,
Iterable<ReferenceChange> candidates)
This will be called once for each ReferenceChange on containment references in the comparison model.
|
protected void |
DefaultConflictDetector.checkContainmentConflict(Comparison comparison,
ReferenceChange diff,
ReferenceChange candidate)
For each couple of diffs on the same value in which one is a containment reference change, we will call
this in order to check for possible conflicts.
|
protected void |
DefaultConflictDetector.checkContainmentFeatureMapConflict(Comparison comparison,
FeatureMapChange diff,
FeatureMapChange candidate)
For each couple of diffs on the same value in which one is a containment feature map change, we will
call this in order to check for possible conflicts.
|
protected void |
DefaultConflictDetector.checkContainmentFeatureMapConflict(Comparison comparison,
FeatureMapChange diff,
Iterable<FeatureMapChange> candidates)
This will be called once for each FeatureMapChange on containment values in the comparison model.
|
protected void |
DefaultConflictDetector.checkFeatureAddConflict(Comparison comparison,
Diff diff,
Iterable<Diff> candidates)
This will be called from
DefaultConflictDetector.checkConflict(Comparison, Diff, Iterable) in order to detect
conflicts on a Diff that is of type "ADD" and which is not a containment reference change. |
protected void |
DefaultConflictDetector.checkFeatureChangeConflict(Comparison comparison,
Diff diff,
Iterable<Diff> candidates)
This will be called from
DefaultConflictDetector.checkConflict(Comparison, Diff, Iterable) in order to detect
conflicts on a Diff that is of type "CHANGE". |
protected void |
DefaultConflictDetector.checkFeatureDeleteConflict(Comparison comparison,
Diff diff,
Iterable<Diff> candidates)
This will be called from
DefaultConflictDetector.checkConflict(Comparison, Diff, Iterable) in order to detect
conflicts on a Diff that is of type "DELETE" and which is not a containment reference change. |
protected void |
DefaultConflictDetector.checkFeatureMoveConflict(Comparison comparison,
Diff diff,
Iterable<Diff> candidates)
This will be called from
DefaultConflictDetector.checkConflict(Comparison, Diff, Iterable) in order to detect
conflicts on a Diff that is of type "CHANGE" or "MOVE". |
protected void |
DefaultConflictDetector.checkResourceAttachmentConflict(Comparison comparison,
ResourceAttachmentChange diff,
Iterable<Diff> candidates)
This will be called once for each ResourceAttachmentChange in the comparison model.
|
protected void |
DefaultConflictDetector.checkResourceAttachmentConflict(Comparison comparison,
ResourceAttachmentChange diff,
ReferenceChange candidate)
This will be called from
DefaultConflictDetector.checkResourceAttachmentConflict(Comparison, ResourceAttachmentChange, Iterable) for each
ReferenceChange in the comparison model that is on the other side and that impacts the changed root. |
protected void |
DefaultConflictDetector.conflictOn(Comparison comparison,
Diff diff1,
Diff diff2,
ConflictKind kind)
This will be called whenever we detect a new conflict in order to create (or update) the actual
association.
|
void |
DefaultConflictDetector.detect(Comparison comparison,
Monitor monitor)
This is the entry point of the conflict detection process.
|
void |
IConflictDetector.detect(Comparison comparison,
Monitor monitor)
This is the entry point of the conflict detection process.
|
protected MatchResource |
DefaultConflictDetector.getMatchResource(Comparison comparison,
Resource resource)
Returns the MatchResource corresponding to the given
resource . |
Modifier and Type | Method and Description |
---|---|
protected <E> boolean |
DefaultDiffEngine.contains(Comparison comparison,
Iterable<E> iterable,
E element)
Checks whether the given
iterable contains the given element according to the semantics
of IEqualityHelper#matchingValues(Comparison, Object, Object) . |
void |
IDiffEngine.diff(Comparison comparison,
Monitor monitor)
This is the entry point of the differencing process.
|
void |
DefaultDiffEngine.diff(Comparison comparison,
Monitor monitor)
This is the entry point of the differencing process.
|
protected static com.google.common.base.Optional<Match> |
DefaultDiffEngine.getMatchIfPresent(Comparison comparison,
List<Object> list,
int index)
This will be used in order to read the LCS synchronously with the iteration on its target lists'
values.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultEquiEngine.checkForEquivalences(Comparison comparison,
Diff difference)
Checks the potential equivalence from the given
difference . |
protected void |
DefaultEquiEngine.checkForEquivalences(Comparison comparison,
FeatureMapChange featureMapChange)
Checks the potential equivalence from the given
difference . |
protected void |
DefaultEquiEngine.checkForEquivalences(Comparison comparison,
ReferenceChange referenceChange)
Checks the potential equivalence from the given
difference . |
void |
DefaultEquiEngine.computeEquivalences(Comparison comparison,
Monitor monitor)
This is the entry point of the equivalence computing process.
|
void |
IEquiEngine.computeEquivalences(Comparison comparison,
Monitor monitor)
This is the entry point of the equivalence computing process.
|
Modifier and Type | Class and Description |
---|---|
class |
ComparisonImpl
An implementation of the model object 'Comparison'.
|
Modifier and Type | Method and Description |
---|---|
Comparison |
CompareFactoryImpl.createComparison() |
Comparison |
MatchResourceImpl.getComparison() |
Comparison |
MatchImpl.getComparison() |
Modifier and Type | Method and Description |
---|---|
NotificationChain |
MatchResourceImpl.basicSetComparison(Comparison newComparison,
NotificationChain msgs) |
void |
MatchResourceImpl.setComparison(Comparison newComparison) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractChangeFactory.fillRequiredDifferences(Comparison comparison,
Diff extension)
Sets the required link of the difference extension created by the related factory.
|
void |
IChangeFactory.fillRequiredDifferences(Comparison comparison,
Diff extension)
Sets the required link of the difference extension created by the related factory.
|
protected List<Diff> |
AbstractChangeFactory.findCrossReferences(Comparison comparison,
EObject lookup,
com.google.common.base.Predicate<Diff> p)
Find the differences, on the given model object, which match with the predicate.
|
Modifier and Type | Class and Description |
---|---|
class |
ComparisonSpec
This specialization of the
ComparisonImpl class allows us to define the derived features and
operations implementations. |
Modifier and Type | Method and Description |
---|---|
Comparison |
MatchSpec.getComparison()
Finds and return the Comparison containing this Match
|
Modifier and Type | Method and Description |
---|---|
static Comparison |
ComparisonUtil.getComparison(EObject object)
Returns the comparison associated with the given object.
|
Modifier and Type | Method and Description |
---|---|
static int |
DiffUtil.findInsertionIndex(Comparison comparison,
Diff diff,
boolean rightToLeft)
This is the main entry point for
DiffUtil.findInsertionIndex(Comparison, Iterable, List, List, Object) . |
static <E> int |
DiffUtil.findInsertionIndex(Comparison comparison,
Iterable<E> ignoredElements,
List<E> source,
List<E> target,
E newElement)
This will try and determine the index at which a given element from the
source list should be
inserted in the target list. |
static <E> int |
DiffUtil.findInsertionIndex(Comparison comparison,
List<E> source,
List<E> target,
E newElement)
This will try and determine the index at which a given element from the
source list should be
inserted in the target list. |
static <E> List<E> |
DiffUtil.longestCommonSubsequence(Comparison comparison,
Iterable<E> ignoredElements,
List<E> sequence1,
List<E> sequence2)
This will compute the longest common subsequence between the two given Lists, ignoring any object that
is included in
ignoredElements . |
static <E> List<E> |
DiffUtil.longestCommonSubsequence(Comparison comparison,
List<E> sequence1,
List<E> sequence2)
This will compute the longest common subsequence between the two given Lists.
|
static EObject |
ComparisonUtil.moveElementGetExpectedContainer(Comparison comparison,
FeatureMapChange diff,
boolean rightToLeft)
Get the expected target container in case of a move.
|
Modifier and Type | Method and Description |
---|---|
Comparison |
DefaultComparisonFactory.createComparison()
Returns a new
Comparison . |
Comparison |
IComparisonFactory.createComparison()
Returns a new
Comparison . |
Comparison |
IMatchEngine.match(IComparisonScope scope,
Monitor monitor)
This is the entry point of a Comparison process.
|
Comparison |
DefaultMatchEngine.match(IComparisonScope scope,
Monitor monitor)
This is the entry point of a Comparison process.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultMatchEngine.match(Comparison comparison,
IComparisonScope scope,
EObject left,
EObject right,
EObject origin,
Monitor monitor)
This will query the scope for the given
EObject s' children, then delegate to an
IEObjectMatcher to compute the Matches. |
protected void |
DefaultMatchEngine.match(Comparison comparison,
IComparisonScope scope,
Notifier left,
Notifier right,
Notifier origin,
Monitor monitor)
This methods will delegate to the proper "match(T, T, T)" implementation according to the types of
left , right and origin . |
protected void |
DefaultMatchEngine.match(Comparison comparison,
IComparisonScope scope,
Resource left,
Resource right,
Resource origin,
Monitor monitor)
This will only query the scope for the given Resources' children, then delegate to an
IEObjectMatcher to determine the EObject matches. |
protected void |
DefaultMatchEngine.match(Comparison comparison,
IComparisonScope scope,
ResourceSet left,
ResourceSet right,
ResourceSet origin,
Monitor monitor)
This will be used to match the given
ResourceSet s. |
Modifier and Type | Method and Description |
---|---|
boolean |
EditionDistance.areIdentic(Comparison inProgress,
EObject a,
EObject b)
Check that two objects are equals from the distance function point of view (distance should be 0)
You should prefer this method when you just want to check objects are not equals enabling the
distance to stop sooner.
|
boolean |
ProximityEObjectMatcher.DistanceFunction.areIdentic(Comparison inProgress,
EObject a,
EObject b)
Check that two objects are equals from the distance function point of view (distance should be 0)
You should prefer this method when you just want to check objects are not equals enabling the
distance to stop sooner.
|
boolean |
CachingDistance.areIdentic(Comparison inProgress,
EObject a,
EObject b)
Check that two objects are equals from the distance function point of view (distance should be 0)
You should prefer this method when you just want to check objects are not equals enabling the
distance to stop sooner.
|
void |
ProximityEObjectMatcher.createMatches(Comparison comparison,
Iterator<? extends EObject> leftEObjects,
Iterator<? extends EObject> rightEObjects,
Iterator<? extends EObject> originEObjects,
Monitor monitor)
This will be called by the match engine to determine matches between EObjects.
|
void |
IdentifierEObjectMatcher.createMatches(Comparison comparison,
Iterator<? extends EObject> leftEObjects,
Iterator<? extends EObject> rightEObjects,
Iterator<? extends EObject> originEObjects,
Monitor monitor)
This will be called by the match engine to determine matches between EObjects.
|
void |
IEObjectMatcher.createMatches(Comparison comparison,
Iterator<? extends EObject> leftEObjects,
Iterator<? extends EObject> rightEObjects,
Iterator<? extends EObject> originEObjects,
Monitor monitor)
This will be called by the match engine to determine matches between EObjects.
|
double |
EditionDistance.distance(Comparison inProgress,
EObject a,
EObject b)
Return the distance between two EObjects.
|
double |
ProximityEObjectMatcher.DistanceFunction.distance(Comparison inProgress,
EObject a,
EObject b)
Return the distance between two EObjects.
|
double |
CachingDistance.distance(Comparison inProgress,
EObject a,
EObject b)
Return the distance between two EObjects.
|
protected void |
IdentifierEObjectMatcher.doDelegation(Comparison comparison,
List<EObject> leftEObjectsNoID,
List<EObject> rightEObjectsNoID,
List<EObject> originEObjectsNoID,
Monitor monitor)
Execute matching process for the delegated IEObjectMatcher.
|
Map<EObjectIndex.Side,EObject> |
EObjectIndex.findClosests(Comparison inProgress,
EObject eObj,
EObjectIndex.Side side)
Return the closest EObjects found in other sides than the one given.
|
void |
URIDistance.setComparison(Comparison comparison)
Set an optional comparison used to retrieve matches already computed.
|
Modifier and Type | Method and Description |
---|---|
Map<EObjectIndex.Side,EObject> |
ProximityIndex.findClosests(Comparison inProgress,
EObject eObj,
EObjectIndex.Side passedObjectSide)
Return the closest EObjects found in other sides than the one given.
|
Map<EObjectIndex.Side,EObject> |
ByTypeIndex.findClosests(Comparison inProgress,
EObject obj,
EObjectIndex.Side side)
Return the closest EObjects found in other sides than the one given.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AttributeChangeMerger.doMove(AttributeChange diff,
Comparison comparison,
EObject expectedContainer,
Object expectedValue,
boolean rightToLeft)
This will do the actual work of moving the element into its attribute.
|
protected void |
FeatureMapChangeMerger.doMove(FeatureMapChange diff,
Comparison comparison,
EObject expectedContainer,
FeatureMap.Entry expectedValue,
boolean rightToLeft)
This will do the actual work of moving the element into its attribute.
|
protected void |
ReferenceChangeMerger.doMove(ReferenceChange diff,
Comparison comparison,
EObject expectedContainer,
EObject expectedValue,
boolean rightToLeft)
This will do the actual work of moving the element into its reference.
|
protected int |
FeatureMapChangeMerger.findInsertionIndex(Comparison comparison,
Diff diff,
boolean rightToLeft)
This will be used by the distinct merge actions in order to find the index at which a value should be
inserted in its target list.
|
protected int |
AttributeChangeMerger.findInsertionIndex(Comparison comparison,
Diff diff,
boolean rightToLeft)
This will be used by the distinct merge actions in order to find the index at which a value should be
inserted in its target list.
|
protected int |
ReferenceChangeMerger.findInsertionIndex(Comparison comparison,
Diff diff,
boolean rightToLeft)
This will be used by the distinct merge actions in order to find the index at which a value should be
inserted in its target list.
|
protected <E> int |
ResourceAttachmentChangeMerger.findInsertionIndex(Comparison comparison,
List<E> source,
List<E> target,
E newElement)
This will be used by the distinct merge actions in order to find the index at which a value should be
inserted in its target list.
|
protected EObject |
ReferenceChangeMerger.findMatchIn(Comparison comparison,
List<EObject> list,
EObject element)
Seeks a match of the given
element in the given list, using the equality helper to find it. |
protected MatchResource |
ResourceAttachmentChangeMerger.getMatchResource(Comparison comparison,
Resource resource)
Returns the MatchResource corresponding to the given
resource . |
Modifier and Type | Method and Description |
---|---|
void |
IPostProcessor.postComparison(Comparison comparison,
Monitor monitor)
This will be called by EMF Compare in order to execute the specified behavior after a comparison, from
a
comparison . |
void |
IPostProcessor.postConflicts(Comparison comparison,
Monitor monitor)
This will be called by EMF Compare in order to execute the specified behavior after the conflicts step,
from a
comparison . |
void |
IPostProcessor.postDiff(Comparison comparison,
Monitor monitor)
This will be called by EMF Compare in order to execute the specified behavior after the difference
step, from a
comparison . |
void |
IPostProcessor.postEquivalences(Comparison comparison,
Monitor monitor)
This will be called by EMF Compare in order to execute the specified behavior after the equivalences
step, from a
comparison . |
void |
IPostProcessor.postMatch(Comparison comparison,
Monitor monitor)
This will be called by EMF Compare in order to execute the specified behavior after the match step,
from a
comparison . |
void |
IPostProcessor.postRequirements(Comparison comparison,
Monitor monitor)
This will be called by EMF Compare in order to execute the specified behavior after the requirements
step, from a
comparison . |
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultReqEngine.checkForRequiredDifferences(Comparison comparison,
Diff difference)
Checks the potential required differences from the given
difference . |
void |
DefaultReqEngine.computeRequirements(Comparison comparison,
Monitor monitor)
This is the entry point of the requirements computing process.
|
void |
IReqEngine.computeRequirements(Comparison comparison,
Monitor monitor)
This is the entry point of the requirements computing process.
|
Modifier and Type | Method and Description |
---|---|
T |
CompareSwitch.caseComparison(Comparison object)
Returns the result of interpreting the object as an instance of 'Comparison'
|
Modifier and Type | Method and Description |
---|---|
Comparison |
EqualityHelper.getTarget() |
Comparison |
IEqualityHelper.getTarget() |
Modifier and Type | Method and Description |
---|---|
static int |
DiffUtil.findInsertionIndex(Comparison comparison,
Diff diff,
boolean rightToLeft)
Deprecated.
This is the main entry point for
#findInsertionIndex(Comparison, EqualityHelper, Iterable, List, List, Object) . |
static <E> int |
DiffUtil.findInsertionIndex(Comparison comparison,
Iterable<E> ignoredElements,
List<E> source,
List<E> target,
E newElement)
Deprecated.
This will try and determine the index at which a given element from the
source list should be
inserted in the target list. |
static <E> int |
DiffUtil.findInsertionIndex(Comparison comparison,
List<E> source,
List<E> target,
E newElement)
Deprecated.
This will try and determine the index at which a given element from the
source list should be
inserted in the target list. |
static EObject |
MatchUtil.getContainer(Comparison comparison,
Diff difference)
Get the business model object containing the given
difference . |
static EObject |
MatchUtil.getOriginContainer(Comparison comparison,
Diff difference)
Get the business model object containing the given
difference in the origin side. |
static EObject |
MatchUtil.getOriginObject(Comparison comparison,
EObject object)
Get the object which is the origin value from the given matching
object . |
static EObject |
MatchUtil.getOriginValue(Comparison comparison,
ReferenceChange difference)
From a given mono-valued reference change, get the origin value.
|
static <E> List<E> |
DiffUtil.longestCommonSubsequence(Comparison comparison,
Iterable<E> ignoredElements,
List<E> sequence1,
List<E> sequence2)
Deprecated.
This will compute the longest common subsequence between the two given Lists, ignoring any object that
is included in
ignoredElements . |
static <E> List<E> |
DiffUtil.longestCommonSubsequence(Comparison comparison,
List<E> sequence1,
List<E> sequence2)
Deprecated.
This will compute the longest common subsequence between the two given Lists.
|
boolean |
EqualityHelper.matchingValues(Comparison comparison,
Object object1,
Object object2)
Deprecated.
|
static void |
EMFComparePrettyPrinter.printComparison(Comparison comparison,
PrintStream stream)
Prints the whole comparison on the given stream (might be
stream ). |
static void |
EMFComparePrettyPrinter.printDifferences(Comparison comparison,
PrintStream stream)
Prints all differences detected for the given
comparison on the given stream . |
static void |
EMFComparePrettyPrinter.printMatch(Comparison comparison,
PrintStream stream)
Prints all the Match elements contained by the given
comparison . |
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.