Source Code Cross Referenced for TCPIPImpl.java in  » ESB » cbesb-1.2 » com » bostechcorp » cbesb » ui » componentflow » componentFlowEditor » 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 » ESB » cbesb 1.2 » com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * <copyright>
003:         * </copyright>
004:         *
005:         * $Id$
006:         */package com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl;
007:
008:        import org.eclipse.emf.common.notify.Notification;
009:        import org.eclipse.emf.common.notify.NotificationChain;
010:        import org.eclipse.emf.ecore.EClass;
011:        import org.eclipse.emf.ecore.InternalEObject;
012:        import org.eclipse.emf.ecore.impl.ENotificationImpl;
013:
014:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.ConnectionModeType;
015:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.Consumer;
016:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.Provider;
017:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.SSL;
018:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.TCPIP;
019:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.TCPIPClient;
020:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.TCPIPServer;
021:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.componentflowFactory;
022:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.componentflowPackage;
023:
024:        /**
025:         * <!-- begin-user-doc --> An implementation of the model object '<em><b>TCPIP</b></em>'.
026:         * <!-- end-user-doc -->
027:         * <p>
028:         * The following features are implemented:
029:         * <ul>
030:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.TCPIPImpl#getProtocolHandler <em>Protocol Handler</em>}</li>
031:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.TCPIPImpl#getProtocolHandlerDescription <em>Protocol Handler Description</em>}</li>
032:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.TCPIPImpl#getConnectionMode <em>Connection Mode</em>}</li>
033:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.TCPIPImpl#getClient <em>Client</em>}</li>
034:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.TCPIPImpl#getServer <em>Server</em>}</li>
035:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.TCPIPImpl#getTcpipConsumer <em>Tcpip Consumer</em>}</li>
036:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.TCPIPImpl#getTcpipProvider <em>Tcpip Provider</em>}</li>
037:         * </ul>
038:         * </p>
039:         *
040:         * @generated
041:         */
042:        public class TCPIPImpl extends BindingComponentImpl implements  TCPIP {
043:            /**
044:             * <!-- begin-user-doc --> <!-- end-user-doc -->
045:             * @generated
046:             */
047:            public static final String copyright = "Copyright, Bostech Corp.";
048:
049:            /**
050:             * The default value of the '{@link #getProtocolHandler() <em>Protocol Handler</em>}' attribute.
051:             * <!-- begin-user-doc --> <!-- end-user-doc -->
052:             * @see #getProtocolHandler()
053:             * @generated
054:             * @ordered
055:             */
056:            protected static final String PROTOCOL_HANDLER_EDEFAULT = null;
057:
058:            /**
059:             * The cached value of the '{@link #getProtocolHandler() <em>Protocol Handler</em>}' attribute.
060:             * <!-- begin-user-doc --> <!-- end-user-doc -->
061:             * @see #getProtocolHandler()
062:             * @generated
063:             * @ordered
064:             */
065:            protected String protocolHandler = PROTOCOL_HANDLER_EDEFAULT;
066:
067:            /**
068:             * The default value of the '{@link #getProtocolHandlerDescription() <em>Protocol Handler Description</em>}' attribute.
069:             * <!-- begin-user-doc --> <!-- end-user-doc -->
070:             * @see #getProtocolHandlerDescription()
071:             * @generated
072:             * @ordered
073:             */
074:            protected static final String PROTOCOL_HANDLER_DESCRIPTION_EDEFAULT = null;
075:
076:            /**
077:             * The cached value of the '{@link #getProtocolHandlerDescription() <em>Protocol Handler Description</em>}' attribute.
078:             * <!-- begin-user-doc --> <!-- end-user-doc -->
079:             * @see #getProtocolHandlerDescription()
080:             * @generated
081:             * @ordered
082:             */
083:            protected String protocolHandlerDescription = PROTOCOL_HANDLER_DESCRIPTION_EDEFAULT;
084:
085:            /**
086:             * The default value of the '{@link #getConnectionMode() <em>Connection Mode</em>}' attribute.
087:             * <!-- begin-user-doc --> <!-- end-user-doc -->
088:             * @see #getConnectionMode()
089:             * @generated
090:             * @ordered
091:             */
092:            protected static final ConnectionModeType CONNECTION_MODE_EDEFAULT = ConnectionModeType.SERVER_LITERAL;
093:
094:            /**
095:             * The cached value of the '{@link #getConnectionMode() <em>Connection Mode</em>}' attribute.
096:             * <!-- begin-user-doc --> <!-- end-user-doc -->
097:             * @see #getConnectionMode()
098:             * @generated
099:             * @ordered
100:             */
101:            protected ConnectionModeType connectionMode = CONNECTION_MODE_EDEFAULT;
102:
103:            /**
104:             * The cached value of the '{@link #getClient() <em>Client</em>}' containment reference.
105:             * <!-- begin-user-doc --> <!-- end-user-doc -->
106:             * @see #getClient()
107:             * @generated
108:             * @ordered
109:             */
110:            protected TCPIPClient client = null;
111:
112:            /**
113:             * The cached value of the '{@link #getServer() <em>Server</em>}' containment reference.
114:             * <!-- begin-user-doc --> <!-- end-user-doc -->
115:             * @see #getServer()
116:             * @generated
117:             * @ordered
118:             */
119:            protected TCPIPServer server = null;
120:
121:            /**
122:             * The cached value of the '{@link #getTcpipConsumer() <em>Tcpip Consumer</em>}' containment reference.
123:             * <!-- begin-user-doc -->
124:             * <!-- end-user-doc -->
125:             * @see #getTcpipConsumer()
126:             * @generated
127:             * @ordered
128:             */
129:            protected Consumer tcpipConsumer = null;
130:
131:            /**
132:             * The cached value of the '{@link #getTcpipProvider() <em>Tcpip Provider</em>}' containment reference.
133:             * <!-- begin-user-doc -->
134:             * <!-- end-user-doc -->
135:             * @see #getTcpipProvider()
136:             * @generated
137:             * @ordered
138:             */
139:            protected Provider tcpipProvider = null;
140:
141:            /**
142:             * <!-- begin-user-doc --> <!-- end-user-doc -->
143:             * 
144:             * @generated NOT
145:             */
146:            protected TCPIPImpl() {
147:                super ();
148:
149:                TCPIPClient client = componentflowFactory.eINSTANCE
150:                        .createTCPIPClient();
151:                SSL sslClient = componentflowFactory.eINSTANCE.createSSL();
152:                client.setSSL(sslClient);
153:
154:                TCPIPServer server = componentflowFactory.eINSTANCE
155:                        .createTCPIPServer();
156:                SSL sslServer = componentflowFactory.eINSTANCE.createSSL();
157:                server.setSSL(sslServer);
158:
159:                Consumer consumer = componentflowFactory.eINSTANCE
160:                        .createConsumer();
161:                Provider provider = componentflowFactory.eINSTANCE
162:                        .createProvider();
163:
164:                this .setTcpipConsumer(consumer);
165:                this .setTcpipProvider(provider);
166:
167:                this .setClient(client);
168:                this .setServer(server);
169:
170:            }
171:
172:            /**
173:             * <!-- begin-user-doc --> <!-- end-user-doc -->
174:             * @generated
175:             */
176:            protected EClass eStaticClass() {
177:                return componentflowPackage.Literals.TCPIP;
178:            }
179:
180:            /**
181:             * <!-- begin-user-doc --> <!-- end-user-doc -->
182:             * @generated
183:             */
184:            public String getProtocolHandler() {
185:                return protocolHandler;
186:            }
187:
188:            /**
189:             * <!-- begin-user-doc --> <!-- end-user-doc -->
190:             * @generated
191:             */
192:            public void setProtocolHandler(String newProtocolHandler) {
193:                String oldProtocolHandler = protocolHandler;
194:                protocolHandler = newProtocolHandler;
195:                if (eNotificationRequired())
196:                    eNotify(new ENotificationImpl(this , Notification.SET,
197:                            componentflowPackage.TCPIP__PROTOCOL_HANDLER,
198:                            oldProtocolHandler, protocolHandler));
199:            }
200:
201:            /**
202:             * <!-- begin-user-doc --> <!-- end-user-doc -->
203:             * @generated
204:             */
205:            public ConnectionModeType getConnectionMode() {
206:                return connectionMode;
207:            }
208:
209:            /**
210:             * <!-- begin-user-doc --> <!-- end-user-doc -->
211:             * @generated
212:             */
213:            public void setConnectionMode(ConnectionModeType newConnectionMode) {
214:                ConnectionModeType oldConnectionMode = connectionMode;
215:                connectionMode = newConnectionMode == null ? CONNECTION_MODE_EDEFAULT
216:                        : newConnectionMode;
217:                if (eNotificationRequired())
218:                    eNotify(new ENotificationImpl(this , Notification.SET,
219:                            componentflowPackage.TCPIP__CONNECTION_MODE,
220:                            oldConnectionMode, connectionMode));
221:            }
222:
223:            /**
224:             * <!-- begin-user-doc --> <!-- end-user-doc -->
225:             * @generated
226:             */
227:            public TCPIPClient getClient() {
228:                return client;
229:            }
230:
231:            /**
232:             * <!-- begin-user-doc --> <!-- end-user-doc -->
233:             * @generated
234:             */
235:            public NotificationChain basicSetClient(TCPIPClient newClient,
236:                    NotificationChain msgs) {
237:                TCPIPClient oldClient = client;
238:                client = newClient;
239:                if (eNotificationRequired()) {
240:                    ENotificationImpl notification = new ENotificationImpl(
241:                            this , Notification.SET,
242:                            componentflowPackage.TCPIP__CLIENT, oldClient,
243:                            newClient);
244:                    if (msgs == null)
245:                        msgs = notification;
246:                    else
247:                        msgs.add(notification);
248:                }
249:                return msgs;
250:            }
251:
252:            /**
253:             * <!-- begin-user-doc --> <!-- end-user-doc -->
254:             * @generated
255:             */
256:            public void setClient(TCPIPClient newClient) {
257:                if (newClient != client) {
258:                    NotificationChain msgs = null;
259:                    if (client != null)
260:                        msgs = ((InternalEObject) client).eInverseRemove(this ,
261:                                EOPPOSITE_FEATURE_BASE
262:                                        - componentflowPackage.TCPIP__CLIENT,
263:                                null, msgs);
264:                    if (newClient != null)
265:                        msgs = ((InternalEObject) newClient).eInverseAdd(this ,
266:                                EOPPOSITE_FEATURE_BASE
267:                                        - componentflowPackage.TCPIP__CLIENT,
268:                                null, msgs);
269:                    msgs = basicSetClient(newClient, msgs);
270:                    if (msgs != null)
271:                        msgs.dispatch();
272:                } else if (eNotificationRequired())
273:                    eNotify(new ENotificationImpl(this , Notification.SET,
274:                            componentflowPackage.TCPIP__CLIENT, newClient,
275:                            newClient));
276:            }
277:
278:            /**
279:             * <!-- begin-user-doc --> <!-- end-user-doc -->
280:             * @generated
281:             */
282:            public TCPIPServer getServer() {
283:                return server;
284:            }
285:
286:            /**
287:             * <!-- begin-user-doc --> <!-- end-user-doc -->
288:             * @generated
289:             */
290:            public NotificationChain basicSetServer(TCPIPServer newServer,
291:                    NotificationChain msgs) {
292:                TCPIPServer oldServer = server;
293:                server = newServer;
294:                if (eNotificationRequired()) {
295:                    ENotificationImpl notification = new ENotificationImpl(
296:                            this , Notification.SET,
297:                            componentflowPackage.TCPIP__SERVER, oldServer,
298:                            newServer);
299:                    if (msgs == null)
300:                        msgs = notification;
301:                    else
302:                        msgs.add(notification);
303:                }
304:                return msgs;
305:            }
306:
307:            /**
308:             * <!-- begin-user-doc --> <!-- end-user-doc -->
309:             * @generated
310:             */
311:            public void setServer(TCPIPServer newServer) {
312:                if (newServer != server) {
313:                    NotificationChain msgs = null;
314:                    if (server != null)
315:                        msgs = ((InternalEObject) server).eInverseRemove(this ,
316:                                EOPPOSITE_FEATURE_BASE
317:                                        - componentflowPackage.TCPIP__SERVER,
318:                                null, msgs);
319:                    if (newServer != null)
320:                        msgs = ((InternalEObject) newServer).eInverseAdd(this ,
321:                                EOPPOSITE_FEATURE_BASE
322:                                        - componentflowPackage.TCPIP__SERVER,
323:                                null, msgs);
324:                    msgs = basicSetServer(newServer, msgs);
325:                    if (msgs != null)
326:                        msgs.dispatch();
327:                } else if (eNotificationRequired())
328:                    eNotify(new ENotificationImpl(this , Notification.SET,
329:                            componentflowPackage.TCPIP__SERVER, newServer,
330:                            newServer));
331:            }
332:
333:            /**
334:             * <!-- begin-user-doc -->
335:             * <!-- end-user-doc -->
336:             * @generated
337:             */
338:            public Consumer getTcpipConsumer() {
339:                return tcpipConsumer;
340:            }
341:
342:            /**
343:             * <!-- begin-user-doc -->
344:             * <!-- end-user-doc -->
345:             * @generated
346:             */
347:            public NotificationChain basicSetTcpipConsumer(
348:                    Consumer newTcpipConsumer, NotificationChain msgs) {
349:                Consumer oldTcpipConsumer = tcpipConsumer;
350:                tcpipConsumer = newTcpipConsumer;
351:                if (eNotificationRequired()) {
352:                    ENotificationImpl notification = new ENotificationImpl(
353:                            this , Notification.SET,
354:                            componentflowPackage.TCPIP__TCPIP_CONSUMER,
355:                            oldTcpipConsumer, newTcpipConsumer);
356:                    if (msgs == null)
357:                        msgs = notification;
358:                    else
359:                        msgs.add(notification);
360:                }
361:                return msgs;
362:            }
363:
364:            /**
365:             * <!-- begin-user-doc -->
366:             * <!-- end-user-doc -->
367:             * @generated
368:             */
369:            public void setTcpipConsumer(Consumer newTcpipConsumer) {
370:                if (newTcpipConsumer != tcpipConsumer) {
371:                    NotificationChain msgs = null;
372:                    if (tcpipConsumer != null)
373:                        msgs = ((InternalEObject) tcpipConsumer)
374:                                .eInverseRemove(
375:                                        this ,
376:                                        EOPPOSITE_FEATURE_BASE
377:                                                - componentflowPackage.TCPIP__TCPIP_CONSUMER,
378:                                        null, msgs);
379:                    if (newTcpipConsumer != null)
380:                        msgs = ((InternalEObject) newTcpipConsumer)
381:                                .eInverseAdd(
382:                                        this ,
383:                                        EOPPOSITE_FEATURE_BASE
384:                                                - componentflowPackage.TCPIP__TCPIP_CONSUMER,
385:                                        null, msgs);
386:                    msgs = basicSetTcpipConsumer(newTcpipConsumer, msgs);
387:                    if (msgs != null)
388:                        msgs.dispatch();
389:                } else if (eNotificationRequired())
390:                    eNotify(new ENotificationImpl(this , Notification.SET,
391:                            componentflowPackage.TCPIP__TCPIP_CONSUMER,
392:                            newTcpipConsumer, newTcpipConsumer));
393:            }
394:
395:            /**
396:             * <!-- begin-user-doc -->
397:             * <!-- end-user-doc -->
398:             * @generated
399:             */
400:            public Provider getTcpipProvider() {
401:                return tcpipProvider;
402:            }
403:
404:            /**
405:             * <!-- begin-user-doc -->
406:             * <!-- end-user-doc -->
407:             * @generated
408:             */
409:            public NotificationChain basicSetTcpipProvider(
410:                    Provider newTcpipProvider, NotificationChain msgs) {
411:                Provider oldTcpipProvider = tcpipProvider;
412:                tcpipProvider = newTcpipProvider;
413:                if (eNotificationRequired()) {
414:                    ENotificationImpl notification = new ENotificationImpl(
415:                            this , Notification.SET,
416:                            componentflowPackage.TCPIP__TCPIP_PROVIDER,
417:                            oldTcpipProvider, newTcpipProvider);
418:                    if (msgs == null)
419:                        msgs = notification;
420:                    else
421:                        msgs.add(notification);
422:                }
423:                return msgs;
424:            }
425:
426:            /**
427:             * <!-- begin-user-doc -->
428:             * <!-- end-user-doc -->
429:             * @generated
430:             */
431:            public void setTcpipProvider(Provider newTcpipProvider) {
432:                if (newTcpipProvider != tcpipProvider) {
433:                    NotificationChain msgs = null;
434:                    if (tcpipProvider != null)
435:                        msgs = ((InternalEObject) tcpipProvider)
436:                                .eInverseRemove(
437:                                        this ,
438:                                        EOPPOSITE_FEATURE_BASE
439:                                                - componentflowPackage.TCPIP__TCPIP_PROVIDER,
440:                                        null, msgs);
441:                    if (newTcpipProvider != null)
442:                        msgs = ((InternalEObject) newTcpipProvider)
443:                                .eInverseAdd(
444:                                        this ,
445:                                        EOPPOSITE_FEATURE_BASE
446:                                                - componentflowPackage.TCPIP__TCPIP_PROVIDER,
447:                                        null, msgs);
448:                    msgs = basicSetTcpipProvider(newTcpipProvider, msgs);
449:                    if (msgs != null)
450:                        msgs.dispatch();
451:                } else if (eNotificationRequired())
452:                    eNotify(new ENotificationImpl(this , Notification.SET,
453:                            componentflowPackage.TCPIP__TCPIP_PROVIDER,
454:                            newTcpipProvider, newTcpipProvider));
455:            }
456:
457:            /**
458:             * <!-- begin-user-doc --> <!-- end-user-doc -->
459:             * @generated
460:             */
461:            public String getProtocolHandlerDescription() {
462:                return protocolHandlerDescription;
463:            }
464:
465:            /**
466:             * <!-- begin-user-doc --> <!-- end-user-doc -->
467:             * @generated
468:             */
469:            public void setProtocolHandlerDescription(
470:                    String newProtocolHandlerDescription) {
471:                String oldProtocolHandlerDescription = protocolHandlerDescription;
472:                protocolHandlerDescription = newProtocolHandlerDescription;
473:                if (eNotificationRequired())
474:                    eNotify(new ENotificationImpl(
475:                            this ,
476:                            Notification.SET,
477:                            componentflowPackage.TCPIP__PROTOCOL_HANDLER_DESCRIPTION,
478:                            oldProtocolHandlerDescription,
479:                            protocolHandlerDescription));
480:            }
481:
482:            /**
483:             * <!-- begin-user-doc --> <!-- end-user-doc -->
484:             * @generated
485:             */
486:            public NotificationChain eInverseRemove(InternalEObject otherEnd,
487:                    int featureID, NotificationChain msgs) {
488:                switch (featureID) {
489:                case componentflowPackage.TCPIP__CLIENT:
490:                    return basicSetClient(null, msgs);
491:                case componentflowPackage.TCPIP__SERVER:
492:                    return basicSetServer(null, msgs);
493:                case componentflowPackage.TCPIP__TCPIP_CONSUMER:
494:                    return basicSetTcpipConsumer(null, msgs);
495:                case componentflowPackage.TCPIP__TCPIP_PROVIDER:
496:                    return basicSetTcpipProvider(null, msgs);
497:                }
498:                return super .eInverseRemove(otherEnd, featureID, msgs);
499:            }
500:
501:            /**
502:             * <!-- begin-user-doc --> <!-- end-user-doc -->
503:             * @generated
504:             */
505:            public Object eGet(int featureID, boolean resolve, boolean coreType) {
506:                switch (featureID) {
507:                case componentflowPackage.TCPIP__PROTOCOL_HANDLER:
508:                    return getProtocolHandler();
509:                case componentflowPackage.TCPIP__PROTOCOL_HANDLER_DESCRIPTION:
510:                    return getProtocolHandlerDescription();
511:                case componentflowPackage.TCPIP__CONNECTION_MODE:
512:                    return getConnectionMode();
513:                case componentflowPackage.TCPIP__CLIENT:
514:                    return getClient();
515:                case componentflowPackage.TCPIP__SERVER:
516:                    return getServer();
517:                case componentflowPackage.TCPIP__TCPIP_CONSUMER:
518:                    return getTcpipConsumer();
519:                case componentflowPackage.TCPIP__TCPIP_PROVIDER:
520:                    return getTcpipProvider();
521:                }
522:                return super .eGet(featureID, resolve, coreType);
523:            }
524:
525:            /**
526:             * <!-- begin-user-doc --> <!-- end-user-doc -->
527:             * @generated
528:             */
529:            public void eSet(int featureID, Object newValue) {
530:                switch (featureID) {
531:                case componentflowPackage.TCPIP__PROTOCOL_HANDLER:
532:                    setProtocolHandler((String) newValue);
533:                    return;
534:                case componentflowPackage.TCPIP__PROTOCOL_HANDLER_DESCRIPTION:
535:                    setProtocolHandlerDescription((String) newValue);
536:                    return;
537:                case componentflowPackage.TCPIP__CONNECTION_MODE:
538:                    setConnectionMode((ConnectionModeType) newValue);
539:                    return;
540:                case componentflowPackage.TCPIP__CLIENT:
541:                    setClient((TCPIPClient) newValue);
542:                    return;
543:                case componentflowPackage.TCPIP__SERVER:
544:                    setServer((TCPIPServer) newValue);
545:                    return;
546:                case componentflowPackage.TCPIP__TCPIP_CONSUMER:
547:                    setTcpipConsumer((Consumer) newValue);
548:                    return;
549:                case componentflowPackage.TCPIP__TCPIP_PROVIDER:
550:                    setTcpipProvider((Provider) newValue);
551:                    return;
552:                }
553:                super .eSet(featureID, newValue);
554:            }
555:
556:            /**
557:             * <!-- begin-user-doc --> <!-- end-user-doc -->
558:             * @generated
559:             */
560:            public void eUnset(int featureID) {
561:                switch (featureID) {
562:                case componentflowPackage.TCPIP__PROTOCOL_HANDLER:
563:                    setProtocolHandler(PROTOCOL_HANDLER_EDEFAULT);
564:                    return;
565:                case componentflowPackage.TCPIP__PROTOCOL_HANDLER_DESCRIPTION:
566:                    setProtocolHandlerDescription(PROTOCOL_HANDLER_DESCRIPTION_EDEFAULT);
567:                    return;
568:                case componentflowPackage.TCPIP__CONNECTION_MODE:
569:                    setConnectionMode(CONNECTION_MODE_EDEFAULT);
570:                    return;
571:                case componentflowPackage.TCPIP__CLIENT:
572:                    setClient((TCPIPClient) null);
573:                    return;
574:                case componentflowPackage.TCPIP__SERVER:
575:                    setServer((TCPIPServer) null);
576:                    return;
577:                case componentflowPackage.TCPIP__TCPIP_CONSUMER:
578:                    setTcpipConsumer((Consumer) null);
579:                    return;
580:                case componentflowPackage.TCPIP__TCPIP_PROVIDER:
581:                    setTcpipProvider((Provider) null);
582:                    return;
583:                }
584:                super .eUnset(featureID);
585:            }
586:
587:            /**
588:             * <!-- begin-user-doc --> <!-- end-user-doc -->
589:             * @generated
590:             */
591:            public boolean eIsSet(int featureID) {
592:                switch (featureID) {
593:                case componentflowPackage.TCPIP__PROTOCOL_HANDLER:
594:                    return PROTOCOL_HANDLER_EDEFAULT == null ? protocolHandler != null
595:                            : !PROTOCOL_HANDLER_EDEFAULT
596:                                    .equals(protocolHandler);
597:                case componentflowPackage.TCPIP__PROTOCOL_HANDLER_DESCRIPTION:
598:                    return PROTOCOL_HANDLER_DESCRIPTION_EDEFAULT == null ? protocolHandlerDescription != null
599:                            : !PROTOCOL_HANDLER_DESCRIPTION_EDEFAULT
600:                                    .equals(protocolHandlerDescription);
601:                case componentflowPackage.TCPIP__CONNECTION_MODE:
602:                    return connectionMode != CONNECTION_MODE_EDEFAULT;
603:                case componentflowPackage.TCPIP__CLIENT:
604:                    return client != null;
605:                case componentflowPackage.TCPIP__SERVER:
606:                    return server != null;
607:                case componentflowPackage.TCPIP__TCPIP_CONSUMER:
608:                    return tcpipConsumer != null;
609:                case componentflowPackage.TCPIP__TCPIP_PROVIDER:
610:                    return tcpipProvider != null;
611:                }
612:                return super .eIsSet(featureID);
613:            }
614:
615:            /**
616:             * <!-- begin-user-doc --> <!-- end-user-doc -->
617:             * @generated
618:             */
619:            public String toString() {
620:                if (eIsProxy())
621:                    return super .toString();
622:
623:                StringBuffer result = new StringBuffer(super .toString());
624:                result.append(" (protocolHandler: ");
625:                result.append(protocolHandler);
626:                result.append(", protocolHandlerDescription: ");
627:                result.append(protocolHandlerDescription);
628:                result.append(", connectionMode: ");
629:                result.append(connectionMode);
630:                result.append(')');
631:                return result.toString();
632:            }
633:
634:            /**
635:             * <!-- begin-user-doc -->
636:             * <!-- end-user-doc -->
637:             * @generated NOT
638:             */
639:            public Consumer getConsumer() {
640:                return this .getTcpipConsumer();
641:            }
642:
643:            @Override
644:            /**
645:             * <!-- begin-user-doc -->
646:             * <!-- end-user-doc -->
647:             * @generated NOT
648:             */
649:            public Provider getProvider() {
650:                return this .getTcpipProvider();
651:            }
652:
653:        } //TCPIPImpl
w___ww___._ja__v___a2__s_.___c_om__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.