Interface ILcdPropertyRetrieverProvider

All Known Implementing Classes:
TLcdCSWAPISOPropertyRetrieverProvider, TLcdCSWRecordPropertyRetrieverProvider, TLcdDataObjectPropertyRetrieverProvider, TLcdFeaturedDescriptorPropertyRetrieverProvider, TLcdFeaturedDescriptorProviderPropertyRetrieverProvider, TLcdSelfPropertyRetrieverProvider, TLcdXMLElementPropertyRetrieverProvider

public interface ILcdPropertyRetrieverProvider

This interface allows to abstract the way an OGC XPath expression can reference a property of a given object. Implementations of this interface must be thread safe. The created ILcdPropertyRetriever instances however can be non thread safe.

For most use-cases, there is no need to implement this interface yourself. Instead, use the createDefaultPropertyRetrieverProvider(ILcdModel) method to create a ILcdPropertyRetrieverProvider instance.

  • Method Details

    • getPropertyRetriever

      ILcdPropertyRetriever getPropertyRetriever(TLcdOGCXPath aXPath)
      Returns an instance of 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.
      Parameters:
      aXPath - the given OGC XPath expression
      Returns:
      the corresponding property retriever.
    • createDefaultPropertyRetrieverProvider

      static ILcdPropertyRetrieverProvider createDefaultPropertyRetrieverProvider(ILcdModel aModel)
      Creates an ILcdPropertyRetrieverProvider instance which can deal with the domain objects from aSourceModel.
      Parameters:
      aModel - The model
      Returns:
      a new ILcdPropertyRetrieverProvider instance.
      Since:
      2017.0