Source Code Cross Referenced for CapabilitiesBaseTypeImpl.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: CapabilitiesBaseTypeImpl.java 7522 2007-09-12 22:00:10Z saul.farber $
006:         */package net.opengis.ows.impl;
007:
008:        import net.opengis.ows.CapabilitiesBaseType;
009:        import net.opengis.ows.OperationsMetadataType;
010:        import net.opengis.ows.OwsPackage;
011:        import net.opengis.ows.ServiceIdentificationType;
012:        import net.opengis.ows.ServiceProviderType;
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>Capabilities Base Type</b></em>'.
026:         * <!-- end-user-doc -->
027:         * <p>
028:         * The following features are implemented:
029:         * <ul>
030:         *   <li>{@link net.opengis.ows.impl.CapabilitiesBaseTypeImpl#getServiceIdentification <em>Service Identification</em>}</li>
031:         *   <li>{@link net.opengis.ows.impl.CapabilitiesBaseTypeImpl#getServiceProvider <em>Service Provider</em>}</li>
032:         *   <li>{@link net.opengis.ows.impl.CapabilitiesBaseTypeImpl#getOperationsMetadata <em>Operations Metadata</em>}</li>
033:         *   <li>{@link net.opengis.ows.impl.CapabilitiesBaseTypeImpl#getUpdateSequence <em>Update Sequence</em>}</li>
034:         *   <li>{@link net.opengis.ows.impl.CapabilitiesBaseTypeImpl#getVersion <em>Version</em>}</li>
035:         * </ul>
036:         * </p>
037:         *
038:         * @generated
039:         */
040:        public class CapabilitiesBaseTypeImpl extends EObjectImpl implements 
041:                CapabilitiesBaseType {
042:            /**
043:             * The cached value of the '{@link #getServiceIdentification() <em>Service Identification</em>}' containment reference.
044:             * <!-- begin-user-doc -->
045:             * <!-- end-user-doc -->
046:             * @see #getServiceIdentification()
047:             * @generated
048:             * @ordered
049:             */
050:            protected ServiceIdentificationType serviceIdentification;
051:
052:            /**
053:             * The cached value of the '{@link #getServiceProvider() <em>Service Provider</em>}' containment reference.
054:             * <!-- begin-user-doc -->
055:             * <!-- end-user-doc -->
056:             * @see #getServiceProvider()
057:             * @generated
058:             * @ordered
059:             */
060:            protected ServiceProviderType serviceProvider;
061:
062:            /**
063:             * The cached value of the '{@link #getOperationsMetadata() <em>Operations Metadata</em>}' containment reference.
064:             * <!-- begin-user-doc -->
065:             * <!-- end-user-doc -->
066:             * @see #getOperationsMetadata()
067:             * @generated
068:             * @ordered
069:             */
070:            protected OperationsMetadataType operationsMetadata;
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 #getVersion() <em>Version</em>}' attribute.
094:             * <!-- begin-user-doc -->
095:             * <!-- end-user-doc -->
096:             * @see #getVersion()
097:             * @generated
098:             * @ordered
099:             */
100:            protected static final String VERSION_EDEFAULT = null;
101:
102:            /**
103:             * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute.
104:             * <!-- begin-user-doc -->
105:             * <!-- end-user-doc -->
106:             * @see #getVersion()
107:             * @generated
108:             * @ordered
109:             */
110:            protected String version = VERSION_EDEFAULT;
111:
112:            /**
113:             * <!-- begin-user-doc -->
114:             * <!-- end-user-doc -->
115:             * @generated
116:             */
117:            protected CapabilitiesBaseTypeImpl() {
118:                super ();
119:            }
120:
121:            /**
122:             * <!-- begin-user-doc -->
123:             * <!-- end-user-doc -->
124:             * @generated
125:             */
126:            protected EClass eStaticClass() {
127:                return OwsPackage.Literals.CAPABILITIES_BASE_TYPE;
128:            }
129:
130:            /**
131:             * <!-- begin-user-doc -->
132:             * <!-- end-user-doc -->
133:             * @generated
134:             */
135:            public ServiceIdentificationType getServiceIdentification() {
136:                return serviceIdentification;
137:            }
138:
139:            /**
140:             * <!-- begin-user-doc -->
141:             * <!-- end-user-doc -->
142:             * @generated
143:             */
144:            public NotificationChain basicSetServiceIdentification(
145:                    ServiceIdentificationType newServiceIdentification,
146:                    NotificationChain msgs) {
147:                ServiceIdentificationType oldServiceIdentification = serviceIdentification;
148:                serviceIdentification = newServiceIdentification;
149:                if (eNotificationRequired()) {
150:                    ENotificationImpl notification = new ENotificationImpl(
151:                            this ,
152:                            Notification.SET,
153:                            OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_IDENTIFICATION,
154:                            oldServiceIdentification, newServiceIdentification);
155:                    if (msgs == null)
156:                        msgs = notification;
157:                    else
158:                        msgs.add(notification);
159:                }
160:                return msgs;
161:            }
162:
163:            /**
164:             * <!-- begin-user-doc -->
165:             * <!-- end-user-doc -->
166:             * @generated
167:             */
168:            public void setServiceIdentification(
169:                    ServiceIdentificationType newServiceIdentification) {
170:                if (newServiceIdentification != serviceIdentification) {
171:                    NotificationChain msgs = null;
172:                    if (serviceIdentification != null)
173:                        msgs = ((InternalEObject) serviceIdentification)
174:                                .eInverseRemove(
175:                                        this ,
176:                                        EOPPOSITE_FEATURE_BASE
177:                                                - OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_IDENTIFICATION,
178:                                        null, msgs);
179:                    if (newServiceIdentification != null)
180:                        msgs = ((InternalEObject) newServiceIdentification)
181:                                .eInverseAdd(
182:                                        this ,
183:                                        EOPPOSITE_FEATURE_BASE
184:                                                - OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_IDENTIFICATION,
185:                                        null, msgs);
186:                    msgs = basicSetServiceIdentification(
187:                            newServiceIdentification, msgs);
188:                    if (msgs != null)
189:                        msgs.dispatch();
190:                } else if (eNotificationRequired())
191:                    eNotify(new ENotificationImpl(
192:                            this ,
193:                            Notification.SET,
194:                            OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_IDENTIFICATION,
195:                            newServiceIdentification, newServiceIdentification));
196:            }
197:
198:            /**
199:             * <!-- begin-user-doc -->
200:             * <!-- end-user-doc -->
201:             * @generated
202:             */
203:            public ServiceProviderType getServiceProvider() {
204:                return serviceProvider;
205:            }
206:
207:            /**
208:             * <!-- begin-user-doc -->
209:             * <!-- end-user-doc -->
210:             * @generated
211:             */
212:            public NotificationChain basicSetServiceProvider(
213:                    ServiceProviderType newServiceProvider,
214:                    NotificationChain msgs) {
215:                ServiceProviderType oldServiceProvider = serviceProvider;
216:                serviceProvider = newServiceProvider;
217:                if (eNotificationRequired()) {
218:                    ENotificationImpl notification = new ENotificationImpl(
219:                            this ,
220:                            Notification.SET,
221:                            OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_PROVIDER,
222:                            oldServiceProvider, newServiceProvider);
223:                    if (msgs == null)
224:                        msgs = notification;
225:                    else
226:                        msgs.add(notification);
227:                }
228:                return msgs;
229:            }
230:
231:            /**
232:             * <!-- begin-user-doc -->
233:             * <!-- end-user-doc -->
234:             * @generated
235:             */
236:            public void setServiceProvider(
237:                    ServiceProviderType newServiceProvider) {
238:                if (newServiceProvider != serviceProvider) {
239:                    NotificationChain msgs = null;
240:                    if (serviceProvider != null)
241:                        msgs = ((InternalEObject) serviceProvider)
242:                                .eInverseRemove(
243:                                        this ,
244:                                        EOPPOSITE_FEATURE_BASE
245:                                                - OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_PROVIDER,
246:                                        null, msgs);
247:                    if (newServiceProvider != null)
248:                        msgs = ((InternalEObject) newServiceProvider)
249:                                .eInverseAdd(
250:                                        this ,
251:                                        EOPPOSITE_FEATURE_BASE
252:                                                - OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_PROVIDER,
253:                                        null, msgs);
254:                    msgs = basicSetServiceProvider(newServiceProvider, msgs);
255:                    if (msgs != null)
256:                        msgs.dispatch();
257:                } else if (eNotificationRequired())
258:                    eNotify(new ENotificationImpl(
259:                            this ,
260:                            Notification.SET,
261:                            OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_PROVIDER,
262:                            newServiceProvider, newServiceProvider));
263:            }
264:
265:            /**
266:             * <!-- begin-user-doc -->
267:             * <!-- end-user-doc -->
268:             * @generated
269:             */
270:            public OperationsMetadataType getOperationsMetadata() {
271:                return operationsMetadata;
272:            }
273:
274:            /**
275:             * <!-- begin-user-doc -->
276:             * <!-- end-user-doc -->
277:             * @generated
278:             */
279:            public NotificationChain basicSetOperationsMetadata(
280:                    OperationsMetadataType newOperationsMetadata,
281:                    NotificationChain msgs) {
282:                OperationsMetadataType oldOperationsMetadata = operationsMetadata;
283:                operationsMetadata = newOperationsMetadata;
284:                if (eNotificationRequired()) {
285:                    ENotificationImpl notification = new ENotificationImpl(
286:                            this ,
287:                            Notification.SET,
288:                            OwsPackage.CAPABILITIES_BASE_TYPE__OPERATIONS_METADATA,
289:                            oldOperationsMetadata, newOperationsMetadata);
290:                    if (msgs == null)
291:                        msgs = notification;
292:                    else
293:                        msgs.add(notification);
294:                }
295:                return msgs;
296:            }
297:
298:            /**
299:             * <!-- begin-user-doc -->
300:             * <!-- end-user-doc -->
301:             * @generated
302:             */
303:            public void setOperationsMetadata(
304:                    OperationsMetadataType newOperationsMetadata) {
305:                if (newOperationsMetadata != operationsMetadata) {
306:                    NotificationChain msgs = null;
307:                    if (operationsMetadata != null)
308:                        msgs = ((InternalEObject) operationsMetadata)
309:                                .eInverseRemove(
310:                                        this ,
311:                                        EOPPOSITE_FEATURE_BASE
312:                                                - OwsPackage.CAPABILITIES_BASE_TYPE__OPERATIONS_METADATA,
313:                                        null, msgs);
314:                    if (newOperationsMetadata != null)
315:                        msgs = ((InternalEObject) newOperationsMetadata)
316:                                .eInverseAdd(
317:                                        this ,
318:                                        EOPPOSITE_FEATURE_BASE
319:                                                - OwsPackage.CAPABILITIES_BASE_TYPE__OPERATIONS_METADATA,
320:                                        null, msgs);
321:                    msgs = basicSetOperationsMetadata(newOperationsMetadata,
322:                            msgs);
323:                    if (msgs != null)
324:                        msgs.dispatch();
325:                } else if (eNotificationRequired())
326:                    eNotify(new ENotificationImpl(
327:                            this ,
328:                            Notification.SET,
329:                            OwsPackage.CAPABILITIES_BASE_TYPE__OPERATIONS_METADATA,
330:                            newOperationsMetadata, newOperationsMetadata));
331:            }
332:
333:            /**
334:             * <!-- begin-user-doc -->
335:             * <!-- end-user-doc -->
336:             * @generated
337:             */
338:            public String getUpdateSequence() {
339:                return updateSequence;
340:            }
341:
342:            /**
343:             * <!-- begin-user-doc -->
344:             * <!-- end-user-doc -->
345:             * @generated
346:             */
347:            public void setUpdateSequence(String newUpdateSequence) {
348:                String oldUpdateSequence = updateSequence;
349:                updateSequence = newUpdateSequence;
350:                if (eNotificationRequired())
351:                    eNotify(new ENotificationImpl(this , Notification.SET,
352:                            OwsPackage.CAPABILITIES_BASE_TYPE__UPDATE_SEQUENCE,
353:                            oldUpdateSequence, updateSequence));
354:            }
355:
356:            /**
357:             * <!-- begin-user-doc -->
358:             * <!-- end-user-doc -->
359:             * @generated
360:             */
361:            public String getVersion() {
362:                return version;
363:            }
364:
365:            /**
366:             * <!-- begin-user-doc -->
367:             * <!-- end-user-doc -->
368:             * @generated
369:             */
370:            public void setVersion(String newVersion) {
371:                String oldVersion = version;
372:                version = newVersion;
373:                if (eNotificationRequired())
374:                    eNotify(new ENotificationImpl(this , Notification.SET,
375:                            OwsPackage.CAPABILITIES_BASE_TYPE__VERSION,
376:                            oldVersion, version));
377:            }
378:
379:            /**
380:             * <!-- begin-user-doc -->
381:             * <!-- end-user-doc -->
382:             * @generated
383:             */
384:            public NotificationChain eInverseRemove(InternalEObject otherEnd,
385:                    int featureID, NotificationChain msgs) {
386:                switch (featureID) {
387:                case OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_IDENTIFICATION:
388:                    return basicSetServiceIdentification(null, msgs);
389:                case OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_PROVIDER:
390:                    return basicSetServiceProvider(null, msgs);
391:                case OwsPackage.CAPABILITIES_BASE_TYPE__OPERATIONS_METADATA:
392:                    return basicSetOperationsMetadata(null, msgs);
393:                }
394:                return super .eInverseRemove(otherEnd, featureID, msgs);
395:            }
396:
397:            /**
398:             * <!-- begin-user-doc -->
399:             * <!-- end-user-doc -->
400:             * @generated
401:             */
402:            public Object eGet(int featureID, boolean resolve, boolean coreType) {
403:                switch (featureID) {
404:                case OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_IDENTIFICATION:
405:                    return getServiceIdentification();
406:                case OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_PROVIDER:
407:                    return getServiceProvider();
408:                case OwsPackage.CAPABILITIES_BASE_TYPE__OPERATIONS_METADATA:
409:                    return getOperationsMetadata();
410:                case OwsPackage.CAPABILITIES_BASE_TYPE__UPDATE_SEQUENCE:
411:                    return getUpdateSequence();
412:                case OwsPackage.CAPABILITIES_BASE_TYPE__VERSION:
413:                    return getVersion();
414:                }
415:                return super .eGet(featureID, resolve, coreType);
416:            }
417:
418:            /**
419:             * <!-- begin-user-doc -->
420:             * <!-- end-user-doc -->
421:             * @generated
422:             */
423:            public void eSet(int featureID, Object newValue) {
424:                switch (featureID) {
425:                case OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_IDENTIFICATION:
426:                    setServiceIdentification((ServiceIdentificationType) newValue);
427:                    return;
428:                case OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_PROVIDER:
429:                    setServiceProvider((ServiceProviderType) newValue);
430:                    return;
431:                case OwsPackage.CAPABILITIES_BASE_TYPE__OPERATIONS_METADATA:
432:                    setOperationsMetadata((OperationsMetadataType) newValue);
433:                    return;
434:                case OwsPackage.CAPABILITIES_BASE_TYPE__UPDATE_SEQUENCE:
435:                    setUpdateSequence((String) newValue);
436:                    return;
437:                case OwsPackage.CAPABILITIES_BASE_TYPE__VERSION:
438:                    setVersion((String) newValue);
439:                    return;
440:                }
441:                super .eSet(featureID, newValue);
442:            }
443:
444:            /**
445:             * <!-- begin-user-doc -->
446:             * <!-- end-user-doc -->
447:             * @generated
448:             */
449:            public void eUnset(int featureID) {
450:                switch (featureID) {
451:                case OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_IDENTIFICATION:
452:                    setServiceIdentification((ServiceIdentificationType) null);
453:                    return;
454:                case OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_PROVIDER:
455:                    setServiceProvider((ServiceProviderType) null);
456:                    return;
457:                case OwsPackage.CAPABILITIES_BASE_TYPE__OPERATIONS_METADATA:
458:                    setOperationsMetadata((OperationsMetadataType) null);
459:                    return;
460:                case OwsPackage.CAPABILITIES_BASE_TYPE__UPDATE_SEQUENCE:
461:                    setUpdateSequence(UPDATE_SEQUENCE_EDEFAULT);
462:                    return;
463:                case OwsPackage.CAPABILITIES_BASE_TYPE__VERSION:
464:                    setVersion(VERSION_EDEFAULT);
465:                    return;
466:                }
467:                super .eUnset(featureID);
468:            }
469:
470:            /**
471:             * <!-- begin-user-doc -->
472:             * <!-- end-user-doc -->
473:             * @generated
474:             */
475:            public boolean eIsSet(int featureID) {
476:                switch (featureID) {
477:                case OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_IDENTIFICATION:
478:                    return serviceIdentification != null;
479:                case OwsPackage.CAPABILITIES_BASE_TYPE__SERVICE_PROVIDER:
480:                    return serviceProvider != null;
481:                case OwsPackage.CAPABILITIES_BASE_TYPE__OPERATIONS_METADATA:
482:                    return operationsMetadata != null;
483:                case OwsPackage.CAPABILITIES_BASE_TYPE__UPDATE_SEQUENCE:
484:                    return UPDATE_SEQUENCE_EDEFAULT == null ? updateSequence != null
485:                            : !UPDATE_SEQUENCE_EDEFAULT.equals(updateSequence);
486:                case OwsPackage.CAPABILITIES_BASE_TYPE__VERSION:
487:                    return VERSION_EDEFAULT == null ? version != null
488:                            : !VERSION_EDEFAULT.equals(version);
489:                }
490:                return super .eIsSet(featureID);
491:            }
492:
493:            /**
494:             * <!-- begin-user-doc -->
495:             * <!-- end-user-doc -->
496:             * @generated
497:             */
498:            public String toString() {
499:                if (eIsProxy())
500:                    return super .toString();
501:
502:                StringBuffer result = new StringBuffer(super .toString());
503:                result.append(" (updateSequence: ");
504:                result.append(updateSequence);
505:                result.append(", version: ");
506:                result.append(version);
507:                result.append(')');
508:                return result.toString();
509:            }
510:
511:        } //CapabilitiesBaseTypeImpl
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.