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

org.deegree.model.filterencoding
Class FeatureFilter

java.lang.Object
  extended by org.deegree.model.filterencoding.AbstractFilter
      extended by org.deegree.model.filterencoding.FeatureFilter
All Implemented Interfaces:
Filter

public class FeatureFilter
extends AbstractFilter

Encapsulates the information of a element that consists of a number of FeatureId constraints (only) (as defined in the FeatureId DTD).

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
FeatureFilter()
           
FeatureFilter(java.util.ArrayList<FeatureId> fids)
           
 
Method Summary
 void addFeatureId(FeatureId featureId)
          Adds a FeatureId constraint.
 boolean evaluate(Feature feature)
          Calculates the FeatureFilter's logical value based on the ID of the given Feature.
 java.util.ArrayList<FeatureId> getFeatureIds()
           
 java.lang.StringBuffer to100XML()
          Produces an XML representation of this object that complies to Filter Encoding specification 1.0.0.
 java.lang.StringBuffer to110XML()
          Produces an XML representation of this object that complies to Filter Encoding specification 1.1.0.
 java.lang.StringBuffer toXML()
          Produces an XML representation of this object.
 
Methods inherited from class org.deegree.model.filterencoding.AbstractFilter
buildFromDOM, buildFromDOM
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureFilter

public FeatureFilter()

FeatureFilter

public FeatureFilter(java.util.ArrayList<FeatureId> fids)
Parameters:
fids -
Method Detail

addFeatureId

public void addFeatureId(FeatureId featureId)
Adds a FeatureId constraint.

Parameters:
featureId -

getFeatureIds

public java.util.ArrayList<FeatureId> getFeatureIds()
Returns:
the contained FeatureIds.

evaluate

public boolean evaluate(Feature feature)
                 throws FilterEvaluationException
Calculates the FeatureFilter's logical value based on the ID of the given Feature. FIXME!!! Use a TreeSet (or something) to speed up comparison.

Parameters:
feature - that determines the Id
Returns:
true, if the FeatureFilter evaluates to true, else false
Throws:
FilterEvaluationException - if the evaluation fails

toXML

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

Returns:
an XML representation of this object

to100XML

public java.lang.StringBuffer to100XML()
Description copied from interface: Filter
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 java.lang.StringBuffer to110XML()
Description copied from interface: Filter
Produces an XML representation of this object that complies to Filter Encoding specification 1.1.0.

Returns:
an XML representation of this object

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