org.geotools.filter
Class ExpressionDOMParser

Object
  extended by ExpressionDOMParser

public final class ExpressionDOMParser
extends Object

parsez short sections of gml for use in expressions and filters Hopefully we can get away without a full parser here.

Author:
iant
Module:

Constructor Summary
ExpressionDOMParser(FilterFactory2 factory)
          Constructor injection
 
Method Summary
 List coords(Node root)
          Parses a dom node into a coordinate list.
 Expression expression(Node root)
          parses an expression for a filter.
 Geometry gml(Node root)
          Parses the gml of this node to jts.
static List parseCoords(Node root)
          Deprecated. please use ExpressionDOMParser.coords()
static Expression parseExpression(Node root)
          Deprecated. Please use ExpressionDOMParser.expression
static Geometry parseGML(Node root)
          Deprecated. Please use ExpressionDOMParser.gml
 void setFilterFactory(FilterFactory2 factory)
          Setter injection
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionDOMParser

public ExpressionDOMParser(FilterFactory2 factory)
Constructor injection

Method Detail

setFilterFactory

public void setFilterFactory(FilterFactory2 factory)
Setter injection


parseExpression

public static Expression parseExpression(Node root)
Deprecated. Please use ExpressionDOMParser.expression

Parameters:
root -

expression

public Expression expression(Node root)
parses an expression for a filter.

Parameters:
root - the root node to parse, should be an filter expression.
Returns:
the geotools representation of the expression held in the node.

parseGML

public static Geometry parseGML(Node root)
Deprecated. Please use ExpressionDOMParser.gml

Parameters:
root -
Returns:
the java representation of the geometry contained in root.

gml

public Geometry gml(Node root)
Parses the gml of this node to jts.

Parameters:
root - the parent node of the gml to parse.
Returns:
the java representation of the geometry contained in root.

parseCoords

public static List parseCoords(Node root)
Deprecated. please use ExpressionDOMParser.coords()

Parse a DOM node into a coordiante list.

Parameters:
root - the root node representation of gml:coordinates.
Returns:
the coordinates in a list.

coords

public List coords(Node root)
Parses a dom node into a coordinate list.

Parameters:
root - the root node representation of gml:coordinates.
Returns:
the coordinates in a list.


Copyright © 1996-2009 Geotools. All Rights Reserved.