org.deegree.model.filterencoding
Class PropertyIsBetweenOperation
java.lang.Object
  
org.deegree.model.filterencoding.AbstractOperation
      
org.deegree.model.filterencoding.ComparisonOperation
          
org.deegree.model.filterencoding.PropertyIsBetweenOperation
- All Implemented Interfaces: 
 - Operation
 
public class PropertyIsBetweenOperation
- extends ComparisonOperation
 
Encapsulates the information of a -element (as defined in
 Filter DTD).
- Version:
 
  - $Revision: 7916 $, $Date: 2007-08-06 14:23:58 +0200 (Mo, 06 Aug 2007) $
 
- Author:
 
  - Markus Schneider, last edited by: $Author: rbezema $
 
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
PropertyIsBetweenOperation
public PropertyIsBetweenOperation(PropertyName propertyName,
                                  Expression lowerBoundary,
                                  Expression upperBoundary)
- Parameters:
 propertyName - to check againstlowerBoundary - of the propertyupperBoundary - of the property
buildFromDOM
public static Operation buildFromDOM(Element element)
                              throws FilterConstructionException
- Given a DOM-fragment, a corresponding Operation-object is built. This
 method recursively calls other buildFromDOM () - methods to validate the
 structure of the DOM-fragment.
- Parameters:
 element - 
- Returns:
 - the propertyIsBetween operation
 - Throws:
 FilterConstructionException - if the structure of the DOM-fragment is invalid
 
 
getPropertyName
public PropertyName getPropertyName()
- Returns:
 - the name of the property that shall be compared to the boundaries
 
 
getLowerBoundary
public Expression getLowerBoundary()
- Returns:
 - the lower boundary of the operation as an Expression
 
 
getUpperBoundary
public Expression getUpperBoundary()
- Returns:
 - the upper boundary of the operation as an Expression
 
 
toXML
public StringBuffer toXML()
- Produces an indented XML representation of this object.
 
 
evaluate
public boolean evaluate(Feature feature)
                 throws FilterEvaluationException
- Calculates the PropertyIsBetween -Operation's logical value
 based on the certain property values of the given Feature.
 TODO: Improve datatype handling.
- Parameters:
 feature - that determines the property values
- Returns:
 - true, if the Operation evaluates to true, else false
 - Throws:
 FilterEvaluationException - if the evaluation fails
 
 
				an open source project founded by lat/lon, Bonn, Germany.
					For more information visit: http://deegree.sourceforge.net