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
FieldsModifier and TypeFieldDescriptionprotected IMatchEngineThe match engine created by this factory. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor 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 aDefaultMatchEnginethat will use identifiers as specified by the givenuseIDsenumeration.MatchEngineFactoryImpl(UseIdentifiers useIDs, WeightProvider.Descriptor.Registry weightProviderRegistry) Constructor that instantiate aDefaultMatchEnginethat will use identifiers as specified by the givenuseIDsenumeration.MatchEngineFactoryImpl(UseIdentifiers useIDs, WeightProvider.Descriptor.Registry weightProviderRegistry, EqualityHelperExtensionProvider.Descriptor.Registry equalityHelperExtensionProviderRegistry) Constructor that instantiate aDefaultMatchEnginethat will use identifiers as specified by the givenuseIDsenumeration. -
Method Summary
Modifier and TypeMethodDescriptionReturns the wrapped match engine.intReturns the ranking of this match engine factory.booleanCheck if the match engine factory is a good candidate for comparison.voidsetEqualityHelperExtensionProviderRegistry(EqualityHelperExtensionProvider.Descriptor.Registry equalityHelperExtensionProviderRegistry) The match engine may need a Equality Helper Extension.voidsetRanking(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 aDefaultMatchEnginethat will use identifiers as specified by the givenuseIDsenumeration. 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 aDefaultMatchEnginethat will use identifiers as specified by the givenuseIDsenumeration.- 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 aDefaultMatchEnginethat will use identifiers as specified by the givenuseIDsenumeration.- 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 aDefaultMatchEnginewith 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:
getMatchEnginein interfaceIMatchEngine.Factory- Returns:
- the wrapped match engine.
- See Also:
-
getRanking
public int getRanking()Returns the ranking of this match engine factory.- Specified by:
getRankingin interfaceIMatchEngine.Factory- Returns:
- The ranking.
- See Also:
-
setRanking
public void setRanking(int r) Set the ranking of this match engine factory.- Specified by:
setRankingin interfaceIMatchEngine.Factory- Parameters:
r- The ranking.- See Also:
-
isMatchEngineFactoryFor
Check if the match engine factory is a good candidate for comparison.- Specified by:
isMatchEngineFactoryForin 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.
-