deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.model.filterencoding
Class FilterTools

java.lang.Object
  extended by org.deegree.model.filterencoding.FilterTools

public class FilterTools
extends Object

Since:
2.0
Version:
$Revision: 18195 $, 1.0. $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Andreas Poth, last edited by: $Author: mschneider $

Constructor Summary
FilterTools()
           
 
Method Summary
static Object[] extractFirstBBOX(ComplexFilter filter)
          Traverses the Filter -tree and returns the first BBOX-Operation that is found and a Filter that is equal to the given one minus the BBOX-Operation.
static List<PropertyPath> extractPropertyPaths(Expression expression, List<PropertyPath> list)
          returns all PropertyPath definitions from the passed Expression
static List<PropertyPath> extractPropertyPaths(Filter filter)
          returns all PropertyPath definitions from the passed Filter
static SpatialOperation[] extractSpatialFilter(ComplexFilter filter)
          Traverses the Filter -tree and returns all spatial filter operations.
static Envelope firstBBOX(ComplexFilter filter)
          Traverses the Filter -tree and returns the first BBOX-Operation that is found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterTools

public FilterTools()
Method Detail

extractFirstBBOX

public static Object[] extractFirstBBOX(ComplexFilter filter)
                                 throws Exception
Traverses the Filter -tree and returns the first BBOX-Operation that is found and a Filter that is equal to the given one minus the BBOX-Operation.

Parameters:
filter - search starts here
Returns:
[0]: Envelope (BBOX), [1]: Filter
Throws:
Exception

firstBBOX

public static Envelope firstBBOX(ComplexFilter filter)
Traverses the Filter -tree and returns the first BBOX-Operation that is found. Be aware of some limitations, using a shape datastore, only very simple filters are supported, joins with or, and not are not supported.

Parameters:
filter - search starts here
Returns:
the first found bbox or null if no bbox was found.

extractSpatialFilter

public static SpatialOperation[] extractSpatialFilter(ComplexFilter filter)
Traverses the Filter -tree and returns all spatial filter operations. Their logical relationships are ignored, because within the intended target context, only AND operations are possible.

Parameters:
filter - search starts here
Returns:
Filter-array

extractPropertyPaths

public static List<PropertyPath> extractPropertyPaths(Filter filter)
                                               throws PropertyPathResolvingException
returns all PropertyPath definitions from the passed Filter

Parameters:
filter -
Returns:
all PropertyPath definitions from the passed Filter
Throws:
PropertyPathResolvingException
See Also:
PropertyPath, Filter

extractPropertyPaths

public static List<PropertyPath> extractPropertyPaths(Expression expression,
                                                      List<PropertyPath> list)
                                               throws PropertyPathResolvingException
returns all PropertyPath definitions from the passed Expression

Parameters:
expression -
list -
Returns:
all PropertyPath definitions from the passed Expression
Throws:
PropertyPathResolvingException
See Also:
PropertyPath, Expression

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org