Class DefaultRCPMatchEngineFactory
java.lang.Object
org.eclipse.emf.compare.rcp.internal.match.DefaultRCPMatchEngineFactory
- All Implemented Interfaces:
IMatchEngine.Factory
Implementation of
IMatchEngine.Factory for the DefaultMatchEngine that can be configured.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.emf.compare.match.IMatchEngine.Factory
IMatchEngine.Factory.Registry -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UseIdentifiersDefault value of USE_IDENTIFIER_ATTR attribute.static final StringAttribute used to retrieve UseIdentifier attribute from preferences. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the wrapped match engine.intReturns the ranking of this match engine factory.static UseIdentifiersParse the input preference to retrieve the value ofUSE_IDENTIFIER_ATTR.booleanCheck if the match engine factory is a good candidate for comparison.voidsetRanking(int inputRank) Set the ranking of this match engine factory.
-
Field Details
-
USE_IDENTIFIER_ATTR
Attribute used to retrieve UseIdentifier attribute from preferences.- See Also:
-
DEFAULT_USE_IDENTIFIER_ATRIBUTE
Default value of USE_IDENTIFIER_ATTR attribute.
-
-
Constructor Details
-
DefaultRCPMatchEngineFactory
public DefaultRCPMatchEngineFactory()Constructor.
-
-
Method Details
-
getUseIdentifierValue
Parse the input preference to retrieve the value ofUSE_IDENTIFIER_ATTR.- Returns:
- The value of
USE_IDENTIFIER_ATTR.
-
getMatchEngine
Returns the wrapped match engine.- Specified by:
getMatchEnginein interfaceIMatchEngine.Factory- Returns:
- the wrapped match engine.
-
getRanking
public int getRanking()Returns the ranking of this match engine factory.- Specified by:
getRankingin interfaceIMatchEngine.Factory- Returns:
- The ranking.
-
setRanking
public void setRanking(int inputRank) Set the ranking of this match engine factory.- Specified by:
setRankingin interfaceIMatchEngine.Factory- Parameters:
inputRank- The ranking.
-
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.
-