Source Code Cross Referenced for UpdateElementTypeBinding.java in  » GIS » GeoServer » org » geoserver » wfs » xml » v1_1_0 » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoServer » org.geoserver.wfs.xml.v1_1_0 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


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.PropertyType;
008:        import net.opengis.wfs.UpdateElementType;
009:        import net.opengis.wfs.WfsFactory;
010:        import org.geotools.xml.AbstractComplexEMFBinding;
011:        import org.geotools.xml.ElementInstance;
012:        import org.geotools.xml.Node;
013:        import org.opengis.filter.Filter;
014:        import java.net.URI;
015:        import javax.xml.namespace.QName;
016:
017:        /**
018:         * Binding object for the type http://www.opengis.net/wfs:UpdateElementType.
019:         *
020:         * <p>
021:         *        <pre>
022:         *         <code>
023:         *  &lt;xsd:complexType name="UpdateElementType"&gt;
024:         *      &lt;xsd:sequence&gt;
025:         *          &lt;xsd:element maxOccurs="unbounded" ref="wfs:Property"&gt;
026:         *              &lt;xsd:annotation&gt;
027:         *                  &lt;xsd:documentation&gt;
028:         *                    Changing or updating a feature instance means that
029:         *                    the current value of one or more properties of
030:         *                    the feature are replaced with new values.  The Update
031:         *                    element contains  one or more Property elements.  A
032:         *                    Property element contains the name or a feature property
033:         *                    who's value is to be changed and the replacement value
034:         *                    for that property.
035:         *                 &lt;/xsd:documentation&gt;
036:         *              &lt;/xsd:annotation&gt;
037:         *          &lt;/xsd:element&gt;
038:         *          &lt;xsd:element maxOccurs="1" minOccurs="0" ref="ogc:Filter"&gt;
039:         *              &lt;xsd:annotation&gt;
040:         *                  &lt;xsd:documentation&gt;
041:         *                    The Filter element is used to constrain the scope
042:         *                    of the update operation to those features identified
043:         *                    by the filter.  Feature instances can be specified
044:         *                    explicitly and individually using the identifier of
045:         *                    each feature instance OR a set of features to be
046:         *                    operated on can be identified by specifying spatial
047:         *                    and non-spatial constraints in the filter.
048:         *                    If no filter is specified then update operation
049:         *                    applies to all feature instances.
050:         *                 &lt;/xsd:documentation&gt;
051:         *              &lt;/xsd:annotation&gt;
052:         *          &lt;/xsd:element&gt;
053:         *      &lt;/xsd:sequence&gt;
054:         *      &lt;xsd:attribute name="handle" type="xsd:string" use="optional"&gt;
055:         *          &lt;xsd:annotation&gt;
056:         *              &lt;xsd:documentation&gt;
057:         *                 The handle attribute allows a client application
058:         *                 to assign a client-generated request identifier
059:         *                 to an Insert action.  The handle is included to
060:         *                 facilitate error reporting.  If an Update action
061:         *                 in a Transaction request fails, then a WFS may
062:         *                 include the handle in an exception report to localize
063:         *                 the error.  If no handle is included of the offending
064:         *                 Insert element then a WFS may employee other means of
065:         *                 localizing the error (e.g. line number).
066:         *              &lt;/xsd:documentation&gt;
067:         *          &lt;/xsd:annotation&gt;
068:         *      &lt;/xsd:attribute&gt;
069:         *      &lt;xsd:attribute name="typeName" type="xsd:QName" use="required"&gt;
070:         *          &lt;xsd:annotation&gt;
071:         *              &lt;xsd:documentation&gt;
072:         *                The value of the typeName attribute is the name
073:         *                of the feature type to be updated. The name
074:         *                specified must be a valid type that belongs to
075:         *                the feature content as defined by the GML
076:         *                Application Schema.
077:         *             &lt;/xsd:documentation&gt;
078:         *          &lt;/xsd:annotation&gt;
079:         *      &lt;/xsd:attribute&gt;
080:         *      &lt;xsd:attribute default="x-application/gml:3" name="inputFormat"
081:         *          type="xsd:string" use="optional"&gt;
082:         *          &lt;xsd:annotation&gt;
083:         *              &lt;xsd:documentation&gt;
084:         *                 This inputFormat attribute is used to indicate
085:         *                 the format used to encode a feature instance in
086:         *                 an Insert element.  The default value of
087:         *                 'text/xml; subtype=gml/3.1.1' is used to indicate
088:         *                 that feature encoding is GML3.  Another example
089:         *                 might be 'text/xml; subtype=gml/2.1.2' indicating
090:         *                 that the feature us encoded in GML2.  A WFS must
091:         *                 declare in the capabilities document, using a
092:         *                 Parameter element, which version of GML it supports.
093:         *              &lt;/xsd:documentation&gt;
094:         *          &lt;/xsd:annotation&gt;
095:         *      &lt;/xsd:attribute&gt;
096:         *      &lt;xsd:attribute name="srsName" type="xsd:anyURI" use="optional"&gt;
097:         *          &lt;xsd:annotation&gt;
098:         *              &lt;xsd:documentation&gt;
099:         *                 DO WE NEED THIS HERE?
100:         *             &lt;/xsd:documentation&gt;
101:         *          &lt;/xsd:annotation&gt;
102:         *      &lt;/xsd:attribute&gt;
103:         *  &lt;/xsd:complexType&gt;
104:         *
105:         *          </code>
106:         *         </pre>
107:         * </p>
108:         *
109:         * @generated
110:         */
111:        public class UpdateElementTypeBinding extends AbstractComplexEMFBinding {
112:            WfsFactory wfsfactory;
113:
114:            public UpdateElementTypeBinding(WfsFactory wfsfactory) {
115:                this .wfsfactory = wfsfactory;
116:            }
117:
118:            /**
119:             * @generated
120:             */
121:            public QName getTarget() {
122:                return WFS.UPDATEELEMENTTYPE;
123:            }
124:
125:            /**
126:             * <!-- begin-user-doc -->
127:             * <!-- end-user-doc -->
128:             *
129:             * @generated modifiable
130:             */
131:            public Class getType() {
132:                return null;
133:            }
134:
135:            /**
136:             * <!-- begin-user-doc -->
137:             * <!-- end-user-doc -->
138:             *
139:             * @generated modifiable
140:             */
141:            public Object parse(ElementInstance instance, Node node,
142:                    Object value) throws Exception {
143:                UpdateElementType updateElement = wfsfactory
144:                        .createUpdateElementType();
145:
146:                //&lt;xsd:element maxOccurs="unbounded" ref="wfs:Property"&gt;
147:                updateElement.getProperty().addAll(
148:                        node.getChildValues(PropertyType.class));
149:
150:                //&lt;xsd:element maxOccurs="1" minOccurs="0" ref="ogc:Filter"&gt;
151:                updateElement.setFilter((Filter) node
152:                        .getChildValue(Filter.class));
153:
154:                //&lt;xsd:attribute name="handle" type="xsd:string" use="optional"&gt;
155:                if (node.hasAttribute("handle")) {
156:                    updateElement.setHandle((String) node
157:                            .getAttributeValue("handle"));
158:                }
159:
160:                //&lt;xsd:attribute name="typeName" type="xsd:QName" use="required"&gt;
161:                updateElement.setTypeName((QName) node
162:                        .getAttributeValue("typeName"));
163:
164:                //&lt;xsd:attribute default="x-application/gml:3" name="inputFormat"
165:                //	type="xsd:string" use="optional"&gt;
166:                if (node.hasAttribute("inputFormat")) {
167:                    updateElement.setInputFormat((String) node
168:                            .getAttributeValue("inputFormat"));
169:                }
170:
171:                //&lt;xsd:attribute name="srsName" type="xsd:anyURI" use="optional"&gt;
172:                if (node.hasAttribute("srsName")) {
173:                    updateElement.setSrsName((URI) node
174:                            .getAttributeValue("srsName"));
175:                }
176:
177:                return updateElement;
178:            }
179:
180:            public Object getProperty(Object arg0, QName arg1) throws Exception {
181:                Object result = super .getProperty(arg0, arg1);
182:
183:                //System.out.println("Being asked for " + arg1);
184:                //System.out.println("Returning " + result);
185:                return result;
186:            }
187:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.