org.geotools.filter
Class ExpressionBuilder

java.lang.Object
  extended byorg.geotools.filter.ExpressionBuilder

public class ExpressionBuilder
extends java.lang.Object

ExpressionBuilder is the main entry point for parsing Expressions and Filters from a non-xml language.

Version:
GeoTools 2.2 Revised to take a FilterFactory.
Author:
Ian Schneider

Constructor Summary
ExpressionBuilder()
           
ExpressionBuilder(FilterFactory factory)
           
 
Method Summary
static java.lang.String getFormattedErrorMessage(org.geotools.filter.parser.ParseException pe, java.lang.String input)
          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(java.lang.String[] args)
           
static java.lang.Object parse(FeatureType schema, java.lang.String input)
          Deprecated. please use parser
static java.lang.Object parse(java.lang.String input)
          Deprecated. Please make use of parser( input )
 java.lang.Object parser(FeatureType schema, java.lang.String input)
          Parse the input string into either a Filter or an Expression.
 java.lang.Object parser(java.lang.String input)
          Parse the input string into either a Filter or an Expression.
 void setFilterFactory(FilterFactory factory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionBuilder

public ExpressionBuilder()

ExpressionBuilder

public ExpressionBuilder(FilterFactory factory)
Method Detail

setFilterFactory

public void setFilterFactory(FilterFactory factory)

parse

public static java.lang.Object parse(FeatureType schema,
                                     java.lang.String input)
                              throws org.geotools.filter.parser.ParseException
Deprecated. please use parser

Parameters:
schema -
input -
Returns:
Throws:
org.geotools.filter.parser.ParseException

parser

public java.lang.Object parser(FeatureType schema,
                               java.lang.String input)
                        throws org.geotools.filter.parser.ParseException
Parse the input string into either a Filter or an Expression.

Throws:
org.geotools.filter.parser.ParseException

parse

public static java.lang.Object parse(java.lang.String input)
                              throws org.geotools.filter.parser.ParseException
Deprecated. Please make use of parser( input )

Parse the input string into either a Filter or an Expression.

Throws:
org.geotools.filter.parser.ParseException

parser

public java.lang.Object parser(java.lang.String input)
                        throws org.geotools.filter.parser.ParseException
Parse the input string into either a Filter or an Expression.

Not schema is provided for reference during construction.

Throws:
org.geotools.filter.parser.ParseException

getFormattedErrorMessage

public static java.lang.String getFormattedErrorMessage(org.geotools.filter.parser.ParseException pe,
                                                        java.lang.String input)
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(java.lang.String[] args)
                       throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © GeoTools. All Rights Reserved.