root / branches / Mobile_Compatible_Hito_1 / libFMap_data / src / org / gvsig / data / vectorial / filter / IsNullImpl.java @ 21563
History | View | Annotate | Download (1.25 KB)
1 |
/*
|
---|---|
2 |
* GeoTools - OpenSource mapping toolkit
|
3 |
* http://geotools.org
|
4 |
* (C) 2006, GeoTools Project Managment Committee (PMC)
|
5 |
*
|
6 |
* This library is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU Lesser General Public
|
8 |
* License as published by the Free Software Foundation;
|
9 |
* version 2.1 of the License.
|
10 |
*
|
11 |
* This library is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14 |
* Lesser General Public License for more details.
|
15 |
*/
|
16 |
package org.gvsig.data.vectorial.filter; |
17 |
|
18 |
import org.opengis.filter.FilterVisitor; |
19 |
import org.opengis.filter.PropertyIsNull; |
20 |
import org.opengis.filter.expression.Expression; |
21 |
|
22 |
public class IsNullImpl implements PropertyIsNull{ |
23 |
|
24 |
private Expression operand; |
25 |
|
26 |
public IsNullImpl(Expression expression) { |
27 |
operand = expression; |
28 |
} |
29 |
|
30 |
public boolean evaluate(Object feature) { |
31 |
return operand.evaluate(feature)== null; |
32 |
} |
33 |
|
34 |
public Object accept(FilterVisitor visitor, Object extraData) { |
35 |
return visitor.visit( this, extraData ); |
36 |
} |
37 |
|
38 |
public Expression getExpression() { |
39 |
return operand;
|
40 |
} |
41 |
|
42 |
} |