Package org.n52.shetland.ogc.filter
Class Filters
- java.lang.Object
-
- org.n52.shetland.ogc.filter.Filters
-
public final class Filters extends Object
Convenient methods for OGC FES filters.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BinaryLogicFilterand(Filter<?> left, Filter<?> right)Creates a newBinaryLogicFilter.static ComparisonFilterbetween(String property, String lower, String upper)Creates a newPropertyIsBetweenfilter.static ComparisonFiltereq(String property, String value)Creates a newPropertyIsEqualTofilter.static ComparisonFilterge(String property, String value)Creates a newPropertyIsGreaterThanOrEqualTofilter.static ComparisonFiltergt(String property, String value)Creates a newPropertyIsGreaterThanfilter.static ComparisonFilterisNil(String property)Creates a newPropertyIsNilfilter.static ComparisonFilterisNull(String property)Creates a newPropertyIsNullfilter.static ComparisonFilterle(String property, String value)Creates a newPropertyIsLessThanOrEqualTofilter.static ComparisonFilterlike(String property, String value)Creates a newPropertyIsLikefilter.static ComparisonFilterlt(String property, String value)Creates a newPropertyIsLessThanfilter.static ComparisonFilterne(String property, String value)Creates a newPropertyIsNotEqualTofilter.static UnaryLogicFilternot(Filter<?> filter)Creates a newBinaryLogicFilter.static BinaryLogicFilteror(Filter<?> left, Filter<?> right)Creates a newBinaryLogicFilter.
-
-
-
Method Detail
-
ge
public static ComparisonFilter ge(String property, String value)
Creates a newPropertyIsGreaterThanOrEqualTofilter.- Parameters:
property- the propertyvalue- the value- Returns:
- the filter
-
le
public static ComparisonFilter le(String property, String value)
Creates a newPropertyIsLessThanOrEqualTofilter.- Parameters:
property- the propertyvalue- the value- Returns:
- the filter
-
eq
public static ComparisonFilter eq(String property, String value)
Creates a newPropertyIsEqualTofilter.- Parameters:
property- the propertyvalue- the value- Returns:
- the filter
-
gt
public static ComparisonFilter gt(String property, String value)
Creates a newPropertyIsGreaterThanfilter.- Parameters:
property- the propertyvalue- the value- Returns:
- the filter
-
lt
public static ComparisonFilter lt(String property, String value)
Creates a newPropertyIsLessThanfilter.- Parameters:
property- the propertyvalue- the value- Returns:
- the filter
-
like
public static ComparisonFilter like(String property, String value)
Creates a newPropertyIsLikefilter.- Parameters:
property- the propertyvalue- the value- Returns:
- the filter
-
isNil
public static ComparisonFilter isNil(String property)
Creates a newPropertyIsNilfilter.- Parameters:
property- the property- Returns:
- the filter
-
isNull
public static ComparisonFilter isNull(String property)
Creates a newPropertyIsNullfilter.- Parameters:
property- the property- Returns:
- the filter
-
ne
public static ComparisonFilter ne(String property, String value)
Creates a newPropertyIsNotEqualTofilter.- Parameters:
property- the propertyvalue- the value- Returns:
- the filter
-
between
public static ComparisonFilter between(String property, String lower, String upper)
Creates a newPropertyIsBetweenfilter.- Parameters:
property- the propertylower- the lower boundaryupper- the upper boundary- Returns:
- the filter
-
and
public static BinaryLogicFilter and(Filter<?> left, Filter<?> right)
Creates a newBinaryLogicFilter.- Parameters:
left- the left operandright- the right operand- Returns:
- the filter
-
or
public static BinaryLogicFilter or(Filter<?> left, Filter<?> right)
Creates a newBinaryLogicFilter.- Parameters:
left- the left operandright- the right operand- Returns:
- the filter
-
not
public static UnaryLogicFilter not(Filter<?> filter)
Creates a newBinaryLogicFilter.- Parameters:
filter- the negated filter- Returns:
- the filter
-
-