deegree 2.2 (2008/12/22 11:33 build-3038-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:
06.08.2002
Author:
Markus Schneider

Constructor Summary
FeatureFilter()
           
FeatureFilter(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.
 ArrayList<FeatureId> getFeatureIds()
           
 StringBuffer toXML()
          Produces an indented 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(ArrayList<FeatureId> fids)
Method Detail

addFeatureId

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

Parameters:
featureId -

getFeatureIds

public 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 StringBuffer toXML()
Produces an indented XML representation of this object.

Specified by:
toXML in interface Filter
Specified by:
toXML in class AbstractFilter
Returns:
an XML representation of this object

deegree 2.2 (2008/12/22 11:33 build-3038-official)

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