@Api(allMethods=true)
public interface FeatureExpressionService
InternalFeature objects. Expressions are textual and expressed
in a language that depends on the specific implementation of this service. The default implementation uses the Spring
Expression Language (SpEL), but other implementations may be based on eg. Freemarker/Velocity templates or even a
custom language. As a minimal requirement, the language should be able to evaluate simple references to primitive
attribute values.| Modifier and Type | Method and Description |
|---|---|
Object |
evaluate(String expression,
InternalFeature feature)
Evaluates the specified expression for the specified feature.
|
void |
setVariables(Map<String,Object> variables)
Adds a map of variables to the expression context.
|
Object evaluate(String expression, InternalFeature feature) throws LayerException
expression - the expression to be evaluated (see class implementation)feature - the internal featureLayerException - expression was invalid or could not be evaluated on this featurevoid setVariables(Map<String,Object> variables)
variables - map of named variablesCopyright © 2015 Geosparc. All Rights Reserved.