deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.protocol.wfs.transaction
Class TransactionXMLAdapter

java.lang.Object
  extended by org.deegree.protocol.wfs.transaction.TransactionXMLAdapter

public class TransactionXMLAdapter
extends Object

Adapter between XML encoded Transaction requests and Transaction objects.

Version:
$Revision: 20612 $, $Date: 2009-11-05 18:53:29 +0100 (Do, 05 Nov 2009) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
TransactionXMLAdapter()
           
 
Method Summary
static Transaction parse(XMLStreamReader xmlStream)
          Parses a WFS Transaction document into a Transaction request.
static Transaction parse110(XMLStreamReader xmlStream)
          Parses a WFS 1.1.0 Transaction document into a Transaction request.
(package private) static Delete parseDelete110(XMLStreamReader xmlStream)
          Returns the object representation of a wfs:Delete element.
(package private) static Insert parseInsert110(XMLStreamReader xmlStream)
          Returns the object representation of a wfs:Insert element.
(package private) static Native parseNative110(XMLStreamReader xmlStream)
           
(package private) static TransactionOperation parseOperation110(XMLStreamReader xmlStream)
           
(package private) static PropertyReplacement parseProperty110(XMLStreamReader xmlStream)
           
(package private) static Update parseUpdate110(XMLStreamReader xmlStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionXMLAdapter

public TransactionXMLAdapter()
Method Detail

parse

public static Transaction parse(XMLStreamReader xmlStream)
                         throws XMLStreamException
Parses a WFS Transaction document into a Transaction request.

Supported versions:

Returns:
parsed Transaction request
Throws:
XMLStreamException
XMLParsingException - if a syntax error occurs in the XML
InvalidParameterValueException - if a parameter contains a syntax error

parse110

public static Transaction parse110(XMLStreamReader xmlStream)
                            throws XMLStreamException
Parses a WFS 1.1.0 Transaction document into a Transaction request.

Returns:
parsed Transaction request
Throws:
XMLStreamException
XMLParsingException - if a syntax error occurs in the XML
InvalidParameterValueException - if a parameter contains a syntax error

parseOperation110

static TransactionOperation parseOperation110(XMLStreamReader xmlStream)
                                       throws XMLParsingException,
                                              XMLStreamException
Throws:
XMLParsingException
XMLStreamException

parseDelete110

static Delete parseDelete110(XMLStreamReader xmlStream)
                      throws XMLStreamException
Returns the object representation of a wfs:Delete element. Consumes all corresponding events from the given XMLStream.

Parameters:
xmlStream - cursor must point at the START_ELEMENT event (<wfs:Delete>), points at the corresponding END_ELEMENT event (</wfs:Delete>) afterwards
Returns:
corresponding Delete object
Throws:
XMLStreamException
XMLParsingException

parseInsert110

static Insert parseInsert110(XMLStreamReader xmlStream)
                      throws XMLStreamException
Returns the object representation of a wfs:Insert element. NOTE: Does *not* consume all corresponding events from the given XMLStream.

Parameters:
xmlStream - cursor must point at the START_ELEMENT event (<wfs:Insert>)
Returns:
corresponding Insert object
Throws:
XMLStreamException
XMLParsingException

parseUpdate110

static Update parseUpdate110(XMLStreamReader xmlStream)
                      throws XMLStreamException
Throws:
XMLStreamException

parseProperty110

static PropertyReplacement parseProperty110(XMLStreamReader xmlStream)
                                     throws XMLStreamException
Throws:
XMLStreamException

parseNative110

static Native parseNative110(XMLStreamReader xmlStream)

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>