public class PropertyExistsFunction extends FunctionExpressionImpl
Modifier and Type | Field and Description |
---|---|
static FunctionName |
NAME |
fallback, functionName, name, params
NIL
Constructor and Description |
---|
PropertyExistsFunction() |
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(Object bean)
Subclass should override, default implementation returns null.
|
Object |
evaluate(SimpleFeature feature) |
accept, equals, functionName, getExpression, getFallbackValue, getFunctionName, getImplementationHints, getName, getParameters, hashCode, setFallbackValue, setParameters, toString
isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpression
evaluate
evaluate
public static FunctionName NAME
public Object evaluate(SimpleFeature feature)
Boolean.TRUE
if the feature
's FeatureType
contains an
attribute named as the property name passed as this function argument, Boolean.FALSE
otherwise.public Object evaluate(Object bean)
ExpressionAbstract
evaluate
in interface Expression
evaluate
in class FunctionExpressionImpl
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.Copyright © 1996–2023 Geotools. All rights reserved.