Package org.geotools.filter
Class ExpressionDOMParser
Object
ExpressionDOMParser
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 -
Method Summary
Modifier and TypeMethodDescriptionParses a dom node into a coordinate list.expression
(Node root) parses an expression for a filter.void
setFilterFactory
(FilterFactory filterFactory) Setter injection
-
Constructor Details
-
ExpressionDOMParser
- Parameters:
filterFactory
- The FilterFactory to create literals and expressions with.- Throws:
NullPointerException
- in case of filterFactory is null.
-
ExpressionDOMParser
public ExpressionDOMParser()Constructor injection
-
-
Method Details
-
setFilterFactory
Setter injection- Parameters:
filterFactory
- The FilterFactory to create literals and expressions with.- Throws:
NullPointerException
- in case of filterFactory is null.
-
expression
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.
-
gml
-
coords
Parses a dom node into a coordinate list.- Parameters:
root
- the root node representation of gml:coordinates.- Returns:
- the coordinates in a list.
-