Search in sources :

Example 16 with LogicalOperator

use of org.opengis.filter.LogicalOperator in project geotoolkit by Geomatys.

the class FilterReadingTest method testPropertyIsNotNull.

@Test
public void testPropertyIsNotNull() throws CQLException {
    final String cql = "att IS NOT NULL";
    Filter obj = CQL.parseFilter(cql);
    obj = ((LogicalOperator<Object>) obj).getOperands().get(0);
    assertEquals(FF.isNull(FF.property("att")), obj);
}
Also used : Filter(org.opengis.filter.Filter) LogicalOperator(org.opengis.filter.LogicalOperator) Test(org.junit.Test)

Aggregations

Filter (org.opengis.filter.Filter)16 LogicalOperator (org.opengis.filter.LogicalOperator)16 ValueReference (org.opengis.filter.ValueReference)12 Test (org.junit.Test)11 BinaryComparisonOperator (org.opengis.filter.BinaryComparisonOperator)11 Literal (org.opengis.filter.Literal)11 JAXBElement (javax.xml.bind.JAXBElement)9 List (java.util.List)6 Marshaller (javax.xml.bind.Marshaller)6 Unmarshaller (javax.xml.bind.Unmarshaller)6 Expression (org.opengis.filter.Expression)5 ArrayList (java.util.ArrayList)4 LiteralType (org.geotoolkit.ogc.xml.v100.LiteralType)4 LogicOpsType (org.geotoolkit.ogc.xml.v100.LogicOpsType)4 PropertyNameType (org.geotoolkit.ogc.xml.v100.PropertyNameType)4 BinaryComparisonOpType (org.geotoolkit.ogc.xml.v100.BinaryComparisonOpType)3 FilterType (org.geotoolkit.ogc.xml.v100.FilterType)3 LiteralType (org.geotoolkit.ogc.xml.v110.LiteralType)3 LogicOpsType (org.geotoolkit.ogc.xml.v110.LogicOpsType)3 PropertyNameType (org.geotoolkit.ogc.xml.v110.PropertyNameType)3