Package org.geotools.filter
Class ExpressionDOMParser
- Object
-
- ExpressionDOMParser
-
public final class ExpressionDOMParser extends Object
parses short sections of gml for use in expressions and filters. Hopefully we can get away without a full parser here.- Author:
- iant, Niels Charlier
-
-
Constructor Summary
Constructors Constructor Description ExpressionDOMParser()Constructor injectionExpressionDOMParser(FilterFactory filterFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Coordinate>coords(Node root)Parses a dom node into a coordinate list.Expressionexpression(Node root)parses an expression for a filter.Geometrygml(Node root)voidsetFilterFactory(FilterFactory filterFactory)Setter injection
-
-
-
Constructor Detail
-
ExpressionDOMParser
public ExpressionDOMParser(FilterFactory filterFactory)
- Parameters:
filterFactory- The FilterFactory to create literals and expressions with.- Throws:
NullPointerException- in case of filterFactory is null.
-
ExpressionDOMParser
public ExpressionDOMParser()
Constructor injection
-
-
Method Detail
-
setFilterFactory
public void setFilterFactory(FilterFactory filterFactory)
Setter injection- Parameters:
filterFactory- The FilterFactory to create literals and expressions with.- Throws:
NullPointerException- in case of filterFactory is null.
-
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.
-
coords
public List<Coordinate> 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.
-
-