Package org.geotools.filter.function
Class Collection_BoundsFunction
- Object
-
- ExpressionAbstract
-
- DefaultExpression
-
- FunctionExpressionImpl
-
- Collection_BoundsFunction
-
- All Implemented Interfaces:
Expression
,Function
,FunctionExpression
,Factory
public class Collection_BoundsFunction extends FunctionExpressionImpl
Calculates the bounds of an attribute for a given FeatureCollection and Expression.- Since:
- 2.2M2
- Author:
- Cory Horner
-
-
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 Collection_BoundsFunction()
Creates a new instance of Collection_BoundsFunction
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
evaluate(Object feature)
Subclass should override, default implementation returns null.void
setExpression(Expression e)
void
setParameters(List<Expression> args)
The provided arguments are evaulated with respect to the FeatureCollection.-
Methods inherited from class FunctionExpressionImpl
accept, equals, functionName, getExpression, getFallbackValue, getFunctionName, getImplementationHints, getName, getParameters, hashCode, setFallbackValue, 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
-
setExpression
public void setExpression(Expression e)
-
setParameters
public void setParameters(List<Expression> args)
The provided arguments are evaulated with respect to the FeatureCollection.For an aggregate function (like unique) please use the WFS mandated XPath syntax to refer to featureMember content.
To refer to all 'X':
featureMember/asterisk/X
- Specified by:
setParameters
in interfaceFunctionExpression
- Overrides:
setParameters
in classFunctionExpressionImpl
- Parameters:
args
- Function parameters- Throws:
IllegalArgumentException
- If parameters do not match FunctionName
-
evaluate
public Object evaluate(Object feature)
Description copied from class:ExpressionAbstract
Subclass should override, default implementation returns null.- Specified by:
evaluate
in interfaceExpression
- Overrides:
evaluate
in classFunctionExpressionImpl
- Returns:
- default implementation returns null
-
-