Source Code Cross Referenced for GetCapabilitiesTypeImpl.java in  » GIS » GeoServer » net » opengis » ows » impl » 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 » net.opengis.ows.impl 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * <copyright>
003:         * </copyright>
004:         *
005:         * $Id: GetCapabilitiesTypeImpl.java 7522 2007-09-12 22:00:10Z saul.farber $
006:         */package net.opengis.ows.impl;
007:
008:        import net.opengis.ows.AcceptFormatsType;
009:        import net.opengis.ows.AcceptVersionsType;
010:        import net.opengis.ows.GetCapabilitiesType;
011:        import net.opengis.ows.OwsPackage;
012:        import net.opengis.ows.SectionsType;
013:
014:        import org.eclipse.emf.common.notify.Notification;
015:        import org.eclipse.emf.common.notify.NotificationChain;
016:
017:        import org.eclipse.emf.ecore.EClass;
018:        import org.eclipse.emf.ecore.InternalEObject;
019:
020:        import org.eclipse.emf.ecore.impl.ENotificationImpl;
021:        import org.eclipse.emf.ecore.impl.EObjectImpl;
022:
023:        /**
024:         * <!-- begin-user-doc -->
025:         * An implementation of the model object '<em><b>Get Capabilities Type</b></em>'.
026:         * <!-- end-user-doc -->
027:         * <p>
028:         * The following features are implemented:
029:         * <ul>
030:         *   <li>{@link net.opengis.ows.impl.GetCapabilitiesTypeImpl#getAcceptVersions <em>Accept Versions</em>}</li>
031:         *   <li>{@link net.opengis.ows.impl.GetCapabilitiesTypeImpl#getSections <em>Sections</em>}</li>
032:         *   <li>{@link net.opengis.ows.impl.GetCapabilitiesTypeImpl#getAcceptFormats <em>Accept Formats</em>}</li>
033:         *   <li>{@link net.opengis.ows.impl.GetCapabilitiesTypeImpl#getUpdateSequence <em>Update Sequence</em>}</li>
034:         *   <li>{@link net.opengis.ows.impl.GetCapabilitiesTypeImpl#getBaseUrl <em>Base Url</em>}</li>
035:         * </ul>
036:         * </p>
037:         *
038:         * @generated
039:         */
040:        public class GetCapabilitiesTypeImpl extends EObjectImpl implements 
041:                GetCapabilitiesType {
042:            /**
043:             * The cached value of the '{@link #getAcceptVersions() <em>Accept Versions</em>}' containment reference.
044:             * <!-- begin-user-doc -->
045:             * <!-- end-user-doc -->
046:             * @see #getAcceptVersions()
047:             * @generated
048:             * @ordered
049:             */
050:            protected AcceptVersionsType acceptVersions;
051:
052:            /**
053:             * The cached value of the '{@link #getSections() <em>Sections</em>}' containment reference.
054:             * <!-- begin-user-doc -->
055:             * <!-- end-user-doc -->
056:             * @see #getSections()
057:             * @generated
058:             * @ordered
059:             */
060:            protected SectionsType sections;
061:
062:            /**
063:             * The cached value of the '{@link #getAcceptFormats() <em>Accept Formats</em>}' containment reference.
064:             * <!-- begin-user-doc -->
065:             * <!-- end-user-doc -->
066:             * @see #getAcceptFormats()
067:             * @generated
068:             * @ordered
069:             */
070:            protected AcceptFormatsType acceptFormats;
071:
072:            /**
073:             * The default value of the '{@link #getUpdateSequence() <em>Update Sequence</em>}' attribute.
074:             * <!-- begin-user-doc -->
075:             * <!-- end-user-doc -->
076:             * @see #getUpdateSequence()
077:             * @generated
078:             * @ordered
079:             */
080:            protected static final String UPDATE_SEQUENCE_EDEFAULT = null;
081:
082:            /**
083:             * The cached value of the '{@link #getUpdateSequence() <em>Update Sequence</em>}' attribute.
084:             * <!-- begin-user-doc -->
085:             * <!-- end-user-doc -->
086:             * @see #getUpdateSequence()
087:             * @generated
088:             * @ordered
089:             */
090:            protected String updateSequence = UPDATE_SEQUENCE_EDEFAULT;
091:
092:            /**
093:             * The default value of the '{@link #getBaseUrl() <em>Base Url</em>}' attribute.
094:             * <!-- begin-user-doc -->
095:             * <!-- end-user-doc -->
096:             * @see #getBaseUrl()
097:             * @generated
098:             * @ordered
099:             */
100:            protected static final String BASE_URL_EDEFAULT = null;
101:
102:            /**
103:             * The cached value of the '{@link #getBaseUrl() <em>Base Url</em>}' attribute.
104:             * <!-- begin-user-doc -->
105:             * <!-- end-user-doc -->
106:             * @see #getBaseUrl()
107:             * @generated
108:             * @ordered
109:             */
110:            protected String baseUrl = BASE_URL_EDEFAULT;
111:
112:            /**
113:             * <!-- begin-user-doc -->
114:             * <!-- end-user-doc -->
115:             * @generated
116:             */
117:            protected GetCapabilitiesTypeImpl() {
118:                super ();
119:            }
120:
121:            /**
122:             * <!-- begin-user-doc -->
123:             * <!-- end-user-doc -->
124:             * @generated
125:             */
126:            protected EClass eStaticClass() {
127:                return OwsPackage.Literals.GET_CAPABILITIES_TYPE;
128:            }
129:
130:            /**
131:             * <!-- begin-user-doc -->
132:             * <!-- end-user-doc -->
133:             * @generated
134:             */
135:            public AcceptVersionsType getAcceptVersions() {
136:                return acceptVersions;
137:            }
138:
139:            /**
140:             * <!-- begin-user-doc -->
141:             * <!-- end-user-doc -->
142:             * @generated
143:             */
144:            public NotificationChain basicSetAcceptVersions(
145:                    AcceptVersionsType newAcceptVersions, NotificationChain msgs) {
146:                AcceptVersionsType oldAcceptVersions = acceptVersions;
147:                acceptVersions = newAcceptVersions;
148:                if (eNotificationRequired()) {
149:                    ENotificationImpl notification = new ENotificationImpl(
150:                            this , Notification.SET,
151:                            OwsPackage.GET_CAPABILITIES_TYPE__ACCEPT_VERSIONS,
152:                            oldAcceptVersions, newAcceptVersions);
153:                    if (msgs == null)
154:                        msgs = notification;
155:                    else
156:                        msgs.add(notification);
157:                }
158:                return msgs;
159:            }
160:
161:            /**
162:             * <!-- begin-user-doc -->
163:             * <!-- end-user-doc -->
164:             * @generated
165:             */
166:            public void setAcceptVersions(AcceptVersionsType newAcceptVersions) {
167:                if (newAcceptVersions != acceptVersions) {
168:                    NotificationChain msgs = null;
169:                    if (acceptVersions != null)
170:                        msgs = ((InternalEObject) acceptVersions)
171:                                .eInverseRemove(
172:                                        this ,
173:                                        EOPPOSITE_FEATURE_BASE
174:                                                - OwsPackage.GET_CAPABILITIES_TYPE__ACCEPT_VERSIONS,
175:                                        null, msgs);
176:                    if (newAcceptVersions != null)
177:                        msgs = ((InternalEObject) newAcceptVersions)
178:                                .eInverseAdd(
179:                                        this ,
180:                                        EOPPOSITE_FEATURE_BASE
181:                                                - OwsPackage.GET_CAPABILITIES_TYPE__ACCEPT_VERSIONS,
182:                                        null, msgs);
183:                    msgs = basicSetAcceptVersions(newAcceptVersions, msgs);
184:                    if (msgs != null)
185:                        msgs.dispatch();
186:                } else if (eNotificationRequired())
187:                    eNotify(new ENotificationImpl(this , Notification.SET,
188:                            OwsPackage.GET_CAPABILITIES_TYPE__ACCEPT_VERSIONS,
189:                            newAcceptVersions, newAcceptVersions));
190:            }
191:
192:            /**
193:             * <!-- begin-user-doc -->
194:             * <!-- end-user-doc -->
195:             * @generated
196:             */
197:            public SectionsType getSections() {
198:                return sections;
199:            }
200:
201:            /**
202:             * <!-- begin-user-doc -->
203:             * <!-- end-user-doc -->
204:             * @generated
205:             */
206:            public NotificationChain basicSetSections(SectionsType newSections,
207:                    NotificationChain msgs) {
208:                SectionsType oldSections = sections;
209:                sections = newSections;
210:                if (eNotificationRequired()) {
211:                    ENotificationImpl notification = new ENotificationImpl(
212:                            this , Notification.SET,
213:                            OwsPackage.GET_CAPABILITIES_TYPE__SECTIONS,
214:                            oldSections, newSections);
215:                    if (msgs == null)
216:                        msgs = notification;
217:                    else
218:                        msgs.add(notification);
219:                }
220:                return msgs;
221:            }
222:
223:            /**
224:             * <!-- begin-user-doc -->
225:             * <!-- end-user-doc -->
226:             * @generated
227:             */
228:            public void setSections(SectionsType newSections) {
229:                if (newSections != sections) {
230:                    NotificationChain msgs = null;
231:                    if (sections != null)
232:                        msgs = ((InternalEObject) sections)
233:                                .eInverseRemove(
234:                                        this ,
235:                                        EOPPOSITE_FEATURE_BASE
236:                                                - OwsPackage.GET_CAPABILITIES_TYPE__SECTIONS,
237:                                        null, msgs);
238:                    if (newSections != null)
239:                        msgs = ((InternalEObject) newSections)
240:                                .eInverseAdd(
241:                                        this ,
242:                                        EOPPOSITE_FEATURE_BASE
243:                                                - OwsPackage.GET_CAPABILITIES_TYPE__SECTIONS,
244:                                        null, msgs);
245:                    msgs = basicSetSections(newSections, msgs);
246:                    if (msgs != null)
247:                        msgs.dispatch();
248:                } else if (eNotificationRequired())
249:                    eNotify(new ENotificationImpl(this , Notification.SET,
250:                            OwsPackage.GET_CAPABILITIES_TYPE__SECTIONS,
251:                            newSections, newSections));
252:            }
253:
254:            /**
255:             * <!-- begin-user-doc -->
256:             * <!-- end-user-doc -->
257:             * @generated
258:             */
259:            public AcceptFormatsType getAcceptFormats() {
260:                return acceptFormats;
261:            }
262:
263:            /**
264:             * <!-- begin-user-doc -->
265:             * <!-- end-user-doc -->
266:             * @generated
267:             */
268:            public NotificationChain basicSetAcceptFormats(
269:                    AcceptFormatsType newAcceptFormats, NotificationChain msgs) {
270:                AcceptFormatsType oldAcceptFormats = acceptFormats;
271:                acceptFormats = newAcceptFormats;
272:                if (eNotificationRequired()) {
273:                    ENotificationImpl notification = new ENotificationImpl(
274:                            this , Notification.SET,
275:                            OwsPackage.GET_CAPABILITIES_TYPE__ACCEPT_FORMATS,
276:                            oldAcceptFormats, newAcceptFormats);
277:                    if (msgs == null)
278:                        msgs = notification;
279:                    else
280:                        msgs.add(notification);
281:                }
282:                return msgs;
283:            }
284:
285:            /**
286:             * <!-- begin-user-doc -->
287:             * <!-- end-user-doc -->
288:             * @generated
289:             */
290:            public void setAcceptFormats(AcceptFormatsType newAcceptFormats) {
291:                if (newAcceptFormats != acceptFormats) {
292:                    NotificationChain msgs = null;
293:                    if (acceptFormats != null)
294:                        msgs = ((InternalEObject) acceptFormats)
295:                                .eInverseRemove(
296:                                        this ,
297:                                        EOPPOSITE_FEATURE_BASE
298:                                                - OwsPackage.GET_CAPABILITIES_TYPE__ACCEPT_FORMATS,
299:                                        null, msgs);
300:                    if (newAcceptFormats != null)
301:                        msgs = ((InternalEObject) newAcceptFormats)
302:                                .eInverseAdd(
303:                                        this ,
304:                                        EOPPOSITE_FEATURE_BASE
305:                                                - OwsPackage.GET_CAPABILITIES_TYPE__ACCEPT_FORMATS,
306:                                        null, msgs);
307:                    msgs = basicSetAcceptFormats(newAcceptFormats, msgs);
308:                    if (msgs != null)
309:                        msgs.dispatch();
310:                } else if (eNotificationRequired())
311:                    eNotify(new ENotificationImpl(this , Notification.SET,
312:                            OwsPackage.GET_CAPABILITIES_TYPE__ACCEPT_FORMATS,
313:                            newAcceptFormats, newAcceptFormats));
314:            }
315:
316:            /**
317:             * <!-- begin-user-doc -->
318:             * <!-- end-user-doc -->
319:             * @generated
320:             */
321:            public String getUpdateSequence() {
322:                return updateSequence;
323:            }
324:
325:            /**
326:             * <!-- begin-user-doc -->
327:             * <!-- end-user-doc -->
328:             * @generated
329:             */
330:            public void setUpdateSequence(String newUpdateSequence) {
331:                String oldUpdateSequence = updateSequence;
332:                updateSequence = newUpdateSequence;
333:                if (eNotificationRequired())
334:                    eNotify(new ENotificationImpl(this , Notification.SET,
335:                            OwsPackage.GET_CAPABILITIES_TYPE__UPDATE_SEQUENCE,
336:                            oldUpdateSequence, updateSequence));
337:            }
338:
339:            /**
340:             * <!-- begin-user-doc -->
341:             * <!-- end-user-doc -->
342:             * @generated
343:             */
344:            public String getBaseUrl() {
345:                return baseUrl;
346:            }
347:
348:            /**
349:             * <!-- begin-user-doc -->
350:             * <!-- end-user-doc -->
351:             * @generated
352:             */
353:            public void setBaseUrl(String newBaseUrl) {
354:                String oldBaseUrl = baseUrl;
355:                baseUrl = newBaseUrl;
356:                if (eNotificationRequired())
357:                    eNotify(new ENotificationImpl(this , Notification.SET,
358:                            OwsPackage.GET_CAPABILITIES_TYPE__BASE_URL,
359:                            oldBaseUrl, baseUrl));
360:            }
361:
362:            /**
363:             * <!-- begin-user-doc -->
364:             * <!-- end-user-doc -->
365:             * @generated
366:             */
367:            public NotificationChain eInverseRemove(InternalEObject otherEnd,
368:                    int featureID, NotificationChain msgs) {
369:                switch (featureID) {
370:                case OwsPackage.GET_CAPABILITIES_TYPE__ACCEPT_VERSIONS:
371:                    return basicSetAcceptVersions(null, msgs);
372:                case OwsPackage.GET_CAPABILITIES_TYPE__SECTIONS:
373:                    return basicSetSections(null, msgs);
374:                case OwsPackage.GET_CAPABILITIES_TYPE__ACCEPT_FORMATS:
375:                    return basicSetAcceptFormats(null, msgs);
376:                }
377:                return super .eInverseRemove(otherEnd, featureID, msgs);
378:            }
379:
380:            /**
381:             * <!-- begin-user-doc -->
382:             * <!-- end-user-doc -->
383:             * @generated
384:             */
385:            public Object eGet(int featureID, boolean resolve, boolean coreType) {
386:                switch (featureID) {
387:                case OwsPackage.GET_CAPABILITIES_TYPE__ACCEPT_VERSIONS:
388:                    return getAcceptVersions();
389:                case OwsPackage.GET_CAPABILITIES_TYPE__SECTIONS:
390:                    return getSections();
391:                case OwsPackage.GET_CAPABILITIES_TYPE__ACCEPT_FORMATS:
392:                    return getAcceptFormats();
393:                case OwsPackage.GET_CAPABILITIES_TYPE__UPDATE_SEQUENCE:
394:                    return getUpdateSequence();
395:                case OwsPackage.GET_CAPABILITIES_TYPE__BASE_URL:
396:                    return getBaseUrl();
397:                }
398:                return super .eGet(featureID, resolve, coreType);
399:            }
400:
401:            /**
402:             * <!-- begin-user-doc -->
403:             * <!-- end-user-doc -->
404:             * @generated
405:             */
406:            public void eSet(int featureID, Object newValue) {
407:                switch (featureID) {
408:                case OwsPackage.GET_CAPABILITIES_TYPE__ACCEPT_VERSIONS:
409:                    setAcceptVersions((AcceptVersionsType) newValue);
410:                    return;
411:                case OwsPackage.GET_CAPABILITIES_TYPE__SECTIONS:
412:                    setSections((SectionsType) newValue);
413:                    return;
414:                case OwsPackage.GET_CAPABILITIES_TYPE__ACCEPT_FORMATS:
415:                    setAcceptFormats((AcceptFormatsType) newValue);
416:                    return;
417:                case OwsPackage.GET_CAPABILITIES_TYPE__UPDATE_SEQUENCE:
418:                    setUpdateSequence((String) newValue);
419:                    return;
420:                case OwsPackage.GET_CAPABILITIES_TYPE__BASE_URL:
421:                    setBaseUrl((String) newValue);
422:                    return;
423:                }
424:                super .eSet(featureID, newValue);
425:            }
426:
427:            /**
428:             * <!-- begin-user-doc -->
429:             * <!-- end-user-doc -->
430:             * @generated
431:             */
432:            public void eUnset(int featureID) {
433:                switch (featureID) {
434:                case OwsPackage.GET_CAPABILITIES_TYPE__ACCEPT_VERSIONS:
435:                    setAcceptVersions((AcceptVersionsType) null);
436:                    return;
437:                case OwsPackage.GET_CAPABILITIES_TYPE__SECTIONS:
438:                    setSections((SectionsType) null);
439:                    return;
440:                case OwsPackage.GET_CAPABILITIES_TYPE__ACCEPT_FORMATS:
441:                    setAcceptFormats((AcceptFormatsType) null);
442:                    return;
443:                case OwsPackage.GET_CAPABILITIES_TYPE__UPDATE_SEQUENCE:
444:                    setUpdateSequence(UPDATE_SEQUENCE_EDEFAULT);
445:                    return;
446:                case OwsPackage.GET_CAPABILITIES_TYPE__BASE_URL:
447:                    setBaseUrl(BASE_URL_EDEFAULT);
448:                    return;
449:                }
450:                super .eUnset(featureID);
451:            }
452:
453:            /**
454:             * <!-- begin-user-doc -->
455:             * <!-- end-user-doc -->
456:             * @generated
457:             */
458:            public boolean eIsSet(int featureID) {
459:                switch (featureID) {
460:                case OwsPackage.GET_CAPABILITIES_TYPE__ACCEPT_VERSIONS:
461:                    return acceptVersions != null;
462:                case OwsPackage.GET_CAPABILITIES_TYPE__SECTIONS:
463:                    return sections != null;
464:                case OwsPackage.GET_CAPABILITIES_TYPE__ACCEPT_FORMATS:
465:                    return acceptFormats != null;
466:                case OwsPackage.GET_CAPABILITIES_TYPE__UPDATE_SEQUENCE:
467:                    return UPDATE_SEQUENCE_EDEFAULT == null ? updateSequence != null
468:                            : !UPDATE_SEQUENCE_EDEFAULT.equals(updateSequence);
469:                case OwsPackage.GET_CAPABILITIES_TYPE__BASE_URL:
470:                    return BASE_URL_EDEFAULT == null ? baseUrl != null
471:                            : !BASE_URL_EDEFAULT.equals(baseUrl);
472:                }
473:                return super .eIsSet(featureID);
474:            }
475:
476:            /**
477:             * <!-- begin-user-doc -->
478:             * <!-- end-user-doc -->
479:             * @generated
480:             */
481:            public String toString() {
482:                if (eIsProxy())
483:                    return super .toString();
484:
485:                StringBuffer result = new StringBuffer(super .toString());
486:                result.append(" (updateSequence: ");
487:                result.append(updateSequence);
488:                result.append(", baseUrl: ");
489:                result.append(baseUrl);
490:                result.append(')');
491:                return result.toString();
492:            }
493:
494:        } //GetCapabilitiesTypeImpl
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.