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 FunctionNameNAME-
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 Objectevaluate(Object bean)Subclass should override, default implementation returns null.Objectevaluate(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.TRUEif thefeature'sFeatureTypecontains an attribute named as the property name passed as this function argument,Boolean.FALSEotherwise.
-
evaluate
public Object evaluate(Object bean)
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.
-
-