|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.compare.match.engine.AbstractSimilarityChecker
public abstract class AbstractSimilarityChecker
Class responsible to check similarity of elements based on an internal strategy.
| Field Summary | |
|---|---|
protected MetamodelFilter |
filter
The filter. |
| Constructor Summary | |
|---|---|
AbstractSimilarityChecker(MetamodelFilter metamodelFilter)
Create a new checker. |
|
| Method Summary | |
|---|---|
abstract double |
absoluteMetric(org.eclipse.emf.ecore.EObject obj1,
org.eclipse.emf.ecore.EObject obj2)
Returns an absolute comparison metric between the two given EObjects. |
org.eclipse.emf.ecore.EObject |
fastLookup(org.eclipse.emf.ecore.EObject obj1)
If a checker is able to return the matching element quickly it should define that. |
abstract void |
init(org.eclipse.emf.ecore.EObject leftObject,
org.eclipse.emf.ecore.EObject rightObject)
Convenience method if the checker need to be initialized in some way. |
abstract void |
init(org.eclipse.emf.ecore.resource.Resource leftResource,
org.eclipse.emf.ecore.resource.Resource rightResource)
Convenience method if the checker need to be initialized in some way. |
abstract boolean |
isSimilar(org.eclipse.emf.ecore.EObject obj1,
org.eclipse.emf.ecore.EObject obj2)
Should determine whether an element is similar to the other one or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected MetamodelFilter filter
| Constructor Detail |
|---|
public AbstractSimilarityChecker(MetamodelFilter metamodelFilter)
metamodelFilter - a metamodel filter the checker can use to know whether a feature alwaas has the same value
or not in the models.| Method Detail |
|---|
public abstract boolean isSimilar(org.eclipse.emf.ecore.EObject obj1,
org.eclipse.emf.ecore.EObject obj2)
throws FactoryException
obj1 - an element.obj2 - another element.
FactoryException - on error accessing features.
public abstract void init(org.eclipse.emf.ecore.EObject leftObject,
org.eclipse.emf.ecore.EObject rightObject)
throws FactoryException
leftObject - root of the left model.rightObject - root of the right model.
FactoryException - on error accessing features.
public abstract void init(org.eclipse.emf.ecore.resource.Resource leftResource,
org.eclipse.emf.ecore.resource.Resource rightResource)
throws FactoryException
leftResource - the left resource.rightResource - the right resource.
FactoryException - on error accessing features.
public abstract double absoluteMetric(org.eclipse.emf.ecore.EObject obj1,
org.eclipse.emf.ecore.EObject obj2)
throws FactoryException
EObjects.
obj1 - The first EObject to compare.obj2 - Second of the EObjects to compare.
FactoryException - Thrown if we cannot compute the content similarity.public org.eclipse.emf.ecore.EObject fastLookup(org.eclipse.emf.ecore.EObject obj1)
obj1 - object to match.
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||