Package com.luciad.models.features
Class FeatureExpressionEvaluatorFactory
java.lang.Object
com.luciad.models.features.FeatureExpressionEvaluatorFactory
Factory to create an evaluator for expressions to be applied on
Feature
instances.-
Method Summary
Modifier and TypeMethodDescriptionstatic FeatureExpressionEvaluator
Returns an evaluator that always returnstrue
static FeatureExpressionEvaluator
createEvaluator
(Expression expression) Create an evaluator for the given expression.static FeatureExpressionEvaluator
createEvaluator
(FeatureQuery query) Create an evaluator for the given query.static FeatureExpressionEvaluator
createEvaluator
(List<Long> featureIds) Returns returns an evaluator that only accepts features that are contained in the given list of feature id's.
-
Method Details
-
createEvaluator
Create an evaluator for the given expression.- Parameters:
expression
- the expression for which an evaluator is needed.- Returns:
- the evaluator for the expression.
-
createEvaluator
Create an evaluator for the given query.This method only takes the Query::getBounds() and the Query::getCondition() methods into account.
- Parameters:
query
- the query for which an evaluator is needed.- Returns:
- the evaluator for the expression.
-
createEvaluator
Returns returns an evaluator that only accepts features that are contained in the given list of feature id's.- Parameters:
featureIds
- a list of feature id's- Returns:
- returns an evaluator that only accepts features that are contained in the given list of feature id's
-
createAlwaysAcceptEvaluator
Returns an evaluator that always returnstrue
- Returns:
- an evaluator that always returns
true
-