use of org.geotoolkit.ogc.xml.v100.BinaryComparisonOpType in project ddf by codice.
the class CswFilterFactory method createPropertyIsEqualTo.
public FilterType createPropertyIsEqualTo(String functionName, List<? extends JAXBElement<?>> expressions, Object literal) {
FunctionType function = new FunctionType();
function.setName(functionName);
function.getExpression().addAll(expressions);
FilterType filter = new FilterType();
BinaryComparisonOpType propertyIsEqualTo = new BinaryComparisonOpType();
propertyIsEqualTo.getExpression().add(filterObjectFactory.createFunction(function));
propertyIsEqualTo.getExpression().add(createLiteralType(literal));
filter.setComparisonOps(filterObjectFactory.createPropertyIsEqualTo(propertyIsEqualTo));
return filter;
}
use of org.geotoolkit.ogc.xml.v100.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);
}
use of org.geotoolkit.ogc.xml.v100.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);
}
use of org.geotoolkit.ogc.xml.v100.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);
}
use of org.geotoolkit.ogc.xml.v100.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);
}
Aggregations