Class Filters

java.lang.Object
org.n52.shetland.ogc.filter.Filters

public final class Filters extends Object
Convenient methods for OGC FES filters.
  • Method Details

    • ge

      public static ComparisonFilter ge(String property, String value)
      Creates a new PropertyIsGreaterThanOrEqualTo filter.
      Parameters:
      property - the property
      value - the value
      Returns:
      the filter
    • le

      public static ComparisonFilter le(String property, String value)
      Creates a new PropertyIsLessThanOrEqualTo filter.
      Parameters:
      property - the property
      value - the value
      Returns:
      the filter
    • eq

      public static ComparisonFilter eq(String property, String value)
      Creates a new PropertyIsEqualTo filter.
      Parameters:
      property - the property
      value - the value
      Returns:
      the filter
    • gt

      public static ComparisonFilter gt(String property, String value)
      Creates a new PropertyIsGreaterThan filter.
      Parameters:
      property - the property
      value - the value
      Returns:
      the filter
    • lt

      public static ComparisonFilter lt(String property, String value)
      Creates a new PropertyIsLessThan filter.
      Parameters:
      property - the property
      value - the value
      Returns:
      the filter
    • like

      public static ComparisonFilter like(String property, String value)
      Creates a new PropertyIsLike filter.
      Parameters:
      property - the property
      value - the value
      Returns:
      the filter
    • isNil

      public static ComparisonFilter isNil(String property)
      Creates a new PropertyIsNil filter.
      Parameters:
      property - the property
      Returns:
      the filter
    • isNull

      public static ComparisonFilter isNull(String property)
      Creates a new PropertyIsNull filter.
      Parameters:
      property - the property
      Returns:
      the filter
    • ne

      public static ComparisonFilter ne(String property, String value)
      Creates a new PropertyIsNotEqualTo filter.
      Parameters:
      property - the property
      value - the value
      Returns:
      the filter
    • between

      public static ComparisonFilter between(String property, String lower, String upper)
      Creates a new PropertyIsBetween filter.
      Parameters:
      property - the property
      lower - the lower boundary
      upper - the upper boundary
      Returns:
      the filter
    • and

      public static BinaryLogicFilter and(Filter<?> left, Filter<?> right)
      Creates a new BinaryLogicFilter.
      Parameters:
      left - the left operand
      right - the right operand
      Returns:
      the filter
    • or

      public static BinaryLogicFilter or(Filter<?> left, Filter<?> right)
      Creates a new BinaryLogicFilter.
      Parameters:
      left - the left operand
      right - the right operand
      Returns:
      the filter
    • not

      public static UnaryLogicFilter not(Filter<?> filter)
      Creates a new BinaryLogicFilter.
      Parameters:
      filter - the negated filter
      Returns:
      the filter