Class WeightProviderDescriptorImpl
- java.lang.Object
-
- org.eclipse.emf.compare.match.eobject.internal.WeightProviderDescriptorImpl
-
- All Implemented Interfaces:
WeightProvider.Descriptor
public class WeightProviderDescriptorImpl extends Object implements WeightProvider.Descriptor
A simple implementation ofWeightProvider.Descriptorthat will delegate its method implementation to values given to its constructor.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.emf.compare.match.eobject.WeightProvider.Descriptor
WeightProvider.Descriptor.Registry
-
-
Constructor Summary
Constructors Constructor Description WeightProviderDescriptorImpl(WeightProvider weightProvider, int r, Pattern nsURI)Creates the descriptor from an existing weight provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PatterngetNsURI()Returns the pattern of namespace URI on which this weight provider can be applied.intgetRanking()Returns the ranking of this weight provider.WeightProvidergetWeightProvider()Returns the wrapped weight provider.
-
-
-
Constructor Detail
-
WeightProviderDescriptorImpl
public WeightProviderDescriptorImpl(WeightProvider weightProvider, int r, Pattern nsURI)
Creates the descriptor from an existing weight provider.- Parameters:
weightProvider- the given weight provider.r- the ranking of the weight provider.nsURI- the pattern of namespace URI on which this weight provider can be applied.
-
-
Method Detail
-
getWeightProvider
public WeightProvider getWeightProvider()
Returns the wrapped weight provider.- Specified by:
getWeightProviderin interfaceWeightProvider.Descriptor- Returns:
- the wrapped weight provider
-
getRanking
public int getRanking()
Returns the ranking of this weight provider.- Specified by:
getRankingin interfaceWeightProvider.Descriptor- Returns:
- The ranking.
-
getNsURI
public Pattern getNsURI()
Returns the pattern of namespace URI on which this weight provider can be applied.- Specified by:
getNsURIin interfaceWeightProvider.Descriptor- Returns:
- The namespace URI pattern.
-
-