Class NameSimilarityMatchingStrategy

java.lang.Object
org.eclipse.emf.compare.match.resource.NameSimilarityMatchingStrategy
All Implemented Interfaces:
IResourceMatchingStrategy

public class NameSimilarityMatchingStrategy
extends java.lang.Object
implements IResourceMatchingStrategy
This implementation of a matching strategy will try and determine the resource mappings through the similarity of their names.

Specifically, this will determine the cartesian product of the resource sets, compute a similarity for every single couple of Resource, then consider that every similarity that is above 80% constitutes a mapping.

  • Constructor Summary

    Constructors 
    Constructor Description
    NameSimilarityMatchingStrategy()  
  • Method Summary

    Modifier and Type Method Description
    protected static MatchResource createMatchResource​(Resource left, Resource right, Resource origin)
    Creates a MatchResource instance and sets all three resources of the mapping on it.
    java.util.List<MatchResource> matchResources​(java.lang.Iterable<? extends Resource> left, java.lang.Iterable<? extends Resource> right, java.lang.Iterable<? extends Resource> origin)
    This will be called by the resource matcher in order to determine the matching between n resources.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait