deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.model.filterencoding
Class FilterTools

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

public class FilterTools
extends java.lang.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 java.lang.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 java.util.List<PropertyPath> extractPropertyPaths(Expression expression, java.util.List<PropertyPath> list)
          returns all PropertyPath definitions from the passed Expression
static java.util.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 java.lang.Object[] extractFirstBBOX(ComplexFilter filter)
                                           throws java.lang.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:
java.lang.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 java.util.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 java.util.List<PropertyPath> extractPropertyPaths(Expression expression,
                                                                java.util.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.5 (2011/06/29 09:44 build-8-official)

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