org.geotools.filter
Class ExpressionDOMParser

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

public final class ExpressionDOMParser
extends java.lang.Object

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

Author:
iant

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

Constructor Detail

ExpressionDOMParser

public ExpressionDOMParser(FilterFactory factory)
Constructor injection

Method Detail

setFilterFactory

public void setFilterFactory(FilterFactory factory)
Setter injection


parseExpression

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

Parameters:
root -
Returns:

expression

public Expression expression(org.w3c.dom.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 com.vividsolutions.jts.geom.Geometry parseGML(org.w3c.dom.Node root)
Deprecated. Please use ExpressionDOMParser.gml

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

gml

public com.vividsolutions.jts.geom.Geometry gml(org.w3c.dom.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 java.util.List parseCoords(org.w3c.dom.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 java.util.List coords(org.w3c.dom.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 © GeoTools. All Rights Reserved.