Class MatchEngineFactoryImpl
java.lang.Object
org.eclipse.emf.compare.match.impl.MatchEngineFactoryImpl
- All Implemented Interfaces:
IMatchEngine.Factory
The default implementation of the
IMatchEngine.Factory.Registry
.- Since:
- 3.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.emf.compare.match.IMatchEngine.Factory
IMatchEngine.Factory.Registry
-
Field Summary
Modifier and TypeFieldDescriptionprotected IMatchEngine
The match engine created by this factory. -
Constructor Summary
ConstructorDescriptionConstructor that instantiate aDefaultMatchEngine
.MatchEngineFactoryImpl
(IEObjectMatcher matcher, IComparisonFactory comparisonFactory) Deprecated.Using this will ignore any weight provider or equality helper extension provided through extension points.MatchEngineFactoryImpl
(UseIdentifiers useIDs) Constructor that instantiate aDefaultMatchEngine
that will use identifiers as specified by the givenuseIDs
enumeration.MatchEngineFactoryImpl
(UseIdentifiers useIDs, WeightProvider.Descriptor.Registry weightProviderRegistry) Constructor that instantiate aDefaultMatchEngine
that will use identifiers as specified by the givenuseIDs
enumeration.MatchEngineFactoryImpl
(UseIdentifiers useIDs, WeightProvider.Descriptor.Registry weightProviderRegistry, EqualityHelperExtensionProvider.Descriptor.Registry equalityHelperExtensionProviderRegistry) Constructor that instantiate aDefaultMatchEngine
that will use identifiers as specified by the givenuseIDs
enumeration. -
Method Summary
Modifier and TypeMethodDescriptionReturns the wrapped match engine.int
Returns the ranking of this match engine factory.boolean
Check if the match engine factory is a good candidate for comparison.void
setEqualityHelperExtensionProviderRegistry
(EqualityHelperExtensionProvider.Descriptor.Registry equalityHelperExtensionProviderRegistry) The match engine may need a Equality Helper Extension.void
setRanking
(int r) Set the ranking of this match engine factory.
-
Field Details
-
matchEngine
The match engine created by this factory.
-
-
Constructor Details
-
MatchEngineFactoryImpl
public MatchEngineFactoryImpl()Constructor that instantiate aDefaultMatchEngine
. This match engine will use a the standalone weight provider registry {@link WeightProviderDescriptorRegistryImpl.createStandaloneInstance()}. -
MatchEngineFactoryImpl
Constructor that instantiate aDefaultMatchEngine
that will use identifiers as specified by the givenuseIDs
enumeration. This match engine will use a the standalone weight provider registry {@link WeightProviderDescriptorRegistryImpl.createStandaloneInstance()}.- Parameters:
useIDs
- the kinds of matcher to use.
-
MatchEngineFactoryImpl
public MatchEngineFactoryImpl(UseIdentifiers useIDs, WeightProvider.Descriptor.Registry weightProviderRegistry) Constructor that instantiate aDefaultMatchEngine
that will use identifiers as specified by the givenuseIDs
enumeration.- Parameters:
useIDs
- the kinds of matcher to use.weightProviderRegistry
- A match engine needs a WeightProvider in case of this match engine do not use identifiers.
-
MatchEngineFactoryImpl
public MatchEngineFactoryImpl(UseIdentifiers useIDs, WeightProvider.Descriptor.Registry weightProviderRegistry, EqualityHelperExtensionProvider.Descriptor.Registry equalityHelperExtensionProviderRegistry) Constructor that instantiate aDefaultMatchEngine
that will use identifiers as specified by the givenuseIDs
enumeration.- Parameters:
useIDs
- the kinds of matcher to use.weightProviderRegistry
- A match engine needs a WeightProvider in case of this match engine do not use identifiers.equalityHelperExtensionProviderRegistry
- A match engine may need a Equality Helper Extension.
-
MatchEngineFactoryImpl
@Deprecated public MatchEngineFactoryImpl(IEObjectMatcher matcher, IComparisonFactory comparisonFactory) Deprecated.Using this will ignore any weight provider or equality helper extension provided through extension points. Use another of the constructors if you need this functionality.Constructor that instantiate aDefaultMatchEngine
with the given parameters.- Parameters:
matcher
- The matcher that will be in charge of pairing EObjects together for this comparison process.comparisonFactory
- factory that will be use to instantiate Comparison as return by match() methods.
-
-
Method Details
-
getMatchEngine
Returns the wrapped match engine.- Specified by:
getMatchEngine
in interfaceIMatchEngine.Factory
- Returns:
- the wrapped match engine.
- See Also:
-
getRanking
public int getRanking()Returns the ranking of this match engine factory.- Specified by:
getRanking
in interfaceIMatchEngine.Factory
- Returns:
- The ranking.
- See Also:
-
setRanking
public void setRanking(int r) Set the ranking of this match engine factory.- Specified by:
setRanking
in interfaceIMatchEngine.Factory
- Parameters:
r
- The ranking.- See Also:
-
isMatchEngineFactoryFor
Check if the match engine factory is a good candidate for comparison.- Specified by:
isMatchEngineFactoryFor
in interfaceIMatchEngine.Factory
- Parameters:
scope
- The scope on which the match engine factory will be applied.- Returns:
- True if it is the good candidate, false otherwise.
- See Also:
-
setEqualityHelperExtensionProviderRegistry
public void setEqualityHelperExtensionProviderRegistry(EqualityHelperExtensionProvider.Descriptor.Registry equalityHelperExtensionProviderRegistry) The match engine may need a Equality Helper Extension.- Parameters:
equalityHelperExtensionProviderRegistry
- the registry to associate with the match engine.
-