Search in sources :

Example 76 with FilterType

use of net.opengis.filter.v_2_0_0.FilterType in project ddf by codice.

the class TestCswCqlFilter method testPropertyIsNotEqualToIntLiteral.

@Test
public void testPropertyIsNotEqualToIntLiteral() throws UnsupportedQueryException {
    FilterType filterType = cswFilterDelegate.propertyIsNotEqualTo(propertyName, intLiteral);
    String cqlText = CswCqlTextFilter.getInstance().getCqlText(filterType);
    assertThat(propertyIsNotEqualTo, is(cqlText));
}
Also used : FilterType(net.opengis.filter.v_1_1_0.FilterType) Test(org.junit.Test)

Example 77 with FilterType

use of net.opengis.filter.v_2_0_0.FilterType in project ddf by codice.

the class TestCswCqlFilter method testPropertyIsGreaterThanDoubleLiteral.

@Test
public void testPropertyIsGreaterThanDoubleLiteral() throws UnsupportedQueryException {
    FilterType filterType = cswFilterDelegate.propertyIsGreaterThan(propertyName, doubleLiteral);
    String cqlText = CswCqlTextFilter.getInstance().getCqlText(filterType);
    assertThat(propertyIsGreaterThanWithDecimal, is(cqlText));
}
Also used : FilterType(net.opengis.filter.v_1_1_0.FilterType) Test(org.junit.Test)

Example 78 with FilterType

use of net.opengis.filter.v_2_0_0.FilterType in project ddf by codice.

the class TestCswCqlFilter method testPropertyIsLessThanOrEqualToShortLiteral.

@Test
public void testPropertyIsLessThanOrEqualToShortLiteral() throws UnsupportedQueryException {
    FilterType filterType = cswFilterDelegate.propertyIsLessThanOrEqualTo(propertyName, intLiteral);
    String cqlText = CswCqlTextFilter.getInstance().getCqlText(filterType);
    assertThat(propertyIsLessThanOrEqualTo, is(cqlText));
}
Also used : FilterType(net.opengis.filter.v_1_1_0.FilterType) Test(org.junit.Test)

Example 79 with FilterType

use of net.opengis.filter.v_2_0_0.FilterType in project ddf by codice.

the class TestCswCqlFilter method testPropertyIsGreaterThanIntLiteral.

@Test
public void testPropertyIsGreaterThanIntLiteral() throws UnsupportedQueryException {
    FilterType filterType = cswFilterDelegate.propertyIsGreaterThan(propertyName, intLiteral);
    String cqlText = CswCqlTextFilter.getInstance().getCqlText(filterType);
    assertThat(propertyIsGreaterThan, is(cqlText));
}
Also used : FilterType(net.opengis.filter.v_1_1_0.FilterType) Test(org.junit.Test)

Example 80 with FilterType

use of net.opengis.filter.v_2_0_0.FilterType in project ddf by codice.

the class TestCswCqlFilter method testIntersectsPropertyAnyGeo.

@Test
public void testIntersectsPropertyAnyGeo() throws UnsupportedQueryException {
    String propName = Metacard.ANY_GEO;
    FilterType filterType = cswFilterDelegate.intersects(propName, polygonWkt);
    String cqlText = CswCqlTextFilter.getInstance().getCqlText(filterType);
    assertThat(intersectsPolygonPropertyOwsBoundingBox, is(cqlText));
}
Also used : FilterType(net.opengis.filter.v_1_1_0.FilterType) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)212 FilterType (net.opengis.filter.v_1_1_0.FilterType)209 FilterType (net.opengis.filter.v_2_0_0.FilterType)58 ArrayList (java.util.ArrayList)50 JAXBElement (javax.xml.bind.JAXBElement)12 CswSourceConfiguration (org.codice.ddf.spatial.ogc.csw.catalog.common.CswSourceConfiguration)12 BinaryTemporalOpType (net.opengis.filter.v_2_0_0.BinaryTemporalOpType)11 FeatureAttributeDescriptor (org.codice.ddf.spatial.ogc.wfs.catalog.common.FeatureAttributeDescriptor)11 QName (javax.xml.namespace.QName)10 BinarySpatialOpType (net.opengis.filter.v_2_0_0.BinarySpatialOpType)10 LineString (com.vividsolutions.jts.geom.LineString)9 Date (java.util.Date)9 DistanceBufferType (net.opengis.filter.v_2_0_0.DistanceBufferType)9 UnaryLogicOpType (net.opengis.filter.v_2_0_0.UnaryLogicOpType)9 DateTime (org.joda.time.DateTime)8 Method (java.lang.reflect.Method)7 QueryConstraintType (net.opengis.cat.csw.v_2_0_2.QueryConstraintType)7 FilterCapabilities (net.opengis.filter.v_2_0_0.FilterCapabilities)7 TimePeriodType (net.opengis.gml.v_3_2_1.TimePeriodType)7 TimePositionType (net.opengis.gml.v_3_2_1.TimePositionType)7