Source Code Cross Referenced for GetFeatureTypeBinding.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.GetFeatureType;
008:        import net.opengis.wfs.QueryType;
009:        import net.opengis.wfs.ResultTypeType;
010:        import net.opengis.wfs.WfsFactory;
011:        import org.geotools.xml.AbstractComplexBinding;
012:        import org.geotools.xml.ElementInstance;
013:        import org.geotools.xml.Node;
014:        import java.math.BigInteger;
015:        import javax.xml.namespace.QName;
016:
017:        /**
018:         * Binding object for the type http://www.opengis.net/wfs:GetFeatureType.
019:         *
020:         * <p>
021:         *        <pre>
022:         *         <code>
023:         *  &lt;xsd:complexType name="GetFeatureType"&gt;
024:         *      &lt;xsd:annotation&gt;
025:         *          &lt;xsd:documentation&gt;
026:         *              A GetFeature element contains one or more Query elements
027:         *              that describe a query operation on one feature type.  In
028:         *              response to a GetFeature request, a Web Feature Service
029:         *              must be able to generate a GML3 response that validates
030:         *              using a schema generated by the DescribeFeatureType request.
031:         *              A Web Feature Service may support other possibly non-XML
032:         *              (and even binary) output formats as long as those formats
033:         *              are advertised in the capabilities document.
034:         *           &lt;/xsd:documentation&gt;
035:         *      &lt;/xsd:annotation&gt;
036:         *      &lt;xsd:complexContent&gt;
037:         *          &lt;xsd:extension base="wfs:BaseRequestType"&gt;
038:         *              &lt;xsd:sequence&gt;
039:         *                  &lt;xsd:element maxOccurs="unbounded" ref="wfs:Query"/&gt;
040:         *              &lt;/xsd:sequence&gt;
041:         *              &lt;xsd:attribute default="results" name="resultType"
042:         *                  type="wfs:ResultTypeType" use="optional"&gt;
043:         *                  &lt;xsd:annotation&gt;
044:         *                      &lt;xsd:documentation&gt;
045:         *                       The resultType attribute is used to indicate
046:         *                       what response a WFS should return to user once
047:         *                       a GetFeature request is processed.
048:         *                       Possible values are:
049:         *                          results - meaning that the full response set
050:         *                                    (i.e. all the feature instances)
051:         *                                    should be returned.
052:         *                          hits    - meaning that an empty response set
053:         *                                    should be returned (i.e. no feature
054:         *                                    instances should be returned) but
055:         *                                    the "numberOfFeatures" attribute
056:         *                                    should be set to the number of feature
057:         *                                    instances that would be returned.
058:         *                    &lt;/xsd:documentation&gt;
059:         *                  &lt;/xsd:annotation&gt;
060:         *              &lt;/xsd:attribute&gt;
061:         *              &lt;xsd:attribute default="text/xml; subtype=gml/3.1.1"
062:         *                  name="outputFormat" type="xsd:string" use="optional"&gt;
063:         *                  &lt;xsd:annotation&gt;
064:         *                      &lt;xsd:documentation&gt;
065:         *                       The outputFormat attribute is used to specify the output
066:         *                       format that the Web Feature Service should generate in
067:         *                       response to a GetFeature or GetFeatureWithLock element.
068:         *                       The default value of 'text/xml; subtype=gml/3.1.1'
069:         *                       indicates that the output is an XML document that
070:         *                       conforms to the Geography Markup Language (GML)
071:         *                       Implementation Specification V3.1.1.
072:         *                       For the purposes of experimentation, vendor extension,
073:         *                       or even extensions that serve a specific community of
074:         *                       interest, other acceptable output format values may be
075:         *                       used to specify other formats as long as those values
076:         *                       are advertised in the capabilities document.
077:         *                       For example, the value WKB may be used to indicate that a
078:         *                       Well Known Binary format be used to encode the output.
079:         *                    &lt;/xsd:documentation&gt;
080:         *                  &lt;/xsd:annotation&gt;
081:         *              &lt;/xsd:attribute&gt;
082:         *              &lt;xsd:attribute name="maxFeatures" type="xsd:positiveInteger" use="optional"&gt;
083:         *                  &lt;xsd:annotation&gt;
084:         *                      &lt;xsd:documentation&gt;
085:         *                       The maxFeatures attribute is used to specify the maximum
086:         *                       number of features that a GetFeature operation should
087:         *                       generate (regardless of the actual number of query hits).
088:         *                    &lt;/xsd:documentation&gt;
089:         *                  &lt;/xsd:annotation&gt;
090:         *              &lt;/xsd:attribute&gt;
091:         *              &lt;xsd:attribute name="traverseXlinkDepth" type="xsd:string" use="optional"&gt;
092:         *                  &lt;xsd:annotation&gt;
093:         *                      &lt;xsd:documentation&gt;
094:         *                       This attribute indicates the depth to which nested property
095:         *                       XLink linking element locator attribute (href) XLinks are
096:         *                       traversed and resolved if possible.  A value of "1"
097:         *                       indicates that one linking element locator attribute
098:         *                       (href) Xlink will be traversed and the referenced element
099:         *                       returned if possible, but nested property XLink linking
100:         *                       element locator attribute (href) XLinks in the returned
101:         *                       element are not traversed.  A value of "*" indicates that
102:         *                       all nested property XLink linking element locator attribute
103:         *                       (href) XLinks will be traversed and the referenced elements
104:         *                       returned if possible.  The range of valid values for this
105:         *                       attribute consists of positive integers plus "*".
106:         *                       If this attribute is not specified then no xlinks shall be
107:         *                       resolved and the value of traverseXlinkExpiry attribute (if
108:         *                       it specified) may be ignored.
109:         *                    &lt;/xsd:documentation&gt;
110:         *                  &lt;/xsd:annotation&gt;
111:         *              &lt;/xsd:attribute&gt;
112:         *              &lt;xsd:attribute name="traverseXlinkExpiry"
113:         *                  type="xsd:positiveInteger" use="optional"&gt;
114:         *                  &lt;xsd:annotation&gt;
115:         *                      &lt;xsd:documentation&gt;
116:         *                       The traverseXlinkExpiry attribute value is specified in
117:         *                       minutes.  It indicates how long a Web Feature Service
118:         *                       should wait to receive a response to a nested GetGmlObject
119:         *                       request.
120:         *                       This attribute is only relevant if a value is specified
121:         *                       for the traverseXlinkDepth attribute.
122:         *                    &lt;/xsd:documentation&gt;
123:         *                  &lt;/xsd:annotation&gt;
124:         *              &lt;/xsd:attribute&gt;
125:         *          &lt;/xsd:extension&gt;
126:         *      &lt;/xsd:complexContent&gt;
127:         *  &lt;/xsd:complexType&gt;
128:         *
129:         *          </code>
130:         *         </pre>
131:         * </p>
132:         *
133:         * @generated
134:         */
135:        public class GetFeatureTypeBinding extends AbstractComplexBinding {
136:            WfsFactory wfsfactory;
137:
138:            public GetFeatureTypeBinding(WfsFactory wfsfactory) {
139:                this .wfsfactory = wfsfactory;
140:            }
141:
142:            /**
143:             * @generated
144:             */
145:            public QName getTarget() {
146:                return WFS.GETFEATURETYPE;
147:            }
148:
149:            /**
150:             * Sets execution mode to be before
151:             */
152:            public int getExecutionMode() {
153:                return BEFORE;
154:            }
155:
156:            /**
157:             * <!-- begin-user-doc -->
158:             * <!-- end-user-doc -->
159:             *
160:             * @generated modifiable
161:             */
162:            public Class getType() {
163:                return GetFeatureType.class;
164:            }
165:
166:            /**
167:             * <!-- begin-user-doc -->
168:             * <!-- end-user-doc -->
169:             *
170:             * @generated modifiable
171:             */
172:            public Object parse(ElementInstance instance, Node node,
173:                    Object value) throws Exception {
174:                GetFeatureType getFeature = wfsfactory.createGetFeatureType();
175:
176:                //lt;xsd:element maxOccurs="unbounded" ref="wfs:Query"/&gt;
177:                getFeature.getQuery().addAll(
178:                        node.getChildValues(QueryType.class));
179:
180:                //&lt;xsd:attribute default="results" name="resultType"
181:                //      type="wfs:ResultTypeType" use="optional"&gt;
182:                if (node.hasAttribute("resultType")) {
183:                    getFeature.setResultType((ResultTypeType) node
184:                            .getAttributeValue("resultType"));
185:                }
186:
187:                //&lt;xsd:attribute default="text/xml; subtype=gml/3.1.1"
188:                //		name="outputFormat" type="xsd:string" use="optional"&gt;
189:                if (node.hasAttribute("outputFormat")) {
190:                    getFeature.setOutputFormat((String) node
191:                            .getAttributeValue("outputFormat"));
192:                }
193:
194:                //&lt;xsd:attribute name="maxFeatures" type="xsd:positiveInteger" use="optional"&gt;
195:                if (node.hasAttribute("maxFeatures")) {
196:                    getFeature.setMaxFeatures((BigInteger) node
197:                            .getAttributeValue("maxFeatures"));
198:                }
199:
200:                //&lt;xsd:attribute name="traverseXlinkDepth" type="xsd:string" use="optional"&gt;
201:                if (node.hasAttribute("traverseXlinkDepth")) {
202:                    getFeature.setTraverseXlinkDepth((String) node
203:                            .getAttributeValue("traverseXlinkDepth"));
204:                }
205:
206:                //&lt;xsd:attribute name="traverseXlinkExpiry"
207:                //		type="xsd:positiveInteger" use="optional"&gt;
208:                if (node.hasAttribute("traverseXlinkExpiry")) {
209:                    getFeature.setTraverseXlinkExpiry((BigInteger) node
210:                            .getAttributeValue("traverseXlinkExpiry"));
211:                }
212:
213:                return getFeature;
214:            }
215:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.