org.deegree.filter.spatial
Class Contains

java.lang.Object
  extended by org.deegree.filter.spatial.SpatialOperator
      extended by org.deegree.filter.spatial.Contains
All Implemented Interfaces:
Operator

public class Contains
extends SpatialOperator

If a geometry is spatially contained in an other geometry.

Version:
$Revision:$, $Date:$
Author:
Markus Schneider , last edited by: $Author:$

Nested Class Summary
 
Nested classes/interfaces inherited from class org.deegree.filter.spatial.SpatialOperator
SpatialOperator.SubType
 
Nested classes/interfaces inherited from interface org.deegree.filter.Operator
Operator.Type
 
Field Summary
 
Fields inherited from class org.deegree.filter.spatial.SpatialOperator
propName
 
Constructor Summary
Contains(Expression param1, Geometry param2)
           
 
Method Summary
<T> boolean
evaluate(T obj, XPathEvaluator<T> xpathEvaluator)
          Determines the value of the boolean operator.
 Geometry getGeometry()
           
 Object[] getParams()
           
 String toString(String indent)
           
 
Methods inherited from class org.deegree.filter.spatial.SpatialOperator
checkGeometryOrNull, getCompatibleGeometry, getParam1, getPropName, getSubType, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Contains

public Contains(Expression param1,
                Geometry param2)
Method Detail

evaluate

public <T> boolean evaluate(T obj,
                            XPathEvaluator<T> xpathEvaluator)
                 throws FilterEvaluationException
Description copied from interface: Operator
Determines the value of the boolean operator.

Type Parameters:
T - type of the context object
Parameters:
obj - object that the operator is evaluated upon, must not be null
xpathEvaluator - used for evaluation of XPath expressions, must not be null
Returns:
true, if the operator evaluates to true, false otherwise
Throws:
FilterEvaluationException - if the evaluation fails

getGeometry

public Geometry getGeometry()
Returns:
the geometry

toString

public String toString(String indent)

getParams

public Object[] getParams()
Specified by:
getParams in class SpatialOperator


Copyright © 2011. All Rights Reserved.