public class MatchEngineFactoryImpl extends Object implements IMatchEngine.Factory
IMatchEngine.Factory.Registry.IMatchEngine.Factory.Registry| Modifier and Type | Field and Description |
|---|---|
protected IMatchEngine |
matchEngine
The match engine created by this factory.
|
| Constructor and Description |
|---|
MatchEngineFactoryImpl()
Constructor that instantiate a
DefaultMatchEngine. |
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.
|
MatchEngineFactoryImpl(UseIdentifiers useIDs)
Constructor that instantiate a
DefaultMatchEngine that will use identifiers as specified by the
given useIDs enumeration. |
MatchEngineFactoryImpl(UseIdentifiers useIDs,
WeightProvider.Descriptor.Registry weightProviderRegistry)
Constructor that instantiate a
DefaultMatchEngine that will use identifiers as specified by the
given useIDs enumeration. |
MatchEngineFactoryImpl(UseIdentifiers useIDs,
WeightProvider.Descriptor.Registry weightProviderRegistry,
EqualityHelperExtensionProvider.Descriptor.Registry equalityHelperExtensionProviderRegistry)
Constructor that instantiate a
DefaultMatchEngine that will use identifiers as specified by the
given useIDs enumeration. |
| Modifier and Type | Method and Description |
|---|---|
IMatchEngine |
getMatchEngine()
Returns the wrapped match engine.
|
int |
getRanking()
Returns the ranking of this match engine factory.
|
boolean |
isMatchEngineFactoryFor(IComparisonScope scope)
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.
|
protected IMatchEngine matchEngine
public MatchEngineFactoryImpl()
DefaultMatchEngine. This match engine will use a the standalone
weight provider registry WeightProviderDescriptorRegistryImpl.createStandaloneInstance().public MatchEngineFactoryImpl(UseIdentifiers useIDs)
DefaultMatchEngine that will use identifiers as specified by the
given useIDs enumeration. This match engine will use a the standalone weight provider registry
WeightProviderDescriptorRegistryImpl.createStandaloneInstance().useIDs - the kinds of matcher to use.public MatchEngineFactoryImpl(UseIdentifiers useIDs, WeightProvider.Descriptor.Registry weightProviderRegistry)
DefaultMatchEngine that will use identifiers as specified by the
given useIDs enumeration.useIDs - the kinds of matcher to use.weightProviderRegistry - A match engine needs a WeightProvider in case of this match engine do not use identifiers.public MatchEngineFactoryImpl(UseIdentifiers useIDs, WeightProvider.Descriptor.Registry weightProviderRegistry, EqualityHelperExtensionProvider.Descriptor.Registry equalityHelperExtensionProviderRegistry)
DefaultMatchEngine that will use identifiers as specified by the
given useIDs enumeration.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.@Deprecated public MatchEngineFactoryImpl(IEObjectMatcher matcher, IComparisonFactory comparisonFactory)
DefaultMatchEngine with the given 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.public IMatchEngine getMatchEngine()
getMatchEngine in interface IMatchEngine.FactoryIMatchEngine.Factory.getMatchEngine()public int getRanking()
getRanking in interface IMatchEngine.FactoryIMatchEngine.Factory.getRanking()public void setRanking(int r)
setRanking in interface IMatchEngine.Factoryr - The ranking.IMatchEngine.Factory.setRanking(int)public boolean isMatchEngineFactoryFor(IComparisonScope scope)
isMatchEngineFactoryFor in interface IMatchEngine.Factoryscope - The scope on which the match engine factory will be applied.IMatchEngine.Factory.isMatchEngineFactoryFor(org.eclipse.emf.compare.scope.IComparisonScope)public void setEqualityHelperExtensionProviderRegistry(EqualityHelperExtensionProvider.Descriptor.Registry equalityHelperExtensionProviderRegistry)
equalityHelperExtensionProviderRegistry - the registry to associate with the match engine.
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.