root / branches / v2_0_0_prep / libraries / libFMap_dal / src / org / gvsig / fmap / dal / feature / impl / featureSet / EditedFilteredIterator.java @ 24496
History | View | Annotate | Download (679 Bytes)
1 |
package org.gvsig.fmap.dal.feature.impl.featureSet; |
---|---|
2 |
|
3 |
import org.gvsig.fmap.dal.exceptions.DataEvaluatorException; |
4 |
import org.gvsig.fmap.dal.exceptions.DataException; |
5 |
import org.gvsig.fmap.dal.feature.impl.DefaultFeature; |
6 |
import org.gvsig.tools.evaluator.EvaluatorException; |
7 |
|
8 |
|
9 |
public class EditedFilteredIterator extends EditedIterator { |
10 |
|
11 |
EditedFilteredIterator(DefaultFeatureSet fset, long index)
|
12 |
throws DataException {
|
13 |
super(fset, index);
|
14 |
} |
15 |
|
16 |
public boolean match(DefaultFeature feature) throws DataException { |
17 |
try {
|
18 |
return ((Boolean) this.filter.evaluate(feature)).booleanValue(); |
19 |
} catch (EvaluatorException e) {
|
20 |
throw new DataEvaluatorException(e); |
21 |
} |
22 |
} |
23 |
|
24 |
} |