public class TLcdFeaturedDescriptorPropertyRetrieverProvider extends Object implements ILcdPropertyRetrieverProvider
This implementation of ILcdPropertyRetrieverProvider
uses a given instance of ILcdFeaturedDescriptor
for mapping OGC property names on features of a ILcdFeatured
object.
It also provides the ability to map a property name one the object itself.
This feature can be used for example when a model object implements the ILcdShape
interface and than could be
mapped on a Geometry property.
Constructor and Description |
---|
TLcdFeaturedDescriptorPropertyRetrieverProvider(ILcdFeaturedDescriptor aFeaturedDescriptor)
Constructs an instance with a given featured descriptor.
|
TLcdFeaturedDescriptorPropertyRetrieverProvider(ILcdFeaturedDescriptor aFeaturedDescriptor,
TLcdXMLName aSelfName)
Constructs an instance with a given featured descriptor and a property name that must be mapped on the model object.
|
Modifier and Type | Method and Description |
---|---|
ILcdPropertyRetriever |
getPropertyRetriever(TLcdOGCXPath xPath)
Returns a instance of
ILcdPropertyRetriever that corresponds to the given OGC XPath expression. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDefaultPropertyRetrieverProvider
public TLcdFeaturedDescriptorPropertyRetrieverProvider(ILcdFeaturedDescriptor aFeaturedDescriptor)
aFeaturedDescriptor
- the given featured descriptor.public TLcdFeaturedDescriptorPropertyRetrieverProvider(ILcdFeaturedDescriptor aFeaturedDescriptor, TLcdXMLName aSelfName)
aFeaturedDescriptor
- the given featured descriptor.aSelfName
- the property name that must be mapped on the model object.public ILcdPropertyRetriever getPropertyRetriever(TLcdOGCXPath xPath)
ILcdPropertyRetrieverProvider
ILcdPropertyRetriever
that corresponds to the given OGC XPath expression.
If the XPath expression is invalid for a given object,
the ILcdPropertyRetriever.retrieveProperty(Object)
method should return null
.getPropertyRetriever
in interface ILcdPropertyRetrieverProvider
xPath
- the given OGC XPath expression