org.metadiff.ext.generic
Class CallbackMappingFinder

java.lang.Object
  extended byorg.metadiff.ext.generic.CallbackMappingFinder
All Implemented Interfaces:
ModelMappingFinder

public class CallbackMappingFinder
extends java.lang.Object
implements ModelMappingFinder

Author:
Mark Kofman

Field Summary
(package private)  org.apache.log4j.Logger LOG
          Logger instance
 
Constructor Summary
CallbackMappingFinder()
           
 
Method Summary
private  ModelMapping matchModels(MdrResource sourceA, MdrResource sourceB, MappingCallback callback)
           
 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

org.apache.log4j.Logger LOG
Logger instance

Constructor Detail

CallbackMappingFinder

public CallbackMappingFinder()
Method Detail

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(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

private ModelMapping matchModels(MdrResource sourceA,
                                 MdrResource sourceB,
                                 MappingCallback callback)