org.deegree.filter.xml
Class Filter100XMLDecoder

java.lang.Object
  extended by org.deegree.filter.xml.Filter100XMLDecoder

public class Filter100XMLDecoder
extends Object

Decodes XML fragments that comply to the OGC Filter Encoding Specification 1.0.0.

Version:
$Revision: 31664 $, $Date: 2011-08-26 16:18:07 +0200 (Fri, 26 Aug 2011) $
Author:
Markus Schneider, Andrei Ionita, last edited by: $Author: mschneider $

Constructor Summary
Filter100XMLDecoder()
           
 
Method Summary
static Filter parse(XMLStreamReader xmlStream)
          Returns the object representation for the given wfs:Filter element event that the cursor of the associated XMLStreamReader points at.
static ComparisonOperator parseComparisonOperator(XMLStreamReader xmlStream)
          Returns the object representation for the given ogc:comparisonOps element event that the cursor of the associated XMLStreamReader points at.
static CustomExpression parseCustomExpression(XMLStreamReader xmlStream)
          Returns the object representation for the given custom ogc:expression element event that the cursor of the associated XMLStreamReader points at.
static Expression parseExpression(XMLStreamReader xmlStream)
          Returns the object representation for the given ogc:expression element event that the cursor of the associated XMLStreamReader points at.
static Function parseFunction(XMLStreamReader xmlStream)
          Returns the object representation for the given ogc:Function element event that the cursor of the associated XMLStreamReader points at.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Filter100XMLDecoder

public Filter100XMLDecoder()
Method Detail

parse

public static Filter parse(XMLStreamReader xmlStream)
                    throws XMLParsingException,
                           XMLStreamException
Returns the object representation for the given wfs:Filter element event that the cursor of the associated XMLStreamReader points at.

Parameters:
xmlStream - cursor must point at the START_ELEMENT event (<wfs:Filter>), points at the corresponding END_ELEMENT event (</wfs:Filter>) afterwards
Returns:
corresponding Filter object
Throws:
XMLParsingException - if the element is not a valid "wfs:Filter" element
XMLStreamException

parseExpression

public static Expression parseExpression(XMLStreamReader xmlStream)
                                  throws XMLStreamException
Returns the object representation for the given ogc:expression element event that the cursor of the associated XMLStreamReader points at.

The element must be one of the following:

Parameters:
xmlStream - cursor must point at the START_ELEMENT event (<ogc:expression>), points at the corresponding END_ELEMENT event (</ogc:expression>) afterwards
Returns:
corresponding Expression object
Throws:
XMLParsingException - if the element is not a valid "ogc:expression" element
XMLStreamException

parseFunction

public static Function parseFunction(XMLStreamReader xmlStream)
                              throws XMLStreamException
Returns the object representation for the given ogc:Function element event that the cursor of the associated XMLStreamReader points at.

Parameters:
xmlStream - cursor must point at the START_ELEMENT event (<ogc:Function>), points at the corresponding END_ELEMENT event (</ogc:Function>) afterwards
Returns:
corresponding Function object
Throws:
XMLParsingException - if the element is not a valid "ogc:Function" element
XMLStreamException

parseCustomExpression

public static CustomExpression parseCustomExpression(XMLStreamReader xmlStream)
                                              throws XMLStreamException
Returns the object representation for the given custom ogc:expression element event that the cursor of the associated XMLStreamReader points at.

Parameters:
xmlStream - cursor must point at the START_ELEMENT event (<ogc:expression>), points at the corresponding END_ELEMENT event (</ogc:expression>) afterwards
Returns:
corresponding CustomExpression object
Throws:
XMLParsingException - if the element is not a known or valid custom "ogc:expression" element
XMLStreamException

parseComparisonOperator

public static ComparisonOperator parseComparisonOperator(XMLStreamReader xmlStream)
                                                  throws XMLStreamException
Returns the object representation for the given ogc:comparisonOps element event that the cursor of the associated XMLStreamReader points at.

The element must be one of the following:

Parameters:
xmlStream - cursor must point at the START_ELEMENT event (<ogc:comparisonOps>), points at the corresponding END_ELEMENT event (</ogc:comparisonOps>) afterwards
Returns:
corresponding Expression object
Throws:
XMLParsingException - if the element is not a valid "ogc:comparisonOps" element
XMLStreamException


Copyright © 2011. All Rights Reserved.