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