Source Code Cross Referenced for DescribeFeatureTypeTypeBinding.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.DescribeFeatureTypeType;
008:        import net.opengis.wfs.WfsFactory;
009:        import org.geotools.xml.AbstractComplexBinding;
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:DescribeFeatureTypeType.
016:         *
017:         * <p>
018:         *        <pre>
019:         *         <code>
020:         *  &lt;xsd:complexType name="DescribeFeatureTypeType"&gt;
021:         *      &lt;xsd:annotation&gt;
022:         *          &lt;xsd:documentation&gt;
023:         *              The DescribeFeatureType operation allows a client application
024:         *              to request that a Web Feature Service describe one or more
025:         *              feature types.   A Web Feature Service must be able to generate
026:         *              feature descriptions as valid GML3 application schemas.
027:         *
028:         *              The schemas generated by the DescribeFeatureType operation can
029:         *              be used by a client application to validate the output.
030:         *
031:         *              Feature instances within the WFS interface must be specified
032:         *              using GML3.  The schema of feature instances specified within
033:         *              the WFS interface must validate against the feature schemas
034:         *              generated by the DescribeFeatureType request.
035:         *           &lt;/xsd:documentation&gt;
036:         *      &lt;/xsd:annotation&gt;
037:         *      &lt;xsd:complexContent&gt;
038:         *          &lt;xsd:extension base="wfs:BaseRequestType"&gt;
039:         *              &lt;xsd:sequence&gt;
040:         *                  &lt;xsd:element maxOccurs="unbounded" minOccurs="0"
041:         *                      name="TypeName" type="xsd:QName"&gt;
042:         *                      &lt;xsd:annotation&gt;
043:         *                          &lt;xsd:documentation&gt;
044:         *                          The TypeName element is used to enumerate the
045:         *                          feature types to be described.  If no TypeName
046:         *                          elements are specified then all features should
047:         *                          be described.  The name must be a valid type
048:         *                          that belongs to the feature content as defined
049:         *                          by the GML Application Schema.
050:         *                       &lt;/xsd:documentation&gt;
051:         *                      &lt;/xsd:annotation&gt;
052:         *                  &lt;/xsd:element&gt;
053:         *              &lt;/xsd:sequence&gt;
054:         *              &lt;xsd:attribute default="text/xml; subtype=gml/3.1.1"
055:         *                  name="outputFormat" type="xsd:string" use="optional"&gt;
056:         *                  &lt;xsd:annotation&gt;
057:         *                      &lt;xsd:documentation&gt;
058:         *                       The outputFormat attribute is used to specify what schema
059:         *                       description language should be used to describe features.
060:         *                       The default value of 'text/xml; subtype=3.1.1' means that
061:         *                       the WFS must generate a GML3 application schema that can
062:         *                       be used to validate the GML3 output of a GetFeature
063:         *                       request or feature instances specified in Transaction
064:         *                       operations.
065:         *                       For the purposes of experimentation, vendor extension,
066:         *                       or even extensions that serve a specific community of
067:         *                       interest, other acceptable output format values may be
068:         *                       advertised by a WFS service in the capabilities document.
069:         *                       The meaning of such values in not defined in the WFS
070:         *                       specification.  The only proviso is such cases is that
071:         *                       clients may safely ignore outputFormat values that do
072:         *                       not recognize.
073:         *                    &lt;/xsd:documentation&gt;
074:         *                  &lt;/xsd:annotation&gt;
075:         *              &lt;/xsd:attribute&gt;
076:         *          &lt;/xsd:extension&gt;
077:         *      &lt;/xsd:complexContent&gt;
078:         *  &lt;/xsd:complexType&gt;
079:         *
080:         *          </code>
081:         *         </pre>
082:         * </p>
083:         *
084:         * @generated
085:         */
086:        public class DescribeFeatureTypeTypeBinding extends
087:                AbstractComplexBinding {
088:            WfsFactory wfsfactory;
089:
090:            public DescribeFeatureTypeTypeBinding(WfsFactory wfsfactory) {
091:                this .wfsfactory = wfsfactory;
092:            }
093:
094:            /**
095:             * @generated
096:             */
097:            public QName getTarget() {
098:                return WFS.DESCRIBEFEATURETYPETYPE;
099:            }
100:
101:            public int getExecutionMode() {
102:                return BEFORE;
103:            }
104:
105:            /**
106:             * <!-- begin-user-doc -->
107:             * <!-- end-user-doc -->
108:             *
109:             * @generated modifiable
110:             */
111:            public Class getType() {
112:                return DescribeFeatureTypeType.class;
113:            }
114:
115:            /**
116:             * <!-- begin-user-doc -->
117:             * <!-- end-user-doc -->
118:             *
119:             * @generated modifiable
120:             */
121:            public Object parse(ElementInstance instance, Node node,
122:                    Object value) throws Exception {
123:                DescribeFeatureTypeType describeFeatureType = wfsfactory
124:                        .createDescribeFeatureTypeType();
125:
126:                //&lt;xsd:element maxOccurs="unbounded" minOccurs="0"
127:                //   name="TypeName" type="xsd:QName"&gt;
128:                describeFeatureType.getTypeName().addAll(
129:                        node.getChildValues(QName.class));
130:
131:                //lt;xsd:attribute default="text/xml; subtype=gml/3.1.1"
132:                //   name="outputFormat" type="xsd:string" use="optional"&gt;
133:                if (node.hasAttribute("outputFormat")) {
134:                    describeFeatureType.setOutputFormat((String) node
135:                            .getAttributeValue("outputFormat"));
136:                }
137:
138:                return describeFeatureType;
139:            }
140:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.