Source Code Cross Referenced for GetLogTypeBinding.java in  » GIS » GeoServer » org » geoserver » wfsv » 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.wfsv.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.wfsv.xml.v1_1_0;
006:
007:        import java.math.BigInteger;
008:
009:        import net.opengis.wfs.ResultTypeType;
010:        import net.opengis.wfsv.DifferenceQueryType;
011:        import net.opengis.wfsv.GetLogType;
012:        import net.opengis.wfsv.WfsvFactory;
013:        import org.geotools.xml.AbstractComplexBinding;
014:        import org.geotools.xml.ElementInstance;
015:        import org.geotools.xml.Node;
016:        import javax.xml.namespace.QName;
017:
018:        /**
019:         * Binding object for the type http://www.opengis.net/wfsv:GetLogType.
020:         *
021:         * <p>
022:         *        <pre>
023:         *         <code>
024:         *  &lt;xsd:complexType name="GetLogType"&gt;
025:         *      &lt;xsd:annotation&gt;
026:         *          &lt;xsd:documentation&gt;
027:         *              A GetLog element contains one or more DifferenceQuery elements
028:         *              that describe a diffence query operation on one feature type.
029:         *              In response to a GetLog request, a Web Feature Service
030:         *              must be able to generate a list of logs entries for features matched
031:         *              by the DifferenceQuery parameters. Each log entry is an instance
032:         *              of the ChangeSet feature type.
033:         *              In response to a GetFeature request, a Versioning Web Feature Service
034:         *              must be able to generate a GML3 response that validates
035:         *              using a schema generated by the DescribeFeatureType request against
036:         *              the ChangeSets feature type.
037:         *              A Web Feature Service may support other possibly non-XML
038:         *              (and even binary) output formats as long as those formats
039:         *              are advertised in the capabilities document.
040:         *           &lt;/xsd:documentation&gt;
041:         *      &lt;/xsd:annotation&gt;
042:         *      &lt;xsd:complexContent&gt;
043:         *          &lt;xsd:extension base="wfs:BaseRequestType"&gt;
044:         *              &lt;xsd:sequence&gt;
045:         *                  &lt;xsd:element maxOccurs="unbounded" ref="wfsv:DifferenceQuery"/&gt;
046:         *              &lt;/xsd:sequence&gt;
047:         *              &lt;xsd:attribute default="results" name="resultType"
048:         *                  type="wfs:ResultTypeType" use="optional"&gt;
049:         *                  &lt;xsd:annotation&gt;
050:         *                      &lt;xsd:documentation&gt;
051:         *                       The resultType attribute is used to indicate
052:         *                       what response a wfsv should return to user once
053:         *                       a GetFeature request is processed.
054:         *                       Possible values are:
055:         *                          results - meaning that the full response set
056:         *                                    (i.e. all the feature instances)
057:         *                                    should be returned.
058:         *                          hits    - meaning that an empty response set
059:         *                                    should be returned (i.e. no feature
060:         *                                    instances should be returned) but
061:         *                                    the "numberOfFeatures" attribute
062:         *                                    should be set to the number of feature
063:         *                                    instances that would be returned.
064:         *                    &lt;/xsd:documentation&gt;
065:         *                  &lt;/xsd:annotation&gt;
066:         *              &lt;/xsd:attribute&gt;
067:         *              &lt;xsd:attribute default="text/xml; subtype=gml/3.1.1"
068:         *                  name="outputFormat" type="xsd:string" use="optional"&gt;
069:         *                  &lt;xsd:annotation&gt;
070:         *                      &lt;xsd:documentation&gt;
071:         *                       The outputFormat attribute is used to specify the output
072:         *                       format that the Versioning Web Feature Service should generate in
073:         *                       response to a GetLog element.
074:         *                       The default value of 'text/xml; subtype=gml/3.1.1'
075:         *                       indicates that the output is an XML document that
076:         *                       conforms to the Geography Markup Language (GML)
077:         *                       Implementation Specification V3.1.1.
078:         *                       For the purposes of experimentation, vendor extension,
079:         *                       or even extensions that serve a specific community of
080:         *                       interest, other acceptable output format values may be
081:         *                       used to specify other formats as long as those values
082:         *                       are advertised in the capabilities document.
083:         *                    &lt;/xsd:documentation&gt;
084:         *                  &lt;/xsd:annotation&gt;
085:         *              &lt;/xsd:attribute&gt;
086:         *              &lt;xsd:attribute name="maxFeatures" type="xsd:positiveInteger" use="optional"&gt;
087:         *                  &lt;xsd:annotation&gt;
088:         *                      &lt;xsd:documentation&gt;
089:         *                       The maxFeatures attribute is used to specify the maximum
090:         *                       number of features that a GetFeature operation should
091:         *                       generate (regardless of the actual number of query hits).
092:         *                    &lt;/xsd:documentation&gt;
093:         *                  &lt;/xsd:annotation&gt;
094:         *              &lt;/xsd:attribute&gt;
095:         *          &lt;/xsd:extension&gt;
096:         *      &lt;/xsd:complexContent&gt;
097:         *  &lt;/xsd:complexType&gt;
098:         *
099:         *          </code>
100:         *         </pre>
101:         * </p>
102:         *
103:         * @generated
104:         */
105:        public class GetLogTypeBinding extends AbstractComplexBinding {
106:            private WfsvFactory wfsvFactory;
107:
108:            public GetLogTypeBinding(WfsvFactory wfsvFactory) {
109:                this .wfsvFactory = wfsvFactory;
110:            }
111:
112:            /**
113:             * @generated
114:             */
115:            public QName getTarget() {
116:                return WFSV.GetLogType;
117:            }
118:
119:            /**
120:             * <!-- begin-user-doc -->
121:             * <!-- end-user-doc -->
122:             *
123:             * @generated modifiable
124:             */
125:            public Class getType() {
126:                return GetLogType.class;
127:            }
128:
129:            /**
130:             * <!-- begin-user-doc -->
131:             * <!-- end-user-doc -->
132:             *
133:             * @generated modifiable
134:             */
135:            public Object parse(ElementInstance instance, Node node,
136:                    Object value) throws Exception {
137:                GetLogType result = wfsvFactory.createGetLogType();
138:                result.getDifferenceQuery().addAll(
139:                        node.getChildValues(DifferenceQueryType.class));
140:
141:                if (node.hasAttribute("resultType")) {
142:                    result.setResultType((ResultTypeType) node
143:                            .getAttributeValue("resultType"));
144:                }
145:                if (node.hasAttribute("version"))
146:                    result.setVersion((String) node
147:                            .getAttributeValue("version"));
148:                else
149:                    result.setVersion("1.1.0");
150:
151:                if (node.hasAttribute("outputFormat")) {
152:                    result.setOutputFormat((String) node
153:                            .getAttributeValue("outputFormat"));
154:                } else {
155:                    if ("1.0.0".equals(result.getVersion()))
156:                        result.setOutputFormat("GML2");
157:                    else
158:                        result.setOutputFormat("text/xml; subtype=gml/3.1.1");
159:                }
160:
161:                if (node.hasAttribute("maxFeatures")) {
162:                    result.setMaxFeatures((BigInteger) node
163:                            .getAttributeValue("maxFeatures"));
164:                }
165:
166:                return result;
167:            }
168:
169:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.