Class WeightProviderDescriptorImpl
java.lang.Object
org.eclipse.emf.compare.match.eobject.internal.WeightProviderDescriptorImpl
- All Implemented Interfaces:
WeightProvider.Descriptor
A simple implementation of
WeightProvider.Descriptor
that 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
ConstructorDescriptionWeightProviderDescriptorImpl
(WeightProvider weightProvider, int r, Pattern nsURI) Creates the descriptor from an existing weight provider. -
Method Summary
Modifier and TypeMethodDescriptiongetNsURI()
Returns the pattern of namespace URI on which this weight provider can be applied.int
Returns the ranking of this weight provider.Returns the wrapped weight provider.
-
Constructor Details
-
WeightProviderDescriptorImpl
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 Details
-
getWeightProvider
Returns the wrapped weight provider.- Specified by:
getWeightProvider
in interfaceWeightProvider.Descriptor
- Returns:
- the wrapped weight provider
-
getRanking
public int getRanking()Returns the ranking of this weight provider.- Specified by:
getRanking
in interfaceWeightProvider.Descriptor
- Returns:
- The ranking.
-
getNsURI
Returns the pattern of namespace URI on which this weight provider can be applied.- Specified by:
getNsURI
in interfaceWeightProvider.Descriptor
- Returns:
- The namespace URI pattern.
-