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