Package org.eclipse.emf.compare.match
Interface IMatchEngine.Factory.Registry
- All Known Implementing Classes:
MatchEngineFactoryRegistryImpl,MatchEngineFactoryRegistryWrapper
- Enclosing interface:
- IMatchEngine.Factory
public static interface IMatchEngine.Factory.Registry
A registry of
IMatchEngine.Factory.- Since:
- 3.0
- Restriction:
- Restriction:
- This interface is not intended to be extended by clients.
-
Method Summary
Modifier and Type Method Description IMatchEngine.Factoryadd(IMatchEngine.Factory matchEngineFactory)Add to the registry the givenIMatchEngine.Factory.voidclear()Clear the registry.IMatchEngine.FactorygetHighestRankingMatchEngineFactory(IComparisonScope scope)Returns the match engine factory, for the given scope, owning the highest ranking.java.util.List<IMatchEngine.Factory>getMatchEngineFactories(IComparisonScope scope)Returns the list ofIMatchEngine.Factorycontained in the registry.IMatchEngine.Factoryremove(java.lang.String className)Remove from the registry theIMatchEngine.Factorydesignated by the givenString.
-
Method Details
-
getHighestRankingMatchEngineFactory
Returns the match engine factory, for the given scope, owning the highest ranking.- Parameters:
scope- The given scope.- Returns:
- The found match engine factory.
-
getMatchEngineFactories
Returns the list ofIMatchEngine.Factorycontained in the registry.- Parameters:
scope- The scope on which the match engine factories will be applied.- Returns:
- The list of
IMatchEngine.Factorycontained in the registry.
-
add
Add to the registry the givenIMatchEngine.Factory.- Parameters:
matchEngineFactory- 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.
-
remove
Remove from the registry theIMatchEngine.Factorydesignated by the givenString.- Parameters:
className- The givenStringrepresenting aIMatchEngine.Factory.- Returns:
- The
IMatchEngine.Factorydesignated by the givenString.
-
clear
void clear()Clear the registry.
-