Source Code Cross Referenced for BaseRequestTypeBinding.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.BaseRequestType;
008:        import net.opengis.wfs.WfsFactory;
009:        import org.eclipse.emf.ecore.EObject;
010:        import org.geotools.xml.AbstractComplexBinding;
011:        import org.geotools.xml.EMFUtils;
012:        import org.geotools.xml.ElementInstance;
013:        import org.geotools.xml.Node;
014:        import javax.xml.namespace.QName;
015:
016:        /**
017:         * Binding object for the type http://www.opengis.net/wfs:BaseRequestType.
018:         *
019:         * <p>
020:         *        <pre>
021:         *         <code>
022:         *  &lt;xsd:complexType abstract="true" name="BaseRequestType"&gt;
023:         *      &lt;xsd:annotation&gt;
024:         *          &lt;xsd:documentation&gt;
025:         *              XML encoded WFS operation request base, for all operations
026:         *              except GetCapabilities.
027:         *           &lt;/xsd:documentation&gt;
028:         *      &lt;/xsd:annotation&gt;
029:         *      &lt;xsd:attribute default="WFS" name="service" type="ows:ServiceType" use="optional"&gt;
030:         *          &lt;xsd:annotation&gt;
031:         *              &lt;xsd:documentation&gt;
032:         *                The service attribute is included to support service
033:         *                endpoints that implement more than one OGC service.
034:         *                For example, a single CGI that implements WMS, WFS
035:         *                and WCS services.
036:         *                The endpoint can inspect the value of this attribute
037:         *                to figure out which service should process the request.
038:         *                The value WFS indicates that a web feature service should
039:         *                process the request.
040:         *                This parameter is somewhat redundant in the XML encoding
041:         *                since the request namespace can be used to determine
042:         *                which service should process any give request.  For example,
043:         *                wfs:GetCapabilities and easily be distinguished from
044:         *                wcs:GetCapabilities using the namespaces.
045:         *             &lt;/xsd:documentation&gt;
046:         *          &lt;/xsd:annotation&gt;
047:         *      &lt;/xsd:attribute&gt;
048:         *      &lt;xsd:attribute default="1.1.0" name="version" type="xsd:string" use="optional"&gt;
049:         *          &lt;xsd:annotation&gt;
050:         *              &lt;xsd:documentation&gt;
051:         *                 The version attribute is used to indicate the version of the
052:         *                 WFS specification that a request conforms to.  All requests in
053:         *                 this schema conform to V1.1 of the WFS specification.
054:         *                 For WFS implementations that support more than one version of
055:         *                 a WFS sepcification ... if the version attribute is not
056:         *                 specified then the service should assume that the request
057:         *                 conforms to greatest available specification version.
058:         *             &lt;/xsd:documentation&gt;
059:         *          &lt;/xsd:annotation&gt;
060:         *      &lt;/xsd:attribute&gt;
061:         *      &lt;xsd:attribute name="handle" type="xsd:string" use="optional"&gt;
062:         *          &lt;xsd:annotation&gt;
063:         *              &lt;xsd:documentation&gt;
064:         *                 The handle attribute allows a client application
065:         *                 to assign a client-generated request identifier
066:         *                 to a WFS request.  The handle is included to
067:         *                 facilitate error reporting.  A WFS may report the
068:         *                 handle in an exception report to identify the
069:         *                 offending request or action.  If the handle is not
070:         *                 present, then the WFS may employ other means to
071:         *                 localize the error (e.g. line numbers).
072:         *              &lt;/xsd:documentation&gt;
073:         *          &lt;/xsd:annotation&gt;
074:         *      &lt;/xsd:attribute&gt;
075:         *  &lt;/xsd:complexType&gt;
076:         *
077:         *          </code>
078:         *         </pre>
079:         * </p>
080:         *
081:         * @generated
082:         */
083:        public class BaseRequestTypeBinding extends AbstractComplexBinding {
084:            WfsFactory wfsfactory;
085:
086:            public BaseRequestTypeBinding(WfsFactory wfsfactory) {
087:                this .wfsfactory = wfsfactory;
088:            }
089:
090:            /**
091:             * @generated
092:             */
093:            public QName getTarget() {
094:                return WFS.BASEREQUESTTYPE;
095:            }
096:
097:            /**
098:             * <!-- begin-user-doc -->
099:             * <!-- end-user-doc -->
100:             *
101:             * @generated modifiable
102:             */
103:            public Class getType() {
104:                return BaseRequestType.class;
105:            }
106:
107:            /**
108:             * <!-- begin-user-doc -->
109:             * <!-- end-user-doc -->
110:             *
111:             * @generated modifiable
112:             */
113:            public Object parse(ElementInstance instance, Node node,
114:                    Object value) throws Exception {
115:                //this binding needs to be executed after the child
116:                EObject request = (EObject) value;
117:
118:                //&lt;xsd:attribute default="WFS" name="service" type="ows:ServiceType" use="optional"&gt;
119:                if (node.hasAttribute("service")) {
120:                    String service = (String) node.getAttributeValue("service");
121:
122:                    if ((service != null) && !"".equals(service.trim())) {
123:                        EMFUtils.set(request, "service", node
124:                                .getAttributeValue("service"));
125:                    } else {
126:                        EMFUtils.set(request, "service", "WFS");
127:                    }
128:                } else {
129:                    EMFUtils.set(request, "service", "WFS");
130:                }
131:
132:                //&lt;xsd:attribute default="1.1.0" name="version" type="xsd:string" use="optional"&gt;
133:                if (node.hasAttribute("version")) {
134:                    String version = (String) node.getAttributeValue("version");
135:
136:                    if ((version != null) && !"".equals(version.trim())) {
137:                        EMFUtils.set(request, "version", node
138:                                .getAttributeValue("version"));
139:                    } else {
140:                        EMFUtils.set(request, "version", "1.1.0");
141:                    }
142:                } else {
143:                    EMFUtils.set(request, "version", "1.1.0");
144:                }
145:
146:                //&lt;xsd:attribute name="handle" type="xsd:string" use="optional"&gt;
147:                if (node.hasAttribute("handle")) {
148:                    EMFUtils.set(request, "handle", node
149:                            .getAttributeValue("handle"));
150:                }
151:
152:                return request;
153:            }
154:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.