public class DefaultRCPMatchEngineFactory extends Object implements IMatchEngine.Factory, IConfigurableItem
IMatchEngine.Factory
for the DefaultMatchEngine
that can be configured.IMatchEngine.Factory.Registry
Modifier and Type | Field and Description |
---|---|
static UseIdentifiers |
DEFAULT_USE_IDENTIFIER_ATRIBUTE
Default value of USE_IDENTIFIER_ATTR attribute.
|
static String |
USE_IDENTIFIER_ATTR
Attribute used to retrieve UseIdentifier attribute from preferences.
|
Constructor and Description |
---|
DefaultRCPMatchEngineFactory()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
org.osgi.service.prefs.Preferences |
getConfiguration()
Get the configuration of the Item.
|
IMatchEngine |
getMatchEngine()
Returns the wrapped match engine.
|
int |
getRanking()
Returns the ranking of this match engine factory.
|
static UseIdentifiers |
getUseIdentifierValue(org.osgi.service.prefs.Preferences pref)
Parse the input preference to retrieve the value of
USE_IDENTIFIER_ATTR . |
boolean |
isMatchEngineFactoryFor(IComparisonScope scope)
Check if the match engine factory is a good candidate for comparison.
|
void |
setConfiguration(org.osgi.service.prefs.Preferences inputConfig)
Set the configuration of an Item.
|
void |
setRanking(int inputRank)
Set the ranking of this match engine factory.
|
public static final String USE_IDENTIFIER_ATTR
public static final UseIdentifiers DEFAULT_USE_IDENTIFIER_ATRIBUTE
public static UseIdentifiers getUseIdentifierValue(org.osgi.service.prefs.Preferences pref)
USE_IDENTIFIER_ATTR
.pref
- Preferences
holding configuration for this IMatchEngine.Factory
.USE_IDENTIFIER_ATTR
.public IMatchEngine getMatchEngine()
getMatchEngine
in interface IMatchEngine.Factory
public int getRanking()
getRanking
in interface IMatchEngine.Factory
public void setRanking(int inputRank)
setRanking
in interface IMatchEngine.Factory
inputRank
- The ranking.public boolean isMatchEngineFactoryFor(IComparisonScope scope)
isMatchEngineFactoryFor
in interface IMatchEngine.Factory
scope
- The scope on which the match engine factory will be applied.public org.osgi.service.prefs.Preferences getConfiguration()
getConfiguration
in interface IConfigurableItem
public void setConfiguration(org.osgi.service.prefs.Preferences inputConfig)
setConfiguration
in interface IConfigurableItem
inputConfig
- Configuration to set.
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.