Source Code Cross Referenced for FTPConsumerImpl.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 com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.ConnectModeType;
009:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.FTPAuthentication;
010:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.Consumer;
011:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.DefaultMepType;
012:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.EndPoint;
013:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.FTPConsumer;
014:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.FtpReply;
015:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.TransferModeType;
016:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.FileCompletion;
017:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.FileConsumer;
018:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.FileReply;
019:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.PatternModel;
020:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.ReadStyleType;
021:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.RecordTypeType;
022:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.componentflowPackage;
023:
024:        import org.eclipse.emf.common.notify.Notification;
025:        import org.eclipse.emf.common.notify.NotificationChain;
026:
027:        import org.eclipse.emf.ecore.EClass;
028:        import org.eclipse.emf.ecore.InternalEObject;
029:
030:        import org.eclipse.emf.ecore.impl.ENotificationImpl;
031:
032:        /**
033:         * <!-- begin-user-doc -->
034:         * An implementation of the model object '<em><b>FTP Consumer</b></em>'.
035:         * <!-- end-user-doc -->
036:         * <p>
037:         * The following features are implemented:
038:         * <ul>
039:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.FTPConsumerImpl#getConnectMode <em>Connect Mode</em>}</li>
040:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.FTPConsumerImpl#getTransferMode <em>Transfer Mode</em>}</li>
041:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.FTPConsumerImpl#getFtpHost <em>Ftp Host</em>}</li>
042:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.FTPConsumerImpl#getFtpUser <em>Ftp User</em>}</li>
043:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.FTPConsumerImpl#getFtpPassword <em>Ftp Password</em>}</li>
044:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.FTPConsumerImpl#getTransferDir <em>Transfer Dir</em>}</li>
045:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.FTPConsumerImpl#getCmdFile <em>Cmd File</em>}</li>
046:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.FTPConsumerImpl#getFtpReply <em>Ftp Reply</em>}</li>
047:         * </ul>
048:         * </p>
049:         *
050:         * @generated
051:         */
052:        public class FTPConsumerImpl extends BaseReadImpl implements 
053:                FTPConsumer {
054:            /**
055:             * <!-- begin-user-doc -->
056:             * <!-- end-user-doc -->
057:             * @generated
058:             */
059:            public static final String copyright = "Copyright, Bostech Corp.";
060:
061:            /**
062:             * The default value of the '{@link #getConnectMode() <em>Connect Mode</em>}' attribute.
063:             * <!-- begin-user-doc -->
064:             * <!-- end-user-doc -->
065:             * @see #getConnectMode()
066:             * @generated
067:             * @ordered
068:             */
069:            protected static final ConnectModeType CONNECT_MODE_EDEFAULT = ConnectModeType.PASSIVE_LITERAL;
070:
071:            /**
072:             * The cached value of the '{@link #getConnectMode() <em>Connect Mode</em>}' attribute.
073:             * <!-- begin-user-doc -->
074:             * <!-- end-user-doc -->
075:             * @see #getConnectMode()
076:             * @generated
077:             * @ordered
078:             */
079:            protected ConnectModeType connectMode = CONNECT_MODE_EDEFAULT;
080:
081:            /**
082:             * The default value of the '{@link #getTransferMode() <em>Transfer Mode</em>}' attribute.
083:             * <!-- begin-user-doc -->
084:             * <!-- end-user-doc -->
085:             * @see #getTransferMode()
086:             * @generated
087:             * @ordered
088:             */
089:            protected static final TransferModeType TRANSFER_MODE_EDEFAULT = TransferModeType.BINARY_LITERAL;
090:
091:            /**
092:             * The cached value of the '{@link #getTransferMode() <em>Transfer Mode</em>}' attribute.
093:             * <!-- begin-user-doc -->
094:             * <!-- end-user-doc -->
095:             * @see #getTransferMode()
096:             * @generated
097:             * @ordered
098:             */
099:            protected TransferModeType transferMode = TRANSFER_MODE_EDEFAULT;
100:
101:            /**
102:             * The default value of the '{@link #getFtpHost() <em>Ftp Host</em>}' attribute.
103:             * <!-- begin-user-doc -->
104:             * <!-- end-user-doc -->
105:             * @see #getFtpHost()
106:             * @generated
107:             * @ordered
108:             */
109:            protected static final String FTP_HOST_EDEFAULT = null;
110:
111:            /**
112:             * The cached value of the '{@link #getFtpHost() <em>Ftp Host</em>}' attribute.
113:             * <!-- begin-user-doc -->
114:             * <!-- end-user-doc -->
115:             * @see #getFtpHost()
116:             * @generated
117:             * @ordered
118:             */
119:            protected String ftpHost = FTP_HOST_EDEFAULT;
120:
121:            /**
122:             * The default value of the '{@link #getFtpUser() <em>Ftp User</em>}' attribute.
123:             * <!-- begin-user-doc -->
124:             * <!-- end-user-doc -->
125:             * @see #getFtpUser()
126:             * @generated
127:             * @ordered
128:             */
129:            protected static final String FTP_USER_EDEFAULT = null;
130:
131:            /**
132:             * The cached value of the '{@link #getFtpUser() <em>Ftp User</em>}' attribute.
133:             * <!-- begin-user-doc -->
134:             * <!-- end-user-doc -->
135:             * @see #getFtpUser()
136:             * @generated
137:             * @ordered
138:             */
139:            protected String ftpUser = FTP_USER_EDEFAULT;
140:
141:            /**
142:             * The default value of the '{@link #getFtpPassword() <em>Ftp Password</em>}' attribute.
143:             * <!-- begin-user-doc -->
144:             * <!-- end-user-doc -->
145:             * @see #getFtpPassword()
146:             * @generated
147:             * @ordered
148:             */
149:            protected static final String FTP_PASSWORD_EDEFAULT = null;
150:
151:            /**
152:             * The cached value of the '{@link #getFtpPassword() <em>Ftp Password</em>}' attribute.
153:             * <!-- begin-user-doc -->
154:             * <!-- end-user-doc -->
155:             * @see #getFtpPassword()
156:             * @generated
157:             * @ordered
158:             */
159:            protected String ftpPassword = FTP_PASSWORD_EDEFAULT;
160:
161:            /**
162:             * The default value of the '{@link #getTransferDir() <em>Transfer Dir</em>}' attribute.
163:             * <!-- begin-user-doc -->
164:             * <!-- end-user-doc -->
165:             * @see #getTransferDir()
166:             * @generated
167:             * @ordered
168:             */
169:            protected static final String TRANSFER_DIR_EDEFAULT = null;
170:
171:            /**
172:             * The cached value of the '{@link #getTransferDir() <em>Transfer Dir</em>}' attribute.
173:             * <!-- begin-user-doc -->
174:             * <!-- end-user-doc -->
175:             * @see #getTransferDir()
176:             * @generated
177:             * @ordered
178:             */
179:            protected String transferDir = TRANSFER_DIR_EDEFAULT;
180:
181:            /**
182:             * The default value of the '{@link #getCmdFile() <em>Cmd File</em>}' attribute.
183:             * <!-- begin-user-doc -->
184:             * <!-- end-user-doc -->
185:             * @see #getCmdFile()
186:             * @generated
187:             * @ordered
188:             */
189:            protected static final String CMD_FILE_EDEFAULT = null;
190:
191:            /**
192:             * The cached value of the '{@link #getCmdFile() <em>Cmd File</em>}' attribute.
193:             * <!-- begin-user-doc -->
194:             * <!-- end-user-doc -->
195:             * @see #getCmdFile()
196:             * @generated
197:             * @ordered
198:             */
199:            protected String cmdFile = CMD_FILE_EDEFAULT;
200:
201:            /**
202:             * The cached value of the '{@link #getFtpReply() <em>Ftp Reply</em>}' containment reference.
203:             * <!-- begin-user-doc -->
204:             * <!-- end-user-doc -->
205:             * @see #getFtpReply()
206:             * @generated
207:             * @ordered
208:             */
209:            protected FtpReply ftpReply = null;
210:
211:            /**
212:             * <!-- begin-user-doc -->
213:             * <!-- end-user-doc -->
214:             * @generated
215:             */
216:            protected FTPConsumerImpl() {
217:                super ();
218:            }
219:
220:            /**
221:             * <!-- begin-user-doc -->
222:             * <!-- end-user-doc -->
223:             * @generated
224:             */
225:            protected EClass eStaticClass() {
226:                return componentflowPackage.Literals.FTP_CONSUMER;
227:            }
228:
229:            /**
230:             * <!-- begin-user-doc -->
231:             * <!-- end-user-doc -->
232:             * @generated
233:             */
234:            public ConnectModeType getConnectMode() {
235:                return connectMode;
236:            }
237:
238:            /**
239:             * <!-- begin-user-doc -->
240:             * <!-- end-user-doc -->
241:             * @generated
242:             */
243:            public void setConnectMode(ConnectModeType newConnectMode) {
244:                ConnectModeType oldConnectMode = connectMode;
245:                connectMode = newConnectMode == null ? CONNECT_MODE_EDEFAULT
246:                        : newConnectMode;
247:                if (eNotificationRequired())
248:                    eNotify(new ENotificationImpl(this , Notification.SET,
249:                            componentflowPackage.FTP_CONSUMER__CONNECT_MODE,
250:                            oldConnectMode, connectMode));
251:            }
252:
253:            /**
254:             * <!-- begin-user-doc -->
255:             * <!-- end-user-doc -->
256:             * @generated
257:             */
258:            public TransferModeType getTransferMode() {
259:                return transferMode;
260:            }
261:
262:            /**
263:             * <!-- begin-user-doc -->
264:             * <!-- end-user-doc -->
265:             * @generated
266:             */
267:            public void setTransferMode(TransferModeType newTransferMode) {
268:                TransferModeType oldTransferMode = transferMode;
269:                transferMode = newTransferMode == null ? TRANSFER_MODE_EDEFAULT
270:                        : newTransferMode;
271:                if (eNotificationRequired())
272:                    eNotify(new ENotificationImpl(this , Notification.SET,
273:                            componentflowPackage.FTP_CONSUMER__TRANSFER_MODE,
274:                            oldTransferMode, transferMode));
275:            }
276:
277:            /**
278:             * <!-- begin-user-doc -->
279:             * <!-- end-user-doc -->
280:             * @generated
281:             */
282:            public String getFtpHost() {
283:                return ftpHost;
284:            }
285:
286:            /**
287:             * <!-- begin-user-doc -->
288:             * <!-- end-user-doc -->
289:             * @generated
290:             */
291:            public void setFtpHost(String newFtpHost) {
292:                String oldFtpHost = ftpHost;
293:                ftpHost = newFtpHost;
294:                if (eNotificationRequired())
295:                    eNotify(new ENotificationImpl(this , Notification.SET,
296:                            componentflowPackage.FTP_CONSUMER__FTP_HOST,
297:                            oldFtpHost, ftpHost));
298:            }
299:
300:            /**
301:             * <!-- begin-user-doc -->
302:             * <!-- end-user-doc -->
303:             * @generated
304:             */
305:            public String getFtpUser() {
306:                return ftpUser;
307:            }
308:
309:            /**
310:             * <!-- begin-user-doc -->
311:             * <!-- end-user-doc -->
312:             * @generated
313:             */
314:            public void setFtpUser(String newFtpUser) {
315:                String oldFtpUser = ftpUser;
316:                ftpUser = newFtpUser;
317:                if (eNotificationRequired())
318:                    eNotify(new ENotificationImpl(this , Notification.SET,
319:                            componentflowPackage.FTP_CONSUMER__FTP_USER,
320:                            oldFtpUser, ftpUser));
321:            }
322:
323:            /**
324:             * <!-- begin-user-doc -->
325:             * <!-- end-user-doc -->
326:             * @generated
327:             */
328:            public String getFtpPassword() {
329:                return ftpPassword;
330:            }
331:
332:            /**
333:             * <!-- begin-user-doc -->
334:             * <!-- end-user-doc -->
335:             * @generated
336:             */
337:            public void setFtpPassword(String newFtpPassword) {
338:                String oldFtpPassword = ftpPassword;
339:                ftpPassword = newFtpPassword;
340:                if (eNotificationRequired())
341:                    eNotify(new ENotificationImpl(this , Notification.SET,
342:                            componentflowPackage.FTP_CONSUMER__FTP_PASSWORD,
343:                            oldFtpPassword, ftpPassword));
344:            }
345:
346:            /**
347:             * <!-- begin-user-doc -->
348:             * <!-- end-user-doc -->
349:             * @generated
350:             */
351:            public String getTransferDir() {
352:                return transferDir;
353:            }
354:
355:            /**
356:             * <!-- begin-user-doc -->
357:             * <!-- end-user-doc -->
358:             * @generated
359:             */
360:            public void setTransferDir(String newTransferDir) {
361:                String oldTransferDir = transferDir;
362:                transferDir = newTransferDir;
363:                if (eNotificationRequired())
364:                    eNotify(new ENotificationImpl(this , Notification.SET,
365:                            componentflowPackage.FTP_CONSUMER__TRANSFER_DIR,
366:                            oldTransferDir, transferDir));
367:            }
368:
369:            /**
370:             * <!-- begin-user-doc -->
371:             * <!-- end-user-doc -->
372:             * @generated
373:             */
374:            public String getCmdFile() {
375:                return cmdFile;
376:            }
377:
378:            /**
379:             * <!-- begin-user-doc -->
380:             * <!-- end-user-doc -->
381:             * @generated
382:             */
383:            public void setCmdFile(String newCmdFile) {
384:                String oldCmdFile = cmdFile;
385:                cmdFile = newCmdFile;
386:                if (eNotificationRequired())
387:                    eNotify(new ENotificationImpl(this , Notification.SET,
388:                            componentflowPackage.FTP_CONSUMER__CMD_FILE,
389:                            oldCmdFile, cmdFile));
390:            }
391:
392:            /**
393:             * <!-- begin-user-doc -->
394:             * <!-- end-user-doc -->
395:             * @generated
396:             */
397:            public FtpReply getFtpReply() {
398:                return ftpReply;
399:            }
400:
401:            /**
402:             * <!-- begin-user-doc -->
403:             * <!-- end-user-doc -->
404:             * @generated
405:             */
406:            public NotificationChain basicSetFtpReply(FtpReply newFtpReply,
407:                    NotificationChain msgs) {
408:                FtpReply oldFtpReply = ftpReply;
409:                ftpReply = newFtpReply;
410:                if (eNotificationRequired()) {
411:                    ENotificationImpl notification = new ENotificationImpl(
412:                            this , Notification.SET,
413:                            componentflowPackage.FTP_CONSUMER__FTP_REPLY,
414:                            oldFtpReply, newFtpReply);
415:                    if (msgs == null)
416:                        msgs = notification;
417:                    else
418:                        msgs.add(notification);
419:                }
420:                return msgs;
421:            }
422:
423:            /**
424:             * <!-- begin-user-doc -->
425:             * <!-- end-user-doc -->
426:             * @generated
427:             */
428:            public void setFtpReply(FtpReply newFtpReply) {
429:                if (newFtpReply != ftpReply) {
430:                    NotificationChain msgs = null;
431:                    if (ftpReply != null)
432:                        msgs = ((InternalEObject) ftpReply)
433:                                .eInverseRemove(
434:                                        this ,
435:                                        EOPPOSITE_FEATURE_BASE
436:                                                - componentflowPackage.FTP_CONSUMER__FTP_REPLY,
437:                                        null, msgs);
438:                    if (newFtpReply != null)
439:                        msgs = ((InternalEObject) newFtpReply)
440:                                .eInverseAdd(
441:                                        this ,
442:                                        EOPPOSITE_FEATURE_BASE
443:                                                - componentflowPackage.FTP_CONSUMER__FTP_REPLY,
444:                                        null, msgs);
445:                    msgs = basicSetFtpReply(newFtpReply, msgs);
446:                    if (msgs != null)
447:                        msgs.dispatch();
448:                } else if (eNotificationRequired())
449:                    eNotify(new ENotificationImpl(this , Notification.SET,
450:                            componentflowPackage.FTP_CONSUMER__FTP_REPLY,
451:                            newFtpReply, newFtpReply));
452:            }
453:
454:            /**
455:             * <!-- begin-user-doc -->
456:             * <!-- end-user-doc -->
457:             * @generated
458:             */
459:            public NotificationChain eInverseRemove(InternalEObject otherEnd,
460:                    int featureID, NotificationChain msgs) {
461:                switch (featureID) {
462:                case componentflowPackage.FTP_CONSUMER__FTP_REPLY:
463:                    return basicSetFtpReply(null, msgs);
464:                }
465:                return super .eInverseRemove(otherEnd, featureID, msgs);
466:            }
467:
468:            /**
469:             * <!-- begin-user-doc -->
470:             * <!-- end-user-doc -->
471:             * @generated
472:             */
473:            public Object eGet(int featureID, boolean resolve, boolean coreType) {
474:                switch (featureID) {
475:                case componentflowPackage.FTP_CONSUMER__CONNECT_MODE:
476:                    return getConnectMode();
477:                case componentflowPackage.FTP_CONSUMER__TRANSFER_MODE:
478:                    return getTransferMode();
479:                case componentflowPackage.FTP_CONSUMER__FTP_HOST:
480:                    return getFtpHost();
481:                case componentflowPackage.FTP_CONSUMER__FTP_USER:
482:                    return getFtpUser();
483:                case componentflowPackage.FTP_CONSUMER__FTP_PASSWORD:
484:                    return getFtpPassword();
485:                case componentflowPackage.FTP_CONSUMER__TRANSFER_DIR:
486:                    return getTransferDir();
487:                case componentflowPackage.FTP_CONSUMER__CMD_FILE:
488:                    return getCmdFile();
489:                case componentflowPackage.FTP_CONSUMER__FTP_REPLY:
490:                    return getFtpReply();
491:                }
492:                return super .eGet(featureID, resolve, coreType);
493:            }
494:
495:            /**
496:             * <!-- begin-user-doc -->
497:             * <!-- end-user-doc -->
498:             * @generated
499:             */
500:            public void eSet(int featureID, Object newValue) {
501:                switch (featureID) {
502:                case componentflowPackage.FTP_CONSUMER__CONNECT_MODE:
503:                    setConnectMode((ConnectModeType) newValue);
504:                    return;
505:                case componentflowPackage.FTP_CONSUMER__TRANSFER_MODE:
506:                    setTransferMode((TransferModeType) newValue);
507:                    return;
508:                case componentflowPackage.FTP_CONSUMER__FTP_HOST:
509:                    setFtpHost((String) newValue);
510:                    return;
511:                case componentflowPackage.FTP_CONSUMER__FTP_USER:
512:                    setFtpUser((String) newValue);
513:                    return;
514:                case componentflowPackage.FTP_CONSUMER__FTP_PASSWORD:
515:                    setFtpPassword((String) newValue);
516:                    return;
517:                case componentflowPackage.FTP_CONSUMER__TRANSFER_DIR:
518:                    setTransferDir((String) newValue);
519:                    return;
520:                case componentflowPackage.FTP_CONSUMER__CMD_FILE:
521:                    setCmdFile((String) newValue);
522:                    return;
523:                case componentflowPackage.FTP_CONSUMER__FTP_REPLY:
524:                    setFtpReply((FtpReply) newValue);
525:                    return;
526:                }
527:                super .eSet(featureID, newValue);
528:            }
529:
530:            /**
531:             * <!-- begin-user-doc -->
532:             * <!-- end-user-doc -->
533:             * @generated
534:             */
535:            public void eUnset(int featureID) {
536:                switch (featureID) {
537:                case componentflowPackage.FTP_CONSUMER__CONNECT_MODE:
538:                    setConnectMode(CONNECT_MODE_EDEFAULT);
539:                    return;
540:                case componentflowPackage.FTP_CONSUMER__TRANSFER_MODE:
541:                    setTransferMode(TRANSFER_MODE_EDEFAULT);
542:                    return;
543:                case componentflowPackage.FTP_CONSUMER__FTP_HOST:
544:                    setFtpHost(FTP_HOST_EDEFAULT);
545:                    return;
546:                case componentflowPackage.FTP_CONSUMER__FTP_USER:
547:                    setFtpUser(FTP_USER_EDEFAULT);
548:                    return;
549:                case componentflowPackage.FTP_CONSUMER__FTP_PASSWORD:
550:                    setFtpPassword(FTP_PASSWORD_EDEFAULT);
551:                    return;
552:                case componentflowPackage.FTP_CONSUMER__TRANSFER_DIR:
553:                    setTransferDir(TRANSFER_DIR_EDEFAULT);
554:                    return;
555:                case componentflowPackage.FTP_CONSUMER__CMD_FILE:
556:                    setCmdFile(CMD_FILE_EDEFAULT);
557:                    return;
558:                case componentflowPackage.FTP_CONSUMER__FTP_REPLY:
559:                    setFtpReply((FtpReply) null);
560:                    return;
561:                }
562:                super .eUnset(featureID);
563:            }
564:
565:            /**
566:             * <!-- begin-user-doc -->
567:             * <!-- end-user-doc -->
568:             * @generated
569:             */
570:            public boolean eIsSet(int featureID) {
571:                switch (featureID) {
572:                case componentflowPackage.FTP_CONSUMER__CONNECT_MODE:
573:                    return connectMode != CONNECT_MODE_EDEFAULT;
574:                case componentflowPackage.FTP_CONSUMER__TRANSFER_MODE:
575:                    return transferMode != TRANSFER_MODE_EDEFAULT;
576:                case componentflowPackage.FTP_CONSUMER__FTP_HOST:
577:                    return FTP_HOST_EDEFAULT == null ? ftpHost != null
578:                            : !FTP_HOST_EDEFAULT.equals(ftpHost);
579:                case componentflowPackage.FTP_CONSUMER__FTP_USER:
580:                    return FTP_USER_EDEFAULT == null ? ftpUser != null
581:                            : !FTP_USER_EDEFAULT.equals(ftpUser);
582:                case componentflowPackage.FTP_CONSUMER__FTP_PASSWORD:
583:                    return FTP_PASSWORD_EDEFAULT == null ? ftpPassword != null
584:                            : !FTP_PASSWORD_EDEFAULT.equals(ftpPassword);
585:                case componentflowPackage.FTP_CONSUMER__TRANSFER_DIR:
586:                    return TRANSFER_DIR_EDEFAULT == null ? transferDir != null
587:                            : !TRANSFER_DIR_EDEFAULT.equals(transferDir);
588:                case componentflowPackage.FTP_CONSUMER__CMD_FILE:
589:                    return CMD_FILE_EDEFAULT == null ? cmdFile != null
590:                            : !CMD_FILE_EDEFAULT.equals(cmdFile);
591:                case componentflowPackage.FTP_CONSUMER__FTP_REPLY:
592:                    return ftpReply != null;
593:                }
594:                return super .eIsSet(featureID);
595:            }
596:
597:            /**
598:             * <!-- begin-user-doc -->
599:             * <!-- end-user-doc -->
600:             * @generated
601:             */
602:            public int eBaseStructuralFeatureID(int derivedFeatureID,
603:                    Class baseClass) {
604:                if (baseClass == FTPAuthentication.class) {
605:                    switch (derivedFeatureID) {
606:                    case componentflowPackage.FTP_CONSUMER__CONNECT_MODE:
607:                        return componentflowPackage.FTP_AUTHENTICATION__CONNECT_MODE;
608:                    case componentflowPackage.FTP_CONSUMER__TRANSFER_MODE:
609:                        return componentflowPackage.FTP_AUTHENTICATION__TRANSFER_MODE;
610:                    case componentflowPackage.FTP_CONSUMER__FTP_HOST:
611:                        return componentflowPackage.FTP_AUTHENTICATION__FTP_HOST;
612:                    case componentflowPackage.FTP_CONSUMER__FTP_USER:
613:                        return componentflowPackage.FTP_AUTHENTICATION__FTP_USER;
614:                    case componentflowPackage.FTP_CONSUMER__FTP_PASSWORD:
615:                        return componentflowPackage.FTP_AUTHENTICATION__FTP_PASSWORD;
616:                    default:
617:                        return -1;
618:                    }
619:                }
620:                return super .eBaseStructuralFeatureID(derivedFeatureID,
621:                        baseClass);
622:            }
623:
624:            /**
625:             * <!-- begin-user-doc -->
626:             * <!-- end-user-doc -->
627:             * @generated
628:             */
629:            public int eDerivedStructuralFeatureID(int baseFeatureID,
630:                    Class baseClass) {
631:                if (baseClass == FTPAuthentication.class) {
632:                    switch (baseFeatureID) {
633:                    case componentflowPackage.FTP_AUTHENTICATION__CONNECT_MODE:
634:                        return componentflowPackage.FTP_CONSUMER__CONNECT_MODE;
635:                    case componentflowPackage.FTP_AUTHENTICATION__TRANSFER_MODE:
636:                        return componentflowPackage.FTP_CONSUMER__TRANSFER_MODE;
637:                    case componentflowPackage.FTP_AUTHENTICATION__FTP_HOST:
638:                        return componentflowPackage.FTP_CONSUMER__FTP_HOST;
639:                    case componentflowPackage.FTP_AUTHENTICATION__FTP_USER:
640:                        return componentflowPackage.FTP_CONSUMER__FTP_USER;
641:                    case componentflowPackage.FTP_AUTHENTICATION__FTP_PASSWORD:
642:                        return componentflowPackage.FTP_CONSUMER__FTP_PASSWORD;
643:                    default:
644:                        return -1;
645:                    }
646:                }
647:                return super .eDerivedStructuralFeatureID(baseFeatureID,
648:                        baseClass);
649:            }
650:
651:            /**
652:             * <!-- begin-user-doc -->
653:             * <!-- end-user-doc -->
654:             * @generated
655:             */
656:            public String toString() {
657:                if (eIsProxy())
658:                    return super .toString();
659:
660:                StringBuffer result = new StringBuffer(super .toString());
661:                result.append(" (connectMode: ");
662:                result.append(connectMode);
663:                result.append(", transferMode: ");
664:                result.append(transferMode);
665:                result.append(", ftpHost: ");
666:                result.append(ftpHost);
667:                result.append(", ftpUser: ");
668:                result.append(ftpUser);
669:                result.append(", ftpPassword: ");
670:                result.append(ftpPassword);
671:                result.append(", transferDir: ");
672:                result.append(transferDir);
673:                result.append(", cmdFile: ");
674:                result.append(cmdFile);
675:                result.append(')');
676:                return result.toString();
677:            }
678:
679:        } //FTPConsumerImpl
w___ww__.jav__a_2__s_.c___o_m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.