use of org.oasis_open.docs.wsn.b_2.FilterType in project ddf by codice.
the class TestCswFilterDelegate method testPropertyIsGreaterThanOrEqualToFloatLiteral.
@Test
public void testPropertyIsGreaterThanOrEqualToFloatLiteral() throws JAXBException, SAXException, IOException {
FilterType filterType = cswFilterDelegateLatLon.propertyIsGreaterThanOrEqualTo(propertyName, floatLiteral);
assertXMLEqual(propertyIsGreaterThanOrEqualToXmlWithDecimal, getXmlFromMarshaller(filterType));
}
use of org.oasis_open.docs.wsn.b_2.FilterType in project ddf by codice.
the class TestCswFilterDelegate method testPropertyIsNotEqualToStringLiteralAnyText.
@Test
public void testPropertyIsNotEqualToStringLiteralAnyText() throws JAXBException, SAXException, IOException {
FilterType filterType = cswFilterDelegateLatLon.propertyIsNotEqualTo(propertyNameAnyText, stringLiteral, isCaseSensitive);
assertXMLEqual(propertyIsNotEqualToXmlAnyText, getXmlFromMarshaller(filterType));
}
use of org.oasis_open.docs.wsn.b_2.FilterType in project ddf by codice.
the class TestCswFilterDelegate method testPropertyIsEqualToIntLiteral.
@Test
public void testPropertyIsEqualToIntLiteral() throws JAXBException, SAXException, IOException {
FilterType filterType = cswFilterDelegateLatLon.propertyIsEqualTo(propertyName, intLiteral);
assertXMLEqual(propertyIsEqualToXml, getXmlFromMarshaller(filterType));
}
use of org.oasis_open.docs.wsn.b_2.FilterType in project ddf by codice.
the class TestCswFilterDelegate method testOrEmptyFilter.
@Test
public void testOrEmptyFilter() {
FilterType propertyIsLikeFilter = cswFilterDelegateLatLon.propertyIsLike(propertyName, likeLiteral, isCaseSensitive);
List<FilterType> filters = new ArrayList<>();
filters.add(new FilterType());
filters.add(propertyIsLikeFilter);
FilterType filter = cswFilterDelegateLatLon.or(filters);
assertThat(filter.getComparisonOps(), notNullValue());
assertThat(filter.getLogicOps(), nullValue());
}
use of org.oasis_open.docs.wsn.b_2.FilterType in project ddf by codice.
the class TestCswFilterDelegate method testFeatureIdAndComparisonOpsOr.
@Test(expected = UnsupportedOperationException.class)
public void testFeatureIdAndComparisonOpsOr() throws JAXBException, SAXException, IOException {
ObjectFactory filterObjectFactory = new ObjectFactory();
FeatureIdType fidType = new FeatureIdType();
fidType.setFid("cswRecord.1234");
List<JAXBElement<? extends AbstractIdType>> fidFilters = new ArrayList<>();
fidFilters.add(filterObjectFactory.createFeatureId(fidType));
FilterType idFilter = new FilterType();
idFilter.setId(fidFilters);
FilterType propertyIsLikeFilter = cswFilterDelegateLatLon.propertyIsLike(propertyName, likeLiteral, isCaseSensitive);
List<FilterType> filterList = new ArrayList<>();
filterList.add(idFilter);
filterList.add(propertyIsLikeFilter);
cswFilterDelegateLatLon.or(filterList);
}
Aggregations