Package org.geootols.filter.text.cql_2
Class CQL2
Object
CQL2
OGC API CQL2. This class presents the operations available to parse the CQL2 language and generates the
correspondent filter.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringtoCQL2(Expression expression) Generates the expression text associated to theExpressionobject.static StringGenerates the CQL2 predicate associated to theFilterobject.static ExpressiontoExpression(String cql2Expression) Parses the input string in CQL2 format into an Expression, using the systems defaultFilterFactoryimplementation.static ExpressiontoExpression(String cql2Expression, FilterFactory filterFactory) Parses the input string in CQL2 format and makes the correspondent Expression , using the provided FilterFactory.static FilterParses the input string in CQL2 format into a Filter, using the systems default FilterFactory implementation.static FiltertoFilter(String cql2Predicate, FilterFactory filterFactory) Parses the input string in CQL2 format into a Filter, using the provided FilterFactory.
-
Method Details
-
toFilter
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
Filterequivalent 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- theFilterFactoryto use for the creation of the Filter. If it is null the method finds the default implementation.- Returns:
- a
Filterequivalent to the constraint specified inPredicate. - Throws:
CQLException
-
toExpression
Parses the input string in CQL2 format into an Expression, using the systems defaultFilterFactoryimplementation.- Parameters:
cql2Expression- a string containing an CQL2 expression.- Returns:
- a
Expressionequivalent 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- theFilterFactoryto use for the creation of the Expression. If it is null the method finds the default implementation.- Returns:
- a
Filterequivalent to the constraint specified incql2Expression. - Throws:
CQLException
-
toCQL2
Generates the CQL2 predicate associated to theFilterobject.- Returns:
- CQL2 predicate
-
toCQL2
Generates the expression text associated to theExpressionobject.- Returns:
- expression as text
-