deegree 2.3 (2010/04/09 10:10 build-4-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(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 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.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)
Parameters:
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()
Description copied from interface: Filter
Produces an XML representation of this object.

Returns:
an XML representation of this object

to100XML

public 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 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.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