public class WeightProviderDescriptorImpl extends Object implements WeightProvider.Descriptor
WeightProvider.Descriptor
that will delegate its method implementation
to values given to its constructor.WeightProvider.Descriptor.Registry
Constructor and Description |
---|
WeightProviderDescriptorImpl(WeightProvider weightProvider,
int r,
Pattern nsURI)
Creates the descriptor from an existing weight provider.
|
Modifier and Type | Method and Description |
---|---|
Pattern |
getNsURI()
Returns the pattern of namespace URI on which this weight provider can be applied.
|
int |
getRanking()
Returns the ranking of this weight provider.
|
WeightProvider |
getWeightProvider()
Returns the wrapped weight provider.
|
public WeightProviderDescriptorImpl(WeightProvider weightProvider, int r, Pattern nsURI)
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.public WeightProvider getWeightProvider()
getWeightProvider
in interface WeightProvider.Descriptor
public int getRanking()
getRanking
in interface WeightProvider.Descriptor
public Pattern getNsURI()
getNsURI
in interface WeightProvider.Descriptor
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.