Class CQL2

Object
CQL2

public class CQL2 extends Object
OGC API CQL2. This class presents the operations available to parse the CQL2 language and generates the correspondent filter.

  • Method Details

    • toFilter

      public static Filter toFilter(String cql2Predicate) throws CQLException
      Parses the input string in CQL2 format into a Filter, using the systems default FilterFactory implementation.
      Parameters:
      cql2Predicate - a string containing a query predicate in CQL format.
      Returns:
      a Filter equivalent to the constraint specified in CQL2 .
      Throws:
      CQLException
    • toFilter

      public static Filter toFilter(String cql2Predicate, FilterFactory filterFactory) throws CQLException
      Parses the input string in CQL2 format into a Filter, using the provided FilterFactory.
      Parameters:
      cql2Predicate - a string containing a query predicate in CQL2 format.
      filterFactory - the FilterFactory to use for the creation of the Filter. If it is null the method finds the default implementation.
      Returns:
      a Filter equivalent to the constraint specified in Predicate.
      Throws:
      CQLException
    • toExpression

      public static Expression toExpression(String cql2Expression) throws CQLException
      Parses the input string in CQL2 format into an Expression, using the systems default FilterFactory implementation.
      Parameters:
      cql2Expression - a string containing an CQL2 expression.
      Returns:
      a Expression equivalent to the one specified in cql2Expression.
      Throws:
      CQLException
    • toExpression

      public static Expression toExpression(String cql2Expression, FilterFactory filterFactory) throws CQLException
      Parses the input string in CQL2 format and makes the correspondent Expression , using the provided FilterFactory.
      Parameters:
      cql2Expression - a string containing a CQL2 expression.
      filterFactory - the FilterFactory to use for the creation of the Expression. If it is null the method finds the default implementation.
      Returns:
      a Filter equivalent to the constraint specified in cql2Expression .
      Throws:
      CQLException
    • toCQL2

      public static String toCQL2(Filter filter)
      Generates the CQL2 predicate associated to the Filter object.
      Returns:
      CQL2 predicate
    • toCQL2

      public static String toCQL2(Expression expression)
      Generates the expression text associated to the Expression object.
      Returns:
      expression as text