001: /* Copyright (c) 2001 - 2007 TOPP - www.openplans.org. All rights reserved.
002: * This code is licensed under the GPL 2.0 license, availible at the root
003: * application directory.
004: */
005: package org.geoserver.wfs.xml.v1_1_0;
006:
007: import net.opengis.wfs.TransactionResponseType;
008: import net.opengis.wfs.WfsFactory;
009: import org.geotools.xml.AbstractComplexEMFBinding;
010: import org.geotools.xml.ElementInstance;
011: import org.geotools.xml.Node;
012: import javax.xml.namespace.QName;
013:
014: /**
015: * Binding object for the type http://www.opengis.net/wfs:TransactionResponseType.
016: *
017: * <p>
018: * <pre>
019: * <code>
020: * <xsd:complexType name="TransactionResponseType">
021: * <xsd:annotation>
022: * <xsd:documentation xml:lang="en">
023: * The response for a transaction request that was successfully
024: * completed. If the transaction failed for any reason, an
025: * exception report is returned instead.
026: * </xsd:documentation>
027: * </xsd:annotation>
028: * <xsd:sequence>
029: * <xsd:element name="TransactionSummary" type="wfs:TransactionSummaryType">
030: * <xsd:annotation>
031: * <xsd:documentation xml:lang="en">
032: * The TransactionSummary element is used to summarize
033: * the number of feature instances affected by the
034: * transaction.
035: * </xsd:documentation>
036: * </xsd:annotation>
037: * </xsd:element>
038: * <xsd:element minOccurs="0" name="TransactionResults" type="wfs:TransactionResultsType">
039: * <xsd:annotation>
040: * <xsd:documentation xml:lang="en">
041: * For systems that do not support atomic transactions,
042: * the TransactionResults element may be used to report
043: * exception codes and messages for all actions of a
044: * transaction that failed to execute successfully.
045: * </xsd:documentation>
046: * </xsd:annotation>
047: * </xsd:element>
048: * <xsd:element name="InsertResults" type="wfs:InsertResultType">
049: * <xsd:annotation>
050: * <xsd:documentation xml:lang="en">
051: * A transaction is a collection of Insert,Update and Delete
052: * actions. The Update and Delete actions modify features
053: * that already exist. The Insert action, however, creates
054: * new features. The InsertResults element is used to
055: * report the identifiers of the newly created features.
056: * </xsd:documentation>
057: * </xsd:annotation>
058: * </xsd:element>
059: * </xsd:sequence>
060: * <xsd:attribute fixed="1.1.0" name="version" type="xsd:string" use="required">
061: * <xsd:annotation>
062: * <xsd:documentation>
063: * The version attribute contains the version of the request
064: * that generated this response. So a V1.1.0 transaction
065: * request generates a V1.1.0 transaction response.
066: * </xsd:documentation>
067: * </xsd:annotation>
068: * </xsd:attribute>
069: * </xsd:complexType>
070: *
071: * </code>
072: * </pre>
073: * </p>
074: *
075: * @generated
076: */
077: public class TransactionResponseTypeBinding extends
078: AbstractComplexEMFBinding {
079: WfsFactory wfsfactory;
080:
081: public TransactionResponseTypeBinding(WfsFactory wfsfactory) {
082: this .wfsfactory = wfsfactory;
083: }
084:
085: /**
086: * @generated
087: */
088: public QName getTarget() {
089: return WFS.TRANSACTIONRESPONSETYPE;
090: }
091:
092: /**
093: * <!-- begin-user-doc -->
094: * <!-- end-user-doc -->
095: *
096: * @generated modifiable
097: */
098: public Class getType() {
099: return TransactionResponseType.class;
100: }
101:
102: /**
103: * <!-- begin-user-doc -->
104: * <!-- end-user-doc -->
105: *
106: * @generated modifiable
107: */
108: public Object parse(ElementInstance instance, Node node,
109: Object value) throws Exception {
110: //TODO: implement
111: return null;
112: }
113: }
|