Class MatchEngineFactoryRegistryWrapper
java.lang.Object
org.eclipse.emf.compare.rcp.internal.match.MatchEngineFactoryRegistryWrapper
- All Implemented Interfaces:
IMatchEngine.Factory.Registry
public class MatchEngineFactoryRegistryWrapper
extends Object
implements IMatchEngine.Factory.Registry
MatchEnginefactoryRegistry that wrap an IItemRegistry<IMatchEngine.Factory>.
-
Constructor Summary
ConstructorDescriptionConstructor. -
Method Summary
Modifier and TypeMethodDescriptionadd
(IMatchEngine.Factory factory) Add to the registry the givenIMatchEngine.Factory
.void
clear()
Clear the registry.Returns the match engine factory, for the given scope, owning the highest ranking.Returns the list ofIMatchEngine.Factory
contained in the registry.Remove from the registry theIMatchEngine.Factory
designated by the givenString
.
-
Constructor Details
-
MatchEngineFactoryRegistryWrapper
Constructor.- Parameters:
registry
-registry
-
-
Method Details
-
getHighestRankingMatchEngineFactory
Returns the match engine factory, for the given scope, owning the highest ranking.- Specified by:
getHighestRankingMatchEngineFactory
in 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
Returns the list ofIMatchEngine.Factory
contained in the registry.- Specified by:
getMatchEngineFactories
in interfaceIMatchEngine.Factory.Registry
- Parameters:
scope
- The scope on which the match engine factories will be applied.- Returns:
- The list of
IMatchEngine.Factory
contained in the registry. - See Also:
-
org.eclipse.emf.compare.match.IMatchEngine.Factory.Registry#getMatchEngines(org.eclipse.emf.compare.scope.IComparisonScope)
-
add
Add to the registry the givenIMatchEngine.Factory
.- Specified by:
add
in interfaceIMatchEngine.Factory.Registry
- Parameters:
factory
- 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
Remove from the registry theIMatchEngine.Factory
designated by the givenString
.- Specified by:
remove
in interfaceIMatchEngine.Factory.Registry
- Parameters:
className
- The givenString
representing aIMatchEngine.Factory
.- Returns:
- The
IMatchEngine.Factory
designated by the givenString
. - See Also:
-
clear
public void clear()Clear the registry.- Specified by:
clear
in interfaceIMatchEngine.Factory.Registry
- See Also:
-