Class MatchEngineFactoryRegistryImpl
- java.lang.Object
-
- org.eclipse.emf.compare.match.impl.MatchEngineFactoryRegistryImpl
-
- All Implemented Interfaces:
IMatchEngine.Factory.Registry
public class MatchEngineFactoryRegistryImpl extends Object implements IMatchEngine.Factory.Registry
The default implementation of theIMatchEngine.Factory.Registry.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description MatchEngineFactoryRegistryImpl()Constructs the registry.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IMatchEngine.Factoryadd(IMatchEngine.Factory filter)Add to the registry the givenIMatchEngine.Factory.voidclear()Clear the registry.static IMatchEngine.Factory.RegistrycreateStandaloneInstance()Returns a registry filled with the default match engine factory provided by EMF CompareMatchEngineFactoryImpl.IMatchEngine.FactorygetHighestRankingMatchEngineFactory(IComparisonScope scope)Returns the match engine factory, for the given scope, owning the highest ranking.List<IMatchEngine.Factory>getMatchEngineFactories(IComparisonScope scope)Returns the list ofIMatchEngine.Factorycontained in the registry.IMatchEngine.Factoryremove(String className)Remove from the registry theIMatchEngine.Factorydesignated by the givenString.
-
-
-
Method Detail
-
createStandaloneInstance
public static IMatchEngine.Factory.Registry createStandaloneInstance()
Returns a registry filled with the default match engine factory provided by EMF CompareMatchEngineFactoryImpl.- Returns:
- A registry filled with the default match engine factory provided by EMF Compare.
-
getHighestRankingMatchEngineFactory
public IMatchEngine.Factory getHighestRankingMatchEngineFactory(IComparisonScope scope)
Returns the match engine factory, for the given scope, owning the highest ranking.- Specified by:
getHighestRankingMatchEngineFactoryin interfaceIMatchEngine.Factory.Registry- Parameters:
scope- The given scope.- Returns:
- The found match engine factory.
- See Also:
org.eclipse.emf.compare.match.IMatchEngine.Factory.Registry#getHighestRankingMatchEngine(java.lang.Object)
-
getMatchEngineFactories
public List<IMatchEngine.Factory> getMatchEngineFactories(IComparisonScope scope)
Returns the list ofIMatchEngine.Factorycontained in the registry.- Specified by:
getMatchEngineFactoriesin interfaceIMatchEngine.Factory.Registry- Parameters:
scope- The scope on which the match engine factories will be applied.- Returns:
- The list of
IMatchEngine.Factorycontained in the registry. - See Also:
org.eclipse.emf.compare.match.IMatchEngine.Factory.Registry#getMatchEngines(org.eclipse.emf.compare.scope.IComparisonScope)
-
add
public IMatchEngine.Factory add(IMatchEngine.Factory filter)
Add to the registry the givenIMatchEngine.Factory.- Specified by:
addin interfaceIMatchEngine.Factory.Registry- Parameters:
filter- The givenIMatchEngine.Factory.- Returns:
- The previous value associated with the class name of the given
IMatchEngine.Factory, or null if there was no entry in the registry for the class name. - See Also:
org.eclipse.emf.compare.match.IMatchEngine.Factory.Registry#add(org.eclipse.emf.compare.match.IMatchEngine)
-
remove
public IMatchEngine.Factory remove(String className)
Remove from the registry theIMatchEngine.Factorydesignated by the givenString.- Specified by:
removein interfaceIMatchEngine.Factory.Registry- Parameters:
className- The givenStringrepresenting aIMatchEngine.Factory.- Returns:
- The
IMatchEngine.Factorydesignated by the givenString. - See Also:
IMatchEngine.Factory.Registry.remove(java.lang.String)
-
clear
public void clear()
Clear the registry.- Specified by:
clearin interfaceIMatchEngine.Factory.Registry- See Also:
IMatchEngine.Factory.Registry.clear()
-
-