TLcdOGCFilterEvaluator
instance.
The class javadoc of TLcdOGCFilterEvaluator
contains an example of this.ILcdEvaluatorFunction
interface.
The javadoc of that interface illustrates this with an example.@Deprecated public interface ILcdEvaluatorFactory
Creates ILcdEvaluator
objects for generic expressions.
Retrieving the value of the evaluator for an object is then equivalent to evaluating the expression.
An evaluator factory indicates what expressions it can handle and can publish this information in a
TLcdOGCFilterCapabilities
.
Implementations of this interface must be thread safe.
The created ILcdEvaluator
instances however can be non thread safe.
Modifier and Type | Method and Description |
---|---|
ILcdEvaluator |
buildEvaluator(ILcdGenericExpression aGenericExpression,
ILcdEvaluatorFactory aEvaluatorFactory,
TLcdOGCFilterContext aContext)
Deprecated.
Creates an evaluator for the given expression in the given filter context.
|
boolean |
canBuildEvaluator(ILcdGenericExpression aGenericExpression)
Deprecated.
|
default boolean |
canBuildEvaluator(ILcdGenericExpression aGenericExpression,
ILcdEvaluatorFactory aEvaluatorFactory,
TLcdOGCFilterContext aContext)
Deprecated.
Indicates whether this factory is capable of creating an evaluator for the given expression.
|
void |
populateCapabilities(TLcdOGCFilterCapabilities aFilterCapabilities)
Deprecated.
Populates the filter capabilities, indicating what kind of expressions can be evaluated.
|
@Deprecated boolean canBuildEvaluator(ILcdGenericExpression aGenericExpression)
canBuildEvaluator(ILcdGenericExpression, ILcdEvaluatorFactory, TLcdOGCFilterContext)
insteadpopulateCapabilities
. If a factory can
handle a given expression, this should also be clear from the filter capabilities produced by this factory.aGenericExpression
- the expression to build an evaluator for, if possible.ILcdEvaluator
that can handle the
expression given.default boolean canBuildEvaluator(ILcdGenericExpression aGenericExpression, ILcdEvaluatorFactory aEvaluatorFactory, TLcdOGCFilterContext aContext)
populateCapabilities
. If a factory can
handle a given expression, this should also be clear from the filter capabilities produced by this factory.aGenericExpression
- the expression to build an evaluator for.aEvaluatorFactory
- the evaluator factory to use to build evaluators for sub-expressions, since an expression
may be composed of other expressions.aContext
- the context for which to create the evaluator. The context among others contains
a property retriever provider to determine how properties should be retrieved from (OGC) features.ILcdEvaluator
that can handle the
expression given.ILcdEvaluator buildEvaluator(ILcdGenericExpression aGenericExpression, ILcdEvaluatorFactory aEvaluatorFactory, TLcdOGCFilterContext aContext)
canBuildEvaluator
returned true.aGenericExpression
- the expression to build an evaluator for.aEvaluatorFactory
- the evaluator factory to use to build evaluators for sub-expressions, since an expression
may be composed of other expressions.aContext
- the context for which to create the evaluator. The context among others contains
a property retriever provider to determine how properties should be retrieved from (OGC) features.void populateCapabilities(TLcdOGCFilterCapabilities aFilterCapabilities)
canBuildEvaluator
should return true.aFilterCapabilities
- the filter capabilities in which to declare what kind of expressions can be evaluated.