root / branches / v2_0_0_prep / libraries / libFMap_dal / src / org / gvsig / fmap / dal / feature / impl / featureSet / FastEditedFilteredIterator.java @ 24496
History | View | Annotate | Download (710 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 |
public class FastEditedFilteredIterator extends FastEditedIterator { |
9 |
|
10 |
public FastEditedFilteredIterator(DefaultFeatureSet featureSet, long index) |
11 |
throws DataException {
|
12 |
super(featureSet, index);
|
13 |
} |
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 |
} |