Search in sources :

Example 6 with BinaryComparisonOpType

use of net.opengis.fes.x20.BinaryComparisonOpType in project ddf by codice.

the class CswFilterFactory method createPropertyIsLessThanOrEqualTo.

private JAXBElement<BinaryComparisonOpType> createPropertyIsLessThanOrEqualTo(String propertyName, Object literal) {
    BinaryComparisonOpType propertyIsLessThanAOrEqualTo = new BinaryComparisonOpType();
    propertyIsLessThanAOrEqualTo.getExpression().add(createPropertyNameType(Arrays.asList(new Object[] { propertyName })));
    propertyIsLessThanAOrEqualTo.getExpression().add(createLiteralType(literal));
    return filterObjectFactory.createPropertyIsLessThanOrEqualTo(propertyIsLessThanAOrEqualTo);
}
Also used : BinaryComparisonOpType(net.opengis.filter.v_1_1_0.BinaryComparisonOpType)

Example 7 with BinaryComparisonOpType

use of net.opengis.fes.x20.BinaryComparisonOpType in project ddf by codice.

the class CswFilterFactory method createPropertyIsNotEqualTo.

private JAXBElement<BinaryComparisonOpType> createPropertyIsNotEqualTo(String propertyName, Object literal, boolean isCaseSensitive) {
    BinaryComparisonOpType propertyIsNotEqualTo = new BinaryComparisonOpType();
    propertyIsNotEqualTo.setMatchCase(isCaseSensitive);
    propertyIsNotEqualTo.getExpression().add(createPropertyNameType(Arrays.asList(new Object[] { propertyName })));
    propertyIsNotEqualTo.getExpression().add(createLiteralType(literal));
    return filterObjectFactory.createPropertyIsNotEqualTo(propertyIsNotEqualTo);
}
Also used : BinaryComparisonOpType(net.opengis.filter.v_1_1_0.BinaryComparisonOpType)

Example 8 with BinaryComparisonOpType

use of net.opengis.fes.x20.BinaryComparisonOpType in project ddf by codice.

the class CswFilterFactory method createPropertyIsGreaterThanOrEqualTo.

private JAXBElement<BinaryComparisonOpType> createPropertyIsGreaterThanOrEqualTo(String propertyName, Object literal) {
    BinaryComparisonOpType propertyIsGreaterThanAOrEqualTo = new BinaryComparisonOpType();
    propertyIsGreaterThanAOrEqualTo.getExpression().add(createPropertyNameType(Arrays.asList(new Object[] { propertyName })));
    propertyIsGreaterThanAOrEqualTo.getExpression().add(createLiteralType(literal));
    return filterObjectFactory.createPropertyIsGreaterThanOrEqualTo(propertyIsGreaterThanAOrEqualTo);
}
Also used : BinaryComparisonOpType(net.opengis.filter.v_1_1_0.BinaryComparisonOpType)

Example 9 with BinaryComparisonOpType

use of net.opengis.fes.x20.BinaryComparisonOpType in project ddf by codice.

the class CswFilterFactory method createPropertyIsLessThan.

private JAXBElement<BinaryComparisonOpType> createPropertyIsLessThan(String propertyName, Object literal) {
    BinaryComparisonOpType propertyIsLessThan = new BinaryComparisonOpType();
    propertyIsLessThan.getExpression().add(createPropertyNameType(Arrays.asList(new Object[] { propertyName })));
    propertyIsLessThan.getExpression().add(createLiteralType(literal));
    return filterObjectFactory.createPropertyIsLessThan(propertyIsLessThan);
}
Also used : BinaryComparisonOpType(net.opengis.filter.v_1_1_0.BinaryComparisonOpType)

Example 10 with BinaryComparisonOpType

use of net.opengis.fes.x20.BinaryComparisonOpType in project ddf by codice.

the class CswFilterFactory method createPropertyIsEqualTo.

private JAXBElement<BinaryComparisonOpType> createPropertyIsEqualTo(String propertyName, Object literal, boolean isCaseSensitive) {
    BinaryComparisonOpType propertyIsEqualTo = new BinaryComparisonOpType();
    propertyIsEqualTo.setMatchCase(isCaseSensitive);
    propertyIsEqualTo.getExpression().add(createPropertyNameType(Arrays.asList(new Object[] { propertyName })));
    propertyIsEqualTo.getExpression().add(createLiteralType(literal));
    return filterObjectFactory.createPropertyIsEqualTo(propertyIsEqualTo);
}
Also used : BinaryComparisonOpType(net.opengis.filter.v_1_1_0.BinaryComparisonOpType)

Aggregations

BinaryComparisonOpType (net.opengis.filter.v_1_1_0.BinaryComparisonOpType)11 Test (org.junit.Test)5 Ignore (org.junit.Ignore)3 BinaryComparisonOpType (net.opengis.fes.x20.BinaryComparisonOpType)1 FilterDocument (net.opengis.fes.x20.FilterDocument)1 FilterType (net.opengis.fes.x20.FilterType)1 LiteralType (net.opengis.fes.x20.LiteralType)1 PropertyIsEqualToDocument (net.opengis.fes.x20.PropertyIsEqualToDocument)1 LiteralType (net.opengis.filter.v_1_1_0.LiteralType)1 PropertyNameType (net.opengis.filter.v_1_1_0.PropertyNameType)1 BinaryComparisonOpType (net.opengis.filter.v_2_0_0.BinaryComparisonOpType)1 PropertyIsLikeType (net.opengis.filter.v_2_0_0.PropertyIsLikeType)1 BinaryComparisonOpType (ogc.schema.opengis.filter.v_1_0_0.BinaryComparisonOpType)1 PropertyIsLikeType (ogc.schema.opengis.filter.v_1_0_0.PropertyIsLikeType)1 XmlString (org.apache.xmlbeans.XmlString)1 ComparisonFilter (org.n52.shetland.ogc.filter.ComparisonFilter)1