01: /* Copyright (c) 2001 - 2007 TOPP - www.openplans.org. All rights reserved.
02: * This code is licensed under the GPL 2.0 license, availible at the root
03: * application directory.
04: */
05: package org.geoserver.wfsv.xml.v1_1_0;
06:
07: import net.opengis.wfsv.VersionedDeleteElementType;
08: import net.opengis.wfsv.WfsvFactory;
09: import org.geotools.xml.*;
10: import javax.xml.namespace.QName;
11:
12: /**
13: * Binding object for the type http://www.opengis.net/wfsv:VersionedDeleteElementType.
14: *
15: * <p>
16: * <pre>
17: * <code>
18: * <xsd:complexType name="VersionedDeleteElementType">
19: * <xsd:complexContent>
20: * <xsd:extension base="wfs:DeleteElementType">
21: * <xsd:attribute name="featureVersion" type="xsd:string" use="required">
22: * <xsd:annotation>
23: * <xsd:documentation>
24: * See VersionedUpdateElementType featureVersion attribute.
25: * </xsd:documentation>
26: * </xsd:annotation>
27: * </xsd:attribute>
28: * </xsd:extension>
29: * </xsd:complexContent>
30: * </xsd:complexType>
31: *
32: * </code>
33: * </pre>
34: * </p>
35: *
36: * @generated
37: */
38: public class VersionedDeleteElementTypeBinding extends
39: AbstractComplexBinding {
40: private WfsvFactory wfsvFactory;
41:
42: public VersionedDeleteElementTypeBinding(WfsvFactory wfsvFactory) {
43: this .wfsvFactory = wfsvFactory;
44: }
45:
46: /**
47: * @generated
48: */
49: public QName getTarget() {
50: return WFSV.VersionedDeleteElementType;
51: }
52:
53: /**
54: * <!-- begin-user-doc -->
55: * <!-- end-user-doc -->
56: *
57: * @generated modifiable
58: */
59: public Class getType() {
60: return VersionedDeleteElementType.class;
61: }
62:
63: /**
64: * <!-- begin-user-doc -->
65: * <!-- end-user-doc -->
66: *
67: * @generated modifiable
68: */
69: public Object parse(ElementInstance instance, Node node,
70: Object value) throws Exception {
71: VersionedDeleteElementType delete = wfsvFactory
72: .createVersionedDeleteElementType();
73: delete.setFeatureVersion((String) node
74: .getAttributeValue("featureVersion"));
75:
76: return delete;
77: }
78: }
|