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

org.deegree.model.filterencoding
Class PropertyIsInstanceOfOperation

java.lang.Object
  extended by org.deegree.model.filterencoding.AbstractOperation
      extended by org.deegree.model.filterencoding.ComparisonOperation
          extended by org.deegree.model.filterencoding.PropertyIsInstanceOfOperation
All Implemented Interfaces:
Operation

public class PropertyIsInstanceOfOperation
extends ComparisonOperation

deegree-specific ComparisonOperation that allows to check the type of a property.

This is useful if the property has an abstract type with several concrete implementations, for example 'gml:_Geometry'.

NOTE: Currently supported types to test are:

Version:
$Revision: 19319 $, $Date: 2009-08-25 09:17:13 +0200 (Di, 25. Aug 2009) $
Author:
Markus Schneider, last edited by: $Author: lbuesching $

Field Summary
 
Fields inherited from class org.deegree.model.filterencoding.AbstractOperation
operatorId
 
Constructor Summary
PropertyIsInstanceOfOperation(PropertyName propertyName, QualifiedName typeName)
          Creates a new instance of PropertyIsInstanceOfOperation.
 
Method Summary
static Operation buildFromDOM(Element element)
          Given a DOM-fragment, a corresponding Operation-object is built.
 boolean evaluate(Feature feature)
          Calculates the Operation's logical value based on the certain property values of the given feature.
 PropertyName getPropertyName()
           
 QualifiedName getTypeName()
           
 StringBuffer to100XML()
          Produces an XML representation of this object that complies to Filter Encoding specification 1.0.0.
 StringBuffer to110XML()
          Produces an XML representation of this object that complies to Filter Encoding specification 1.1.0.
 StringBuffer toXML()
          Produces an XML representation of this object.
 
Methods inherited from class org.deegree.model.filterencoding.ComparisonOperation
buildFromDOM
 
Methods inherited from class org.deegree.model.filterencoding.AbstractOperation
getOperatorId, getOperatorName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyIsInstanceOfOperation

public PropertyIsInstanceOfOperation(PropertyName propertyName,
                                     QualifiedName typeName)
Creates a new instance of PropertyIsInstanceOfOperation.

Parameters:
propertyName -
typeName -
Method Detail

toXML

public StringBuffer toXML()
Description copied from interface: Operation
Produces an XML representation of this object.

Returns:
an XML representation of this object.

to100XML

public StringBuffer to100XML()
Description copied from interface: Operation
Produces an XML representation of this object that complies to Filter Encoding specification 1.0.0.

Returns:
an XML representation of this object

to110XML

public StringBuffer to110XML()
Description copied from interface: Operation
Produces an XML representation of this object that complies to Filter Encoding specification 1.1.0.

Returns:
an XML representation of this object

evaluate

public boolean evaluate(Feature feature)
                 throws FilterEvaluationException
Calculates the Operation's logical value based on the certain property values of the given feature.

Parameters:
feature - that determines the values of PropertyNames in the expression
Returns:
true, if the Operation evaluates to true, else false
Throws:
FilterEvaluationException - if the evaluation fails

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 - to build from
Returns:
the Bean of the DOM
Throws:
FilterConstructionException - if the structure of the DOM-fragment is invalid

getPropertyName

public PropertyName getPropertyName()
Returns:
the propertyName of this Operation

getTypeName

public QualifiedName getTypeName()
Returns:
the typeName

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