org.metadiff.ext.generic
Class IdBasedMappingFinder

java.lang.Object
  extended byorg.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
 
Constructor Summary
IdBasedMappingFinder()
           
 
Method Summary
private  java.util.Map createAToBMap(org.eclipse.emf.ecore.EObject rootA, org.eclipse.emf.ecore.EObject rootB)
           
private  java.util.Map createAToBMap(org.netbeans.api.mdr.MDRObject rootA, org.netbeans.api.mdr.MDRObject rootB)
           
private  java.util.Map createBToAMap(org.eclipse.emf.ecore.EObject rootA, org.eclipse.emf.ecore.EObject rootB)
           
 ModelMapping matchModels(EcoreResource sourceA, EcoreResource sourceB)
           
 ModelMapping matchModels(MdrResource sourceA, MdrResource sourceB)
           
 ModelMapping matchModels(ModelResource sourceA, ModelResource sourceB)
          takes two models resources as input and returns a mapping between them.
 ModelMapping matchModels(ModelResource sourceA, ModelResource sourceB, MappingCallback callback)
          takes two models resources as input and returns a mapping between them.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static org.apache.log4j.Logger LOG
Logger object

Constructor Detail

IdBasedMappingFinder

public IdBasedMappingFinder()
Method Detail

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 resource
sourceB - 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)