org.metadiff.ext.generic
Class CallbackMappingFinder
java.lang.Object
org.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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
org.apache.log4j.Logger LOG
- Logger instance
CallbackMappingFinder
public CallbackMappingFinder()
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(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)