Package org.geootols.filter.text.cql_2
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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
toCQL2(Expression expression)
Generates the expression text associated to theExpression
object.static String
toCQL2(Filter filter)
Generates the CQL2 predicate associated to theFilter
object.static Expression
toExpression(String cql2Expression)
Parses the input string in CQL2 format into an Expression, using the systems defaultFilterFactory
implementation.static Expression
toExpression(String cql2Expression, FilterFactory filterFactory)
Parses the input string in CQL2 format and makes the correspondent Expression , using the provided FilterFactory.static Filter
toFilter(String cql2Predicate)
Parses the input string in CQL2 format into a Filter, using the systems default FilterFactory implementation.static Filter
toFilter(String cql2Predicate, FilterFactory filterFactory)
Parses the input string in CQL2 format into a Filter, using the provided FilterFactory.
-
-
-
Method Detail
-
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 inCQL2
. - 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
- theFilterFactory
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 inPredicate
. - Throws:
CQLException
-
toExpression
public static Expression toExpression(String cql2Expression) throws CQLException
Parses the input string in CQL2 format into an Expression, using the systems defaultFilterFactory
implementation.- Parameters:
cql2Expression
- a string containing an CQL2 expression.- Returns:
- a
Expression
equivalent to the one specified incql2Expression
. - 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
- theFilterFactory
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 incql2Expression
. - Throws:
CQLException
-
toCQL2
public static String toCQL2(Filter filter)
Generates the CQL2 predicate associated to theFilter
object.- Returns:
- CQL2 predicate
-
toCQL2
public static String toCQL2(Expression expression)
Generates the expression text associated to theExpression
object.- Returns:
- expression as text
-
-