Package org.geotools.filter.function
Class PropertyExistsFunction
Object
ExpressionAbstract
DefaultExpression
FunctionExpressionImpl
PropertyExistsFunction
- All Implemented Interfaces:
Expression,Function,VolatileFunction,FunctionExpression,Factory
A new function to check if a property exists.
Volatile because the result depends on the feature (or bean) being evaluated, even when the property name is a constant: a filter/style simplifier must not fold it to a literal by evaluating it against a null feature.
-
Field Summary
FieldsFields inherited from class FunctionExpressionImpl
fallback, functionName, name, paramsFields inherited from interface Expression
NIL -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class FunctionExpressionImpl
accept, equals, functionName, getExpression, getFallbackValue, getFunctionName, getImplementationHints, getName, getParameters, hashCode, setFallbackValue, setParameters, toStringMethods inherited from class DefaultExpression
isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpressionMethods inherited from class ExpressionAbstract
evaluateMethods inherited from interface Expression
accept, evaluateMethods inherited from interface Function
getFallbackValue, getFunctionName, getName, getParameters
-
Field Details
-
NAME
-
-
Constructor Details
-
PropertyExistsFunction
public PropertyExistsFunction()
-
-
Method Details
-
evaluate
- Returns:
Boolean.TRUEif thefeature'sFeatureTypecontains an attribute named as the property name passed as this function argument,Boolean.FALSEotherwise.
-
evaluate
Description copied from class:ExpressionAbstractSubclass should override, default implementation returns null.- Specified by:
evaluatein interfaceExpression- Overrides:
evaluatein classFunctionExpressionImpl- Returns:
Boolean.TRUEif the Class of the object passed as argument defines a property names as the property name passed as this function argument, following the standard Java Beans naming conventions for getters.Boolean.FALSEotherwise.
-