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.wfs.xml.v1_1_0;
06:
07: import net.opengis.wfs.WfsFactory;
08: import org.geotools.xml.AbstractComplexBinding;
09: import org.geotools.xml.ElementInstance;
10: import org.geotools.xml.Node;
11: import javax.xml.namespace.QName;
12:
13: /**
14: * Binding object for the type http://www.opengis.net/wfs:ActionType.
15: *
16: * <p>
17: * <pre>
18: * <code>
19: * <xsd:complexType name="ActionType">
20: * <xsd:sequence>
21: * <xsd:element maxOccurs="1" minOccurs="0" name="Message" type="xsd:string">
22: * <xsd:annotation>
23: * <xsd:documentation>
24: * If an action fails, the message element may be used
25: * to supply an exception message.
26: * </xsd:documentation>
27: * </xsd:annotation>
28: * </xsd:element>
29: * </xsd:sequence>
30: * <xsd:attribute name="locator" type="xsd:string" use="required">
31: * <xsd:annotation>
32: * <xsd:documentation>
33: * The locator attribute is used to locate an action
34: * within a <Transaction> element. The value
35: * of the locator attribute is either a string that
36: * is equal to the value of the handle attribute
37: * specified on an <Insert>, <Update>
38: * or <Delete> action. If a value is not
39: * specified for the handle attribute then a WFS
40: * may employ some other means of locating the
41: * action. For example, the value of the locator
42: * attribute may be an integer indicating the order
43: * of the action (i.e. 1=First action, 2=Second action,
44: * etc.).
45: * </xsd:documentation>
46: * </xsd:annotation>
47: * </xsd:attribute>
48: * <xsd:attribute name="code" type="xsd:string" use="optional">
49: * <xsd:annotation>
50: * <xsd:documentation>
51: * The code attribute may be used to specify an
52: * exception code indicating why an action failed.
53: * </xsd:documentation>
54: * </xsd:annotation>
55: * </xsd:attribute>
56: * </xsd:complexType>
57: *
58: * </code>
59: * </pre>
60: * </p>
61: *
62: * @generated
63: */
64: public class ActionTypeBinding extends AbstractComplexBinding {
65: WfsFactory wfsfactory;
66:
67: public ActionTypeBinding(WfsFactory wfsfactory) {
68: this .wfsfactory = wfsfactory;
69: }
70:
71: /**
72: * @generated
73: */
74: public QName getTarget() {
75: return WFS.ACTIONTYPE;
76: }
77:
78: /**
79: * <!-- begin-user-doc -->
80: * <!-- end-user-doc -->
81: *
82: * @generated modifiable
83: */
84: public Class getType() {
85: return null;
86: }
87:
88: /**
89: * <!-- begin-user-doc -->
90: * <!-- end-user-doc -->
91: *
92: * @generated modifiable
93: */
94: public Object parse(ElementInstance instance, Node node,
95: Object value) throws Exception {
96: //TODO: implement
97: return null;
98: }
99: }
|