org.deegree.model.filterencoding
Class FeatureFilter
java.lang.Object
org.deegree.model.filterencoding.AbstractFilter
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 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FeatureFilter
public FeatureFilter()
FeatureFilter
public FeatureFilter(ArrayList<FeatureId> fids)
- Parameters:
fids
-
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
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org