org.metadiff.ext.generic
Class IdBasedMappingFinder
java.lang.Object
org.metadiff.ext.generic.IdBasedMappingFinder
- All Implemented Interfaces:
- ModelMappingFinder
- public class IdBasedMappingFinder
- extends java.lang.Object
- implements ModelMappingFinder
- Author:
- Mark Kofman
Field Summary |
private static org.apache.log4j.Logger |
LOG
Logger object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static org.apache.log4j.Logger LOG
- Logger object
IdBasedMappingFinder
public IdBasedMappingFinder()
matchModels
public ModelMapping matchModels(ModelResource sourceA,
ModelResource sourceB,
MappingCallback callback)
- Description copied from interface:
ModelMappingFinder
- takes two models resources as input and returns a mapping between them.
The mapping identifies relations (mapping) between the objects in the two
input models. The relations are either equal or similar, based on some
externally provided definition of equality or similarity.
It also uses callback to to provide human/caller assistance.
- Specified by:
matchModels
in interface ModelMappingFinder
- Returns:
- Mapping between two models
matchModels
public ModelMapping matchModels(ModelResource sourceA,
ModelResource sourceB)
- Description copied from interface:
ModelMappingFinder
- takes two models resources as input and returns a mapping between them.
The mapping identifies relations (mapping) between the objects in the two
input models. The relations are either equal or similar, based on some
externally provided definition of equality or similarity.
- Specified by:
matchModels
in interface ModelMappingFinder
- Parameters:
sourceA
- first model resourcesourceB
- second model resource
- Returns:
- Mapping between two models
matchModels
public ModelMapping matchModels(EcoreResource sourceA,
EcoreResource sourceB)
matchModels
public ModelMapping matchModels(MdrResource sourceA,
MdrResource sourceB)
createAToBMap
private java.util.Map createAToBMap(org.eclipse.emf.ecore.EObject rootA,
org.eclipse.emf.ecore.EObject rootB)
createBToAMap
private java.util.Map createBToAMap(org.eclipse.emf.ecore.EObject rootA,
org.eclipse.emf.ecore.EObject rootB)
createAToBMap
private java.util.Map createAToBMap(org.netbeans.api.mdr.MDRObject rootA,
org.netbeans.api.mdr.MDRObject rootB)