Package com.luciad.ogc.filter.evaluator
Class TLcdOGCFilterContext
java.lang.Object
com.luciad.ogc.filter.evaluator.TLcdOGCFilterContext
This class holds a feature ID retriever, a property retriever provider and a default georeference
with which an implementation of
ILcdOGCFilterEvaluator
must be provided in order to be able to interpret a filter or an expression.-
Constructor Summary
ConstructorDescriptionCreates a newTLcdOGCFilterContext
instance which uses anILcdPropertyRetrieverProvider
suited forILcdDataObject
instances and that usesILcdOGCFeatureIDRetriever.createDefaultFeatureIDRetriever(ILcdModel)
.TLcdOGCFilterContext
(ILcdGeoReference aGeoReference) Creates a newTLcdOGCFilterContext
instance which uses the specified reference as default georeference, anILcdPropertyRetrieverProvider
suited forILcdDataObject
instances and that usesILcdOGCFeatureIDRetriever.createDefaultFeatureIDRetriever(ILcdModel)
.TLcdOGCFilterContext
(ILcdGeoReference aGeoReference, ILcdOGCFeatureIDRetriever aFeatureIDRetriever, ILcdPropertyRetrieverProvider aPropertyRetrieverProvider) Creates an instance with a feature ID retriever, a property retriever provider and a default georeference that will be used for non-georeferenced geometries. -
Method Summary
Modifier and TypeMethodDescriptionstatic TLcdOGCFilterContext
Utility method to create a newTLcdOGCFilterContext
instance which can be used when filtering the domain objects of that model.Gets the feature ID retriever.Gets the default georeference that will be used for non-georeferenced geometries.Gets the property retriever provider.
-
Constructor Details
-
TLcdOGCFilterContext
public TLcdOGCFilterContext()Creates a newTLcdOGCFilterContext
instance which uses anILcdPropertyRetrieverProvider
suited forILcdDataObject
instances and that usesILcdOGCFeatureIDRetriever.createDefaultFeatureIDRetriever(ILcdModel)
. The default georeference isnull
.- Since:
- 2017.0
-
TLcdOGCFilterContext
Creates a newTLcdOGCFilterContext
instance which uses the specified reference as default georeference, anILcdPropertyRetrieverProvider
suited forILcdDataObject
instances and that usesILcdOGCFeatureIDRetriever.createDefaultFeatureIDRetriever(ILcdModel)
.- Parameters:
aGeoReference
- The default georeference- Since:
- 2017.0
-
TLcdOGCFilterContext
public TLcdOGCFilterContext(ILcdGeoReference aGeoReference, ILcdOGCFeatureIDRetriever aFeatureIDRetriever, ILcdPropertyRetrieverProvider aPropertyRetrieverProvider) Creates an instance with a feature ID retriever, a property retriever provider and a default georeference that will be used for non-georeferenced geometries.- Parameters:
aGeoReference
- a default georeference.aFeatureIDRetriever
- a feature ID retriever.aPropertyRetrieverProvider
- a property retriever provider.- See Also:
-
-
Method Details
-
getGeoReference
Gets the default georeference that will be used for non-georeferenced geometries.- Returns:
- the default georeference.
-
getFeatureIDRetriever
Gets the feature ID retriever. I.e. the way the it must be obtained from a model object.- Returns:
- the feature ID retriever.
-
getPropertyRetrieverProvider
Gets the property retriever provider. I.e. the way a property or XPath expression must be obtained from a model object.
This provider is not necessarily the same as the one passed in the constructor. For example to improve the performance of the evaluation of a filter, the returned provider can be a decorated instance of the one passed in the constructor to add caching.
- Returns:
- the property retriever provider.
-
forModel
Utility method to create a newTLcdOGCFilterContext
instance which can be used when filtering the domain objects of that model. It returns a context with:- The reference of the model as geo reference.
- A default feature ID retriever.
- A default property retriever provider.
- Parameters:
aModel
- The model- Returns:
- A new filter context
- Since:
- 2019.1
-