org.geotools.text.filter
Class FilterBuilder

Object
  extended by FilterBuilder

Deprecated. use the CQL utility class instead, this one is going to be set to package visibility

public class FilterBuilder
extends Object

FilterBuilder (the original name was ExpressionBuilder) is the main entry point for parsing Filters from the language.

This class was extended to generate semantic actions for all the CQL production rules.

Aditionaly refactoring was done in order to adapt the products to the new GeoAPI filter interfaces, targeting Filter 1.1.0.

CQL is an acronym for OGC Common Query Language, a query predicate language whose syntax is similar to a SQL WHERE clause, defined in clause 6.2.2 of the OGC Catalog Service for Web, version 2.0.1 implementation specification.

Usage

This class provides two methods, parse(String) and parse(org.opengis.filter.FilterFactory, String),

Since:
2.4
Author:
Created by: Ian Schneider, Extended by: Mauricio Pazos - Axios Engineering, Extended by: Gabriel Roldan - Axios Engineering
Module:
trunk/gt/modules   (gt-modules.jar) (Maven report) (SVN head)

Constructor Summary
FilterBuilder()
          Deprecated.  
 
Method Summary
static String getFormattedErrorMessage(ParseException pe, String input)
          Deprecated. Returns a formatted error string, showing the original input, along with a pointer to the location of the error and the error message itself.
static void main(String[] args)
          Deprecated.  
static Filter parse(FilterFactory filterFactory, String input)
          Deprecated. Parses the input string in OGC CQL format into a Filter, using the provided FilterFactory.
static Filter parse(String input)
          Deprecated. Parses the input string in OGC CQL format into a Filter, using the systems default FilterFactory implementation.
static Expression parseExpression(FilterFactory filterFactory, String input)
          Deprecated. Parses the input string in OGC CQL format into an Expression, using the provided FilterFactory.
static Expression parseExpression(String input)
          Deprecated. Parses the input string in OGC CQL format into an Expression, using the systems default FilterFactory implementation.
static List parseFilterList(FilterFactory2 filterFactory, String input)
          Deprecated. Parses the input string in OGC CQL format into a Filter.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterBuilder

public FilterBuilder()
Deprecated. 
Method Detail

parse

public static Filter parse(FilterFactory filterFactory,
                           String input)
                    throws ParseException
Deprecated. 
Parses the input string in OGC CQL format into a Filter, using the provided FilterFactory.

Parameters:
filterFactory - the FilterFactory to use for the creation of the Filter. If it is null the method finds the default implementation.
input - a string containing a query predicate in OGC CQL format.
Returns:
a Filter equivalent to the constraint specified in input.
Throws:
ParseException

parseFilterList

public static List parseFilterList(FilterFactory2 filterFactory,
                                   String input)
                            throws ParseException
Deprecated. 
Parses the input string in OGC CQL format into a Filter.

Parameters:
filterFactory - the FilterFactory to use for the creation of the Expression. If it is null the method finds the default implementation.
input - a string containing a query predicate in OGC CQL format. If it is null the method finds the default implementation.
Returns:
Throws:
ParseException

parse

public static Filter parse(String input)
                    throws ParseException
Deprecated. 
Parses the input string in OGC CQL format into a Filter, using the systems default FilterFactory implementation.

Parameters:
input - a string containing a query predicate in OGC CQL format.
Returns:
a Filter equivalent to the constraint specified in input.
Throws:
ParseException

parseExpression

public static Expression parseExpression(FilterFactory filterFactory,
                                         String input)
                                  throws ParseException
Deprecated. 
Parses the input string in OGC CQL format into an Expression, using the provided FilterFactory.

Parameters:
filterFactory - the FilterFactory to use for the creation of the Expression. If it is null the method finds the default implementation.
input - a string containing a OGC CQL expression.
Returns:
a Filter equivalent to the constraint specified in input.
Throws:
ParseException

parseExpression

public static Expression parseExpression(String input)
                                  throws ParseException
Deprecated. 
Parses the input string in OGC CQL format into an Expression, using the systems default FilterFactory implementation.

Parameters:
input - a string containing an OGC CQL expression.
Returns:
a Expression equivalent to the one specified in input.
Throws:
ParseException

getFormattedErrorMessage

public static String getFormattedErrorMessage(ParseException pe,
                                              String input)
Deprecated. 
Returns a formatted error string, showing the original input, along with a pointer to the location of the error and the error message itself.


main

public static final void main(String[] args)
                       throws Exception
Deprecated. 
Throws:
Exception


Copyright © 1996-2009 Geotools. All Rights Reserved.