Source Code Cross Referenced for FtpReplyImpl.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.FtpReply;
011:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.TransferModeType;
012:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.componentflowPackage;
013:
014:        import org.eclipse.emf.common.notify.Notification;
015:        import org.eclipse.emf.common.notify.NotificationChain;
016:
017:        import org.eclipse.emf.ecore.EClass;
018:        import org.eclipse.emf.ecore.InternalEObject;
019:
020:        import org.eclipse.emf.ecore.impl.ENotificationImpl;
021:
022:        /**
023:         * <!-- begin-user-doc -->
024:         * An implementation of the model object '<em><b>Ftp Reply</b></em>'.
025:         * <!-- end-user-doc -->
026:         * <p>
027:         * The following features are implemented:
028:         * <ul>
029:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.FtpReplyImpl#getConnectMode <em>Connect Mode</em>}</li>
030:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.FtpReplyImpl#getTransferMode <em>Transfer Mode</em>}</li>
031:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.FtpReplyImpl#getFtpHost <em>Ftp Host</em>}</li>
032:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.FtpReplyImpl#getFtpUser <em>Ftp User</em>}</li>
033:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.FtpReplyImpl#getFtpPassword <em>Ftp Password</em>}</li>
034:         * </ul>
035:         * </p>
036:         *
037:         * @generated
038:         */
039:        public class FtpReplyImpl extends FileReplyImpl implements  FtpReply {
040:            /**
041:             * <!-- begin-user-doc -->
042:             * <!-- end-user-doc -->
043:             * @generated
044:             */
045:            public static final String copyright = "Copyright, Bostech Corp.";
046:
047:            /**
048:             * The default value of the '{@link #getConnectMode() <em>Connect Mode</em>}' attribute.
049:             * <!-- begin-user-doc -->
050:             * <!-- end-user-doc -->
051:             * @see #getConnectMode()
052:             * @generated
053:             * @ordered
054:             */
055:            protected static final ConnectModeType CONNECT_MODE_EDEFAULT = ConnectModeType.PASSIVE_LITERAL;
056:
057:            /**
058:             * The cached 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 ConnectModeType connectMode = CONNECT_MODE_EDEFAULT;
066:
067:            /**
068:             * The default value of the '{@link #getTransferMode() <em>Transfer Mode</em>}' attribute.
069:             * <!-- begin-user-doc -->
070:             * <!-- end-user-doc -->
071:             * @see #getTransferMode()
072:             * @generated
073:             * @ordered
074:             */
075:            protected static final TransferModeType TRANSFER_MODE_EDEFAULT = TransferModeType.BINARY_LITERAL;
076:
077:            /**
078:             * The cached 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 TransferModeType transferMode = TRANSFER_MODE_EDEFAULT;
086:
087:            /**
088:             * The default value of the '{@link #getFtpHost() <em>Ftp Host</em>}' attribute.
089:             * <!-- begin-user-doc -->
090:             * <!-- end-user-doc -->
091:             * @see #getFtpHost()
092:             * @generated
093:             * @ordered
094:             */
095:            protected static final String FTP_HOST_EDEFAULT = null;
096:
097:            /**
098:             * The cached 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 String ftpHost = FTP_HOST_EDEFAULT;
106:
107:            /**
108:             * The default value of the '{@link #getFtpUser() <em>Ftp User</em>}' attribute.
109:             * <!-- begin-user-doc -->
110:             * <!-- end-user-doc -->
111:             * @see #getFtpUser()
112:             * @generated
113:             * @ordered
114:             */
115:            protected static final String FTP_USER_EDEFAULT = null;
116:
117:            /**
118:             * The cached 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 String ftpUser = FTP_USER_EDEFAULT;
126:
127:            /**
128:             * The default value of the '{@link #getFtpPassword() <em>Ftp Password</em>}' attribute.
129:             * <!-- begin-user-doc -->
130:             * <!-- end-user-doc -->
131:             * @see #getFtpPassword()
132:             * @generated
133:             * @ordered
134:             */
135:            protected static final String FTP_PASSWORD_EDEFAULT = null;
136:
137:            /**
138:             * The cached 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 String ftpPassword = FTP_PASSWORD_EDEFAULT;
146:
147:            /**
148:             * <!-- begin-user-doc -->
149:             * <!-- end-user-doc -->
150:             * @generated
151:             */
152:            protected FtpReplyImpl() {
153:                super ();
154:            }
155:
156:            /**
157:             * <!-- begin-user-doc -->
158:             * <!-- end-user-doc -->
159:             * @generated
160:             */
161:            protected EClass eStaticClass() {
162:                return componentflowPackage.Literals.FTP_REPLY;
163:            }
164:
165:            /**
166:             * <!-- begin-user-doc -->
167:             * <!-- end-user-doc -->
168:             * @generated
169:             */
170:            public ConnectModeType getConnectMode() {
171:                return connectMode;
172:            }
173:
174:            /**
175:             * <!-- begin-user-doc -->
176:             * <!-- end-user-doc -->
177:             * @generated
178:             */
179:            public void setConnectMode(ConnectModeType newConnectMode) {
180:                ConnectModeType oldConnectMode = connectMode;
181:                connectMode = newConnectMode == null ? CONNECT_MODE_EDEFAULT
182:                        : newConnectMode;
183:                if (eNotificationRequired())
184:                    eNotify(new ENotificationImpl(this , Notification.SET,
185:                            componentflowPackage.FTP_REPLY__CONNECT_MODE,
186:                            oldConnectMode, connectMode));
187:            }
188:
189:            /**
190:             * <!-- begin-user-doc -->
191:             * <!-- end-user-doc -->
192:             * @generated
193:             */
194:            public TransferModeType getTransferMode() {
195:                return transferMode;
196:            }
197:
198:            /**
199:             * <!-- begin-user-doc -->
200:             * <!-- end-user-doc -->
201:             * @generated
202:             */
203:            public void setTransferMode(TransferModeType newTransferMode) {
204:                TransferModeType oldTransferMode = transferMode;
205:                transferMode = newTransferMode == null ? TRANSFER_MODE_EDEFAULT
206:                        : newTransferMode;
207:                if (eNotificationRequired())
208:                    eNotify(new ENotificationImpl(this , Notification.SET,
209:                            componentflowPackage.FTP_REPLY__TRANSFER_MODE,
210:                            oldTransferMode, transferMode));
211:            }
212:
213:            /**
214:             * <!-- begin-user-doc -->
215:             * <!-- end-user-doc -->
216:             * @generated
217:             */
218:            public String getFtpHost() {
219:                return ftpHost;
220:            }
221:
222:            /**
223:             * <!-- begin-user-doc -->
224:             * <!-- end-user-doc -->
225:             * @generated
226:             */
227:            public void setFtpHost(String newFtpHost) {
228:                String oldFtpHost = ftpHost;
229:                ftpHost = newFtpHost;
230:                if (eNotificationRequired())
231:                    eNotify(new ENotificationImpl(this , Notification.SET,
232:                            componentflowPackage.FTP_REPLY__FTP_HOST,
233:                            oldFtpHost, ftpHost));
234:            }
235:
236:            /**
237:             * <!-- begin-user-doc -->
238:             * <!-- end-user-doc -->
239:             * @generated
240:             */
241:            public String getFtpUser() {
242:                return ftpUser;
243:            }
244:
245:            /**
246:             * <!-- begin-user-doc -->
247:             * <!-- end-user-doc -->
248:             * @generated
249:             */
250:            public void setFtpUser(String newFtpUser) {
251:                String oldFtpUser = ftpUser;
252:                ftpUser = newFtpUser;
253:                if (eNotificationRequired())
254:                    eNotify(new ENotificationImpl(this , Notification.SET,
255:                            componentflowPackage.FTP_REPLY__FTP_USER,
256:                            oldFtpUser, ftpUser));
257:            }
258:
259:            /**
260:             * <!-- begin-user-doc -->
261:             * <!-- end-user-doc -->
262:             * @generated
263:             */
264:            public String getFtpPassword() {
265:                return ftpPassword;
266:            }
267:
268:            /**
269:             * <!-- begin-user-doc -->
270:             * <!-- end-user-doc -->
271:             * @generated
272:             */
273:            public void setFtpPassword(String newFtpPassword) {
274:                String oldFtpPassword = ftpPassword;
275:                ftpPassword = newFtpPassword;
276:                if (eNotificationRequired())
277:                    eNotify(new ENotificationImpl(this , Notification.SET,
278:                            componentflowPackage.FTP_REPLY__FTP_PASSWORD,
279:                            oldFtpPassword, ftpPassword));
280:            }
281:
282:            /**
283:             * <!-- begin-user-doc -->
284:             * <!-- end-user-doc -->
285:             * @generated
286:             */
287:            public Object eGet(int featureID, boolean resolve, boolean coreType) {
288:                switch (featureID) {
289:                case componentflowPackage.FTP_REPLY__CONNECT_MODE:
290:                    return getConnectMode();
291:                case componentflowPackage.FTP_REPLY__TRANSFER_MODE:
292:                    return getTransferMode();
293:                case componentflowPackage.FTP_REPLY__FTP_HOST:
294:                    return getFtpHost();
295:                case componentflowPackage.FTP_REPLY__FTP_USER:
296:                    return getFtpUser();
297:                case componentflowPackage.FTP_REPLY__FTP_PASSWORD:
298:                    return getFtpPassword();
299:                }
300:                return super .eGet(featureID, resolve, coreType);
301:            }
302:
303:            /**
304:             * <!-- begin-user-doc -->
305:             * <!-- end-user-doc -->
306:             * @generated
307:             */
308:            public void eSet(int featureID, Object newValue) {
309:                switch (featureID) {
310:                case componentflowPackage.FTP_REPLY__CONNECT_MODE:
311:                    setConnectMode((ConnectModeType) newValue);
312:                    return;
313:                case componentflowPackage.FTP_REPLY__TRANSFER_MODE:
314:                    setTransferMode((TransferModeType) newValue);
315:                    return;
316:                case componentflowPackage.FTP_REPLY__FTP_HOST:
317:                    setFtpHost((String) newValue);
318:                    return;
319:                case componentflowPackage.FTP_REPLY__FTP_USER:
320:                    setFtpUser((String) newValue);
321:                    return;
322:                case componentflowPackage.FTP_REPLY__FTP_PASSWORD:
323:                    setFtpPassword((String) newValue);
324:                    return;
325:                }
326:                super .eSet(featureID, newValue);
327:            }
328:
329:            /**
330:             * <!-- begin-user-doc -->
331:             * <!-- end-user-doc -->
332:             * @generated
333:             */
334:            public void eUnset(int featureID) {
335:                switch (featureID) {
336:                case componentflowPackage.FTP_REPLY__CONNECT_MODE:
337:                    setConnectMode(CONNECT_MODE_EDEFAULT);
338:                    return;
339:                case componentflowPackage.FTP_REPLY__TRANSFER_MODE:
340:                    setTransferMode(TRANSFER_MODE_EDEFAULT);
341:                    return;
342:                case componentflowPackage.FTP_REPLY__FTP_HOST:
343:                    setFtpHost(FTP_HOST_EDEFAULT);
344:                    return;
345:                case componentflowPackage.FTP_REPLY__FTP_USER:
346:                    setFtpUser(FTP_USER_EDEFAULT);
347:                    return;
348:                case componentflowPackage.FTP_REPLY__FTP_PASSWORD:
349:                    setFtpPassword(FTP_PASSWORD_EDEFAULT);
350:                    return;
351:                }
352:                super .eUnset(featureID);
353:            }
354:
355:            /**
356:             * <!-- begin-user-doc -->
357:             * <!-- end-user-doc -->
358:             * @generated
359:             */
360:            public boolean eIsSet(int featureID) {
361:                switch (featureID) {
362:                case componentflowPackage.FTP_REPLY__CONNECT_MODE:
363:                    return connectMode != CONNECT_MODE_EDEFAULT;
364:                case componentflowPackage.FTP_REPLY__TRANSFER_MODE:
365:                    return transferMode != TRANSFER_MODE_EDEFAULT;
366:                case componentflowPackage.FTP_REPLY__FTP_HOST:
367:                    return FTP_HOST_EDEFAULT == null ? ftpHost != null
368:                            : !FTP_HOST_EDEFAULT.equals(ftpHost);
369:                case componentflowPackage.FTP_REPLY__FTP_USER:
370:                    return FTP_USER_EDEFAULT == null ? ftpUser != null
371:                            : !FTP_USER_EDEFAULT.equals(ftpUser);
372:                case componentflowPackage.FTP_REPLY__FTP_PASSWORD:
373:                    return FTP_PASSWORD_EDEFAULT == null ? ftpPassword != null
374:                            : !FTP_PASSWORD_EDEFAULT.equals(ftpPassword);
375:                }
376:                return super .eIsSet(featureID);
377:            }
378:
379:            /**
380:             * <!-- begin-user-doc -->
381:             * <!-- end-user-doc -->
382:             * @generated
383:             */
384:            public int eBaseStructuralFeatureID(int derivedFeatureID,
385:                    Class baseClass) {
386:                if (baseClass == FTPAuthentication.class) {
387:                    switch (derivedFeatureID) {
388:                    case componentflowPackage.FTP_REPLY__CONNECT_MODE:
389:                        return componentflowPackage.FTP_AUTHENTICATION__CONNECT_MODE;
390:                    case componentflowPackage.FTP_REPLY__TRANSFER_MODE:
391:                        return componentflowPackage.FTP_AUTHENTICATION__TRANSFER_MODE;
392:                    case componentflowPackage.FTP_REPLY__FTP_HOST:
393:                        return componentflowPackage.FTP_AUTHENTICATION__FTP_HOST;
394:                    case componentflowPackage.FTP_REPLY__FTP_USER:
395:                        return componentflowPackage.FTP_AUTHENTICATION__FTP_USER;
396:                    case componentflowPackage.FTP_REPLY__FTP_PASSWORD:
397:                        return componentflowPackage.FTP_AUTHENTICATION__FTP_PASSWORD;
398:                    default:
399:                        return -1;
400:                    }
401:                }
402:                return super .eBaseStructuralFeatureID(derivedFeatureID,
403:                        baseClass);
404:            }
405:
406:            /**
407:             * <!-- begin-user-doc -->
408:             * <!-- end-user-doc -->
409:             * @generated
410:             */
411:            public int eDerivedStructuralFeatureID(int baseFeatureID,
412:                    Class baseClass) {
413:                if (baseClass == FTPAuthentication.class) {
414:                    switch (baseFeatureID) {
415:                    case componentflowPackage.FTP_AUTHENTICATION__CONNECT_MODE:
416:                        return componentflowPackage.FTP_REPLY__CONNECT_MODE;
417:                    case componentflowPackage.FTP_AUTHENTICATION__TRANSFER_MODE:
418:                        return componentflowPackage.FTP_REPLY__TRANSFER_MODE;
419:                    case componentflowPackage.FTP_AUTHENTICATION__FTP_HOST:
420:                        return componentflowPackage.FTP_REPLY__FTP_HOST;
421:                    case componentflowPackage.FTP_AUTHENTICATION__FTP_USER:
422:                        return componentflowPackage.FTP_REPLY__FTP_USER;
423:                    case componentflowPackage.FTP_AUTHENTICATION__FTP_PASSWORD:
424:                        return componentflowPackage.FTP_REPLY__FTP_PASSWORD;
425:                    default:
426:                        return -1;
427:                    }
428:                }
429:                return super .eDerivedStructuralFeatureID(baseFeatureID,
430:                        baseClass);
431:            }
432:
433:            /**
434:             * <!-- begin-user-doc -->
435:             * <!-- end-user-doc -->
436:             * @generated
437:             */
438:            public String toString() {
439:                if (eIsProxy())
440:                    return super .toString();
441:
442:                StringBuffer result = new StringBuffer(super .toString());
443:                result.append(" (connectMode: ");
444:                result.append(connectMode);
445:                result.append(", transferMode: ");
446:                result.append(transferMode);
447:                result.append(", ftpHost: ");
448:                result.append(ftpHost);
449:                result.append(", ftpUser: ");
450:                result.append(ftpUser);
451:                result.append(", ftpPassword: ");
452:                result.append(ftpPassword);
453:                result.append(')');
454:                return result.toString();
455:            }
456:
457:        } //FtpReplyImpl
ww__w_.___j_a___va2__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.