use of org.geosdi.geoplatform.xml.filter.v110.FilterType in project ddf by codice.
the class TestCswFilterDelegate method testLogicOpsFiltersAnd.
@Test
public void testLogicOpsFiltersAnd() throws JAXBException, SAXException, IOException {
FilterType propertyIsLikeFilter = cswFilterDelegateLatLon.propertyIsLike(propertyName, likeLiteral, isCaseSensitive);
FilterType notFilter = cswFilterDelegateLatLon.not(propertyIsLikeFilter);
FilterType propertyIsEqualFilter = cswFilterDelegateLatLon.propertyIsEqualTo(propertyName, booleanLiteral);
List<FilterType> filters = new ArrayList<>();
filters.add(notFilter);
filters.add(propertyIsEqualFilter);
FilterType filterType = cswFilterDelegateLatLon.and(filters);
assertXMLEqual(andLogicOpsXml, getXmlFromMarshaller(filterType));
}
use of org.geosdi.geoplatform.xml.filter.v110.FilterType in project ddf by codice.
the class TestCswFilterDelegate method testIntersectsPropertyOwsBoundingBoxLineString.
@Test
public void testIntersectsPropertyOwsBoundingBoxLineString() throws JAXBException, SAXException, IOException {
String propName = CswConstants.BBOX_PROP;
FilterType filterType = cswFilterDelegateLatLon.intersects(propName, lineStringWkt);
assertXMLEqual(intersectsLineStringXmlPropertyOwsBoundingBox, getXmlFromMarshaller(filterType));
}
use of org.geosdi.geoplatform.xml.filter.v110.FilterType in project ddf by codice.
the class TestCswFilterDelegate method testPropertyIsNotEqualToStringLiteral.
/**
* Property is not equal to tests
*/
@Test
public void testPropertyIsNotEqualToStringLiteral() throws JAXBException, SAXException, IOException {
FilterType filterType = cswFilterDelegateLatLon.propertyIsNotEqualTo(propertyName, stringLiteral, isCaseSensitive);
assertXMLEqual(propertyIsNotEqualToXml, getXmlFromMarshaller(filterType));
}
use of org.geosdi.geoplatform.xml.filter.v110.FilterType in project ddf by codice.
the class TestCswFilterDelegate method testLogicOpsFiltersOr.
@Test
public void testLogicOpsFiltersOr() throws JAXBException, SAXException, IOException {
FilterType propertyIsLikeFilter = cswFilterDelegateLatLon.propertyIsLike(propertyName, likeLiteral, isCaseSensitive);
FilterType notFilter = cswFilterDelegateLatLon.not(propertyIsLikeFilter);
FilterType propertyIsEqualFilter = cswFilterDelegateLatLon.propertyIsEqualTo(propertyName, booleanLiteral);
List<FilterType> filters = new ArrayList<>();
filters.add(notFilter);
filters.add(propertyIsEqualFilter);
FilterType filterType = cswFilterDelegateLatLon.or(filters);
assertXMLEqual(orLogicOpsXml, getXmlFromMarshaller(filterType));
}
use of org.geosdi.geoplatform.xml.filter.v110.FilterType in project ddf by codice.
the class TestCswFilterDelegate method testPropertyIsNotEqualToDoubleLiteral.
@Test
public void testPropertyIsNotEqualToDoubleLiteral() throws JAXBException, SAXException, IOException {
FilterType filterType = cswFilterDelegateLatLon.propertyIsNotEqualTo(propertyName, doubleLiteral);
assertXMLEqual(propertyIsNotEqualToXmlWithDecimal, getXmlFromMarshaller(filterType));
}
Aggregations