Class 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 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.