org.eclipse.emf.compare.match.engine
Class EcoreMatchEngine

java.lang.Object
  extended by org.eclipse.emf.compare.match.engine.GenericMatchEngine
      extended by org.eclipse.emf.compare.match.engine.EcoreMatchEngine
All Implemented Interfaces:
IMatchEngine

public class EcoreMatchEngine
extends GenericMatchEngine

This will add ecore-specific behavior to the GenericMatchEngine.


Field Summary
 
Fields inherited from class org.eclipse.emf.compare.match.engine.GenericMatchEngine
filter, options
 
Constructor Summary
EcoreMatchEngine()
           
 
Method Summary
protected  boolean isSimilar(org.eclipse.emf.ecore.EObject obj1, org.eclipse.emf.ecore.EObject obj2)
          Returns True if the 2 given EObjects are considered similar.
 
Methods inherited from class org.eclipse.emf.compare.match.engine.GenericMatchEngine
contentMatch, contentMatch, contentSimilarity, findMostSimilar, getOption, haveDistinctID, haveDistinctXMIID, modelMatch, modelMatch, nameSimilarity, reset, resourceMatch, resourceMatch, resourceSetMatch, resourceSetMatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EcoreMatchEngine

public EcoreMatchEngine()
Method Detail

isSimilar

protected boolean isSimilar(org.eclipse.emf.ecore.EObject obj1,
                            org.eclipse.emf.ecore.EObject obj2)
                     throws FactoryException
Returns True if the 2 given EObjects are considered similar.

Overrides:
isSimilar in class GenericMatchEngine
Parameters:
obj1 - The first EObject to compare.
obj2 - Second of the EObjects to compare.
Returns:
True if both elements have the same serialization ID, False otherwise.
Throws:
FactoryException - Thrown if we cannot compute one of the needed similarity.
See Also:
GenericMatchEngine.isSimilar(org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EObject)

Copyright 2006 IBM Corporation and others.
All Rights Reserved.