Package org.geotools.filter.function
Class PropertyExistsFunction
- Object
-
- ExpressionAbstract
-
- DefaultExpression
-
- FunctionExpressionImpl
-
- PropertyExistsFunction
-
- All Implemented Interfaces:
Expression
,Function
,FunctionExpression
,Factory
public class PropertyExistsFunction extends FunctionExpressionImpl
A new function to check if a property exists.
-
-
Field Summary
Fields Modifier and Type Field Description static FunctionName
NAME
-
Fields inherited from class FunctionExpressionImpl
fallback, functionName, name, params
-
Fields inherited from interface Expression
NIL
-
-
Constructor Summary
Constructors Constructor Description PropertyExistsFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
evaluate(Object bean)
Subclass should override, default implementation returns null.Object
evaluate(SimpleFeature feature)
-
Methods inherited from class FunctionExpressionImpl
accept, equals, functionName, getExpression, getFallbackValue, getFunctionName, getImplementationHints, getName, getParameters, hashCode, setFallbackValue, setParameters, toString
-
Methods inherited from class DefaultExpression
isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpression
-
Methods inherited from class ExpressionAbstract
evaluate
-
Methods inherited from interface Expression
evaluate
-
-
-
-
Field Detail
-
NAME
public static FunctionName NAME
-
-
Method Detail
-
evaluate
public Object evaluate(SimpleFeature feature)
- Returns:
Boolean.TRUE
if thefeature
'sFeatureType
contains an attribute named as the property name passed as this function argument,Boolean.FALSE
otherwise.
-
evaluate
public Object evaluate(Object bean)
Description copied from class:ExpressionAbstract
Subclass should override, default implementation returns null.- Specified by:
evaluate
in interfaceExpression
- Overrides:
evaluate
in classFunctionExpressionImpl
- Returns:
Boolean.TRUE
if 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.FALSE
otherwise.
-
-