org.metadiff.template
Interface ModelDiffFinder


public interface ModelDiffFinder

Interface for different diff/patch implementations

Author:
Mark Kofman

Method Summary
 ModelComparisonDelta findDiff(ModelResource source1, ModelResource source2)
          Find difference between two models TODO actually it should take model mappings as an input
 void patch(ModelResource initialSource, ModelComparisonDelta diff)
          Apply ModelComparisonDelta as a patch for model given in initialSource TODO result should be of other type
 

Method Detail

findDiff

public ModelComparisonDelta findDiff(ModelResource source1,
                                     ModelResource source2)
Find difference between two models TODO actually it should take model mappings as an input

Parameters:
source1 - source of first model
source2 - source of second model
Returns:
ModelComparisonDelta object with difference result between models

patch

public void patch(ModelResource initialSource,
                  ModelComparisonDelta diff)
Apply ModelComparisonDelta as a patch for model given in initialSource TODO result should be of other type

Parameters:
initialSource - initial model patch to be applied
diff -