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:
- 06.08.2002
- Author:
- Markus Schneider
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)
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
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net