This package contains the implementation of a CQL parser and a number of utility classes. CQL - Common Query Language - is described in the OGC OpenGIS Catalogue Services Specification.
Our implementation does implement the described CQL syntax completely and may deviate in some places. This is mainly because the standard does not seems to be 100% finished and contains a few strange decisions.
A > 1 B >= 2 C < 3 D <= 4 E = 5 F <> 6
DateAttr BEFORE 2010-05-05T12:56:35 DateAttr AFTER 2010-11-05T12:56:35
A LIKE 'geo%tte' B NOT LIKE 'something%thing'
A EXISTS B DOES-NOT-EXIST
expr1 AND expr2 expr1 OR expr2 NOT expr
This package contains a SableCC-generated parser. While the parser classes are publicly accessible, most clients will not (want to) use them directly. The most important class is the CQL class. It contains methods to convert a CQL string into an executable filter. For example: import org.geolatte.core.expressions.Filter; Filter myFilter = CQL.toFilter("(A > 42)"); boolean passedFilter = myFilter.evaluate(anObject);