Source Code Cross Referenced for EmailConsumerImpl.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.Consumer;
009:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.DefaultMepType;
010:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.EmailConsumer;
011:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.EmailConsumerReply;
012:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.EndPoint;
013:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.ReceiveProtocol;
014:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.RecordTypeType;
015:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.Scheduler;
016:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.componentflowPackage;
017:
018:        import org.eclipse.emf.common.notify.Notification;
019:        import org.eclipse.emf.common.notify.NotificationChain;
020:
021:        import org.eclipse.emf.ecore.EClass;
022:        import org.eclipse.emf.ecore.InternalEObject;
023:
024:        import org.eclipse.emf.ecore.impl.ENotificationImpl;
025:
026:        /**
027:         * <!-- begin-user-doc -->
028:         * An implementation of the model object '<em><b>Email Consumer</b></em>'.
029:         * <!-- end-user-doc -->
030:         * <p>
031:         * The following features are implemented:
032:         * <ul>
033:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.EmailConsumerImpl#getEndPointName <em>End Point Name</em>}</li>
034:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.EmailConsumerImpl#getCharset <em>Charset</em>}</li>
035:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.EmailConsumerImpl#getRecordType <em>Record Type</em>}</li>
036:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.EmailConsumerImpl#getDefaultMep <em>Default Mep</em>}</li>
037:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.EmailConsumerImpl#getAttachmentDir <em>Attachment Dir</em>}</li>
038:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.EmailConsumerImpl#getPollingInteval <em>Polling Inteval</em>}</li>
039:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.EmailConsumerImpl#getReply <em>Reply</em>}</li>
040:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.EmailConsumerImpl#isUseScheduler <em>Use Scheduler</em>}</li>
041:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.EmailConsumerImpl#getScheduler <em>Scheduler</em>}</li>
042:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.EmailConsumerImpl#getReceiveProtocol <em>Receive Protocol</em>}</li>
043:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.EmailConsumerImpl#getInboxFolder <em>Inbox Folder</em>}</li>
044:         * </ul>
045:         * </p>
046:         *
047:         * @generated
048:         */
049:        public class EmailConsumerImpl extends ConnectionImpl implements 
050:                EmailConsumer {
051:            /**
052:             * <!-- begin-user-doc -->
053:             * <!-- end-user-doc -->
054:             * @generated
055:             */
056:            public static final String copyright = "Copyright, Bostech Corp.";
057:
058:            /**
059:             * The default value of the '{@link #getEndPointName() <em>End Point Name</em>}' attribute.
060:             * <!-- begin-user-doc -->
061:             * <!-- end-user-doc -->
062:             * @see #getEndPointName()
063:             * @generated
064:             * @ordered
065:             */
066:            protected static final String END_POINT_NAME_EDEFAULT = null;
067:
068:            /**
069:             * The cached value of the '{@link #getEndPointName() <em>End Point Name</em>}' attribute.
070:             * <!-- begin-user-doc -->
071:             * <!-- end-user-doc -->
072:             * @see #getEndPointName()
073:             * @generated
074:             * @ordered
075:             */
076:            protected String endPointName = END_POINT_NAME_EDEFAULT;
077:
078:            /**
079:             * The default value of the '{@link #getCharset() <em>Charset</em>}' attribute.
080:             * <!-- begin-user-doc -->
081:             * <!-- end-user-doc -->
082:             * @see #getCharset()
083:             * @generated
084:             * @ordered
085:             */
086:            protected static final String CHARSET_EDEFAULT = "SYSTEM_DEFAULT";
087:
088:            /**
089:             * The cached value of the '{@link #getCharset() <em>Charset</em>}' attribute.
090:             * <!-- begin-user-doc -->
091:             * <!-- end-user-doc -->
092:             * @see #getCharset()
093:             * @generated
094:             * @ordered
095:             */
096:            protected String charset = CHARSET_EDEFAULT;
097:
098:            /**
099:             * The default value of the '{@link #getRecordType() <em>Record Type</em>}' attribute.
100:             * <!-- begin-user-doc -->
101:             * <!-- end-user-doc -->
102:             * @see #getRecordType()
103:             * @generated
104:             * @ordered
105:             */
106:            protected static final RecordTypeType RECORD_TYPE_EDEFAULT = RecordTypeType.STRING_LITERAL;
107:
108:            /**
109:             * The cached value of the '{@link #getRecordType() <em>Record Type</em>}' attribute.
110:             * <!-- begin-user-doc -->
111:             * <!-- end-user-doc -->
112:             * @see #getRecordType()
113:             * @generated
114:             * @ordered
115:             */
116:            protected RecordTypeType recordType = RECORD_TYPE_EDEFAULT;
117:
118:            /**
119:             * The default value of the '{@link #getDefaultMep() <em>Default Mep</em>}' attribute.
120:             * <!-- begin-user-doc -->
121:             * <!-- end-user-doc -->
122:             * @see #getDefaultMep()
123:             * @generated
124:             * @ordered
125:             */
126:            protected static final DefaultMepType DEFAULT_MEP_EDEFAULT = DefaultMepType.INONLY_LITERAL;
127:
128:            /**
129:             * The cached value of the '{@link #getDefaultMep() <em>Default Mep</em>}' attribute.
130:             * <!-- begin-user-doc -->
131:             * <!-- end-user-doc -->
132:             * @see #getDefaultMep()
133:             * @generated
134:             * @ordered
135:             */
136:            protected DefaultMepType defaultMep = DEFAULT_MEP_EDEFAULT;
137:
138:            /**
139:             * The default value of the '{@link #getAttachmentDir() <em>Attachment Dir</em>}' attribute.
140:             * <!-- begin-user-doc -->
141:             * <!-- end-user-doc -->
142:             * @see #getAttachmentDir()
143:             * @generated
144:             * @ordered
145:             */
146:            protected static final String ATTACHMENT_DIR_EDEFAULT = null;
147:
148:            /**
149:             * The cached value of the '{@link #getAttachmentDir() <em>Attachment Dir</em>}' attribute.
150:             * <!-- begin-user-doc -->
151:             * <!-- end-user-doc -->
152:             * @see #getAttachmentDir()
153:             * @generated
154:             * @ordered
155:             */
156:            protected String attachmentDir = ATTACHMENT_DIR_EDEFAULT;
157:
158:            /**
159:             * The default value of the '{@link #getPollingInteval() <em>Polling Inteval</em>}' attribute.
160:             * <!-- begin-user-doc -->
161:             * <!-- end-user-doc -->
162:             * @see #getPollingInteval()
163:             * @generated
164:             * @ordered
165:             */
166:            protected static final String POLLING_INTEVAL_EDEFAULT = null;
167:
168:            /**
169:             * The cached value of the '{@link #getPollingInteval() <em>Polling Inteval</em>}' attribute.
170:             * <!-- begin-user-doc -->
171:             * <!-- end-user-doc -->
172:             * @see #getPollingInteval()
173:             * @generated
174:             * @ordered
175:             */
176:            protected String pollingInteval = POLLING_INTEVAL_EDEFAULT;
177:
178:            /**
179:             * The cached value of the '{@link #getReply() <em>Reply</em>}' containment reference.
180:             * <!-- begin-user-doc -->
181:             * <!-- end-user-doc -->
182:             * @see #getReply()
183:             * @generated
184:             * @ordered
185:             */
186:            protected EmailConsumerReply reply = null;
187:
188:            /**
189:             * The default value of the '{@link #isUseScheduler() <em>Use Scheduler</em>}' attribute.
190:             * <!-- begin-user-doc -->
191:             * <!-- end-user-doc -->
192:             * @see #isUseScheduler()
193:             * @generated
194:             * @ordered
195:             */
196:            protected static final boolean USE_SCHEDULER_EDEFAULT = false;
197:
198:            /**
199:             * The cached value of the '{@link #isUseScheduler() <em>Use Scheduler</em>}' attribute.
200:             * <!-- begin-user-doc -->
201:             * <!-- end-user-doc -->
202:             * @see #isUseScheduler()
203:             * @generated
204:             * @ordered
205:             */
206:            protected boolean useScheduler = USE_SCHEDULER_EDEFAULT;
207:
208:            /**
209:             * The cached value of the '{@link #getScheduler() <em>Scheduler</em>}' containment reference.
210:             * <!-- begin-user-doc -->
211:             * <!-- end-user-doc -->
212:             * @see #getScheduler()
213:             * @generated
214:             * @ordered
215:             */
216:            protected Scheduler scheduler = null;
217:
218:            /**
219:             * The default value of the '{@link #getReceiveProtocol() <em>Receive Protocol</em>}' attribute.
220:             * <!-- begin-user-doc -->
221:             * <!-- end-user-doc -->
222:             * @see #getReceiveProtocol()
223:             * @generated
224:             * @ordered
225:             */
226:            protected static final ReceiveProtocol RECEIVE_PROTOCOL_EDEFAULT = ReceiveProtocol.POP3_LITERAL;
227:
228:            /**
229:             * The cached value of the '{@link #getReceiveProtocol() <em>Receive Protocol</em>}' attribute.
230:             * <!-- begin-user-doc -->
231:             * <!-- end-user-doc -->
232:             * @see #getReceiveProtocol()
233:             * @generated
234:             * @ordered
235:             */
236:            protected ReceiveProtocol receiveProtocol = RECEIVE_PROTOCOL_EDEFAULT;
237:
238:            /**
239:             * The default value of the '{@link #getInboxFolder() <em>Inbox Folder</em>}' attribute.
240:             * <!-- begin-user-doc -->
241:             * <!-- end-user-doc -->
242:             * @see #getInboxFolder()
243:             * @generated
244:             * @ordered
245:             */
246:            protected static final String INBOX_FOLDER_EDEFAULT = "INBOX";
247:
248:            /**
249:             * The cached value of the '{@link #getInboxFolder() <em>Inbox Folder</em>}' attribute.
250:             * <!-- begin-user-doc -->
251:             * <!-- end-user-doc -->
252:             * @see #getInboxFolder()
253:             * @generated
254:             * @ordered
255:             */
256:            protected String inboxFolder = INBOX_FOLDER_EDEFAULT;
257:
258:            /**
259:             * <!-- begin-user-doc -->
260:             * <!-- end-user-doc -->
261:             * @generated
262:             */
263:            protected EmailConsumerImpl() {
264:                super ();
265:            }
266:
267:            /**
268:             * <!-- begin-user-doc -->
269:             * <!-- end-user-doc -->
270:             * @generated
271:             */
272:            protected EClass eStaticClass() {
273:                return componentflowPackage.Literals.EMAIL_CONSUMER;
274:            }
275:
276:            /**
277:             * <!-- begin-user-doc -->
278:             * <!-- end-user-doc -->
279:             * @generated
280:             */
281:            public String getEndPointName() {
282:                return endPointName;
283:            }
284:
285:            /**
286:             * <!-- begin-user-doc -->
287:             * <!-- end-user-doc -->
288:             * @generated
289:             */
290:            public void setEndPointName(String newEndPointName) {
291:                String oldEndPointName = endPointName;
292:                endPointName = newEndPointName;
293:                if (eNotificationRequired())
294:                    eNotify(new ENotificationImpl(
295:                            this ,
296:                            Notification.SET,
297:                            componentflowPackage.EMAIL_CONSUMER__END_POINT_NAME,
298:                            oldEndPointName, endPointName));
299:            }
300:
301:            /**
302:             * <!-- begin-user-doc -->
303:             * <!-- end-user-doc -->
304:             * @generated
305:             */
306:            public String getCharset() {
307:                return charset;
308:            }
309:
310:            /**
311:             * <!-- begin-user-doc -->
312:             * <!-- end-user-doc -->
313:             * @generated
314:             */
315:            public void setCharset(String newCharset) {
316:                String oldCharset = charset;
317:                charset = newCharset;
318:                if (eNotificationRequired())
319:                    eNotify(new ENotificationImpl(this , Notification.SET,
320:                            componentflowPackage.EMAIL_CONSUMER__CHARSET,
321:                            oldCharset, charset));
322:            }
323:
324:            /**
325:             * <!-- begin-user-doc -->
326:             * <!-- end-user-doc -->
327:             * @generated
328:             */
329:            public RecordTypeType getRecordType() {
330:                return recordType;
331:            }
332:
333:            /**
334:             * <!-- begin-user-doc -->
335:             * <!-- end-user-doc -->
336:             * @generated
337:             */
338:            public void setRecordType(RecordTypeType newRecordType) {
339:                RecordTypeType oldRecordType = recordType;
340:                recordType = newRecordType == null ? RECORD_TYPE_EDEFAULT
341:                        : newRecordType;
342:                if (eNotificationRequired())
343:                    eNotify(new ENotificationImpl(this , Notification.SET,
344:                            componentflowPackage.EMAIL_CONSUMER__RECORD_TYPE,
345:                            oldRecordType, recordType));
346:            }
347:
348:            /**
349:             * <!-- begin-user-doc -->
350:             * <!-- end-user-doc -->
351:             * @generated
352:             */
353:            public DefaultMepType getDefaultMep() {
354:                return defaultMep;
355:            }
356:
357:            /**
358:             * <!-- begin-user-doc -->
359:             * <!-- end-user-doc -->
360:             * @generated
361:             */
362:            public void setDefaultMep(DefaultMepType newDefaultMep) {
363:                DefaultMepType oldDefaultMep = defaultMep;
364:                defaultMep = newDefaultMep == null ? DEFAULT_MEP_EDEFAULT
365:                        : newDefaultMep;
366:                if (eNotificationRequired())
367:                    eNotify(new ENotificationImpl(this , Notification.SET,
368:                            componentflowPackage.EMAIL_CONSUMER__DEFAULT_MEP,
369:                            oldDefaultMep, defaultMep));
370:            }
371:
372:            /**
373:             * <!-- begin-user-doc -->
374:             * <!-- end-user-doc -->
375:             * @generated
376:             */
377:            public String getAttachmentDir() {
378:                return attachmentDir;
379:            }
380:
381:            /**
382:             * <!-- begin-user-doc -->
383:             * <!-- end-user-doc -->
384:             * @generated
385:             */
386:            public void setAttachmentDir(String newAttachmentDir) {
387:                String oldAttachmentDir = attachmentDir;
388:                attachmentDir = newAttachmentDir;
389:                if (eNotificationRequired())
390:                    eNotify(new ENotificationImpl(
391:                            this ,
392:                            Notification.SET,
393:                            componentflowPackage.EMAIL_CONSUMER__ATTACHMENT_DIR,
394:                            oldAttachmentDir, attachmentDir));
395:            }
396:
397:            /**
398:             * <!-- begin-user-doc -->
399:             * <!-- end-user-doc -->
400:             * @generated
401:             */
402:            public String getPollingInteval() {
403:                return pollingInteval;
404:            }
405:
406:            /**
407:             * <!-- begin-user-doc -->
408:             * <!-- end-user-doc -->
409:             * @generated
410:             */
411:            public void setPollingInteval(String newPollingInteval) {
412:                String oldPollingInteval = pollingInteval;
413:                pollingInteval = newPollingInteval;
414:                if (eNotificationRequired())
415:                    eNotify(new ENotificationImpl(
416:                            this ,
417:                            Notification.SET,
418:                            componentflowPackage.EMAIL_CONSUMER__POLLING_INTEVAL,
419:                            oldPollingInteval, pollingInteval));
420:            }
421:
422:            /**
423:             * <!-- begin-user-doc -->
424:             * <!-- end-user-doc -->
425:             * @generated
426:             */
427:            public EmailConsumerReply getReply() {
428:                return reply;
429:            }
430:
431:            /**
432:             * <!-- begin-user-doc -->
433:             * <!-- end-user-doc -->
434:             * @generated
435:             */
436:            public NotificationChain basicSetReply(EmailConsumerReply newReply,
437:                    NotificationChain msgs) {
438:                EmailConsumerReply oldReply = reply;
439:                reply = newReply;
440:                if (eNotificationRequired()) {
441:                    ENotificationImpl notification = new ENotificationImpl(
442:                            this , Notification.SET,
443:                            componentflowPackage.EMAIL_CONSUMER__REPLY,
444:                            oldReply, newReply);
445:                    if (msgs == null)
446:                        msgs = notification;
447:                    else
448:                        msgs.add(notification);
449:                }
450:                return msgs;
451:            }
452:
453:            /**
454:             * <!-- begin-user-doc -->
455:             * <!-- end-user-doc -->
456:             * @generated
457:             */
458:            public void setReply(EmailConsumerReply newReply) {
459:                if (newReply != reply) {
460:                    NotificationChain msgs = null;
461:                    if (reply != null)
462:                        msgs = ((InternalEObject) reply)
463:                                .eInverseRemove(
464:                                        this ,
465:                                        EOPPOSITE_FEATURE_BASE
466:                                                - componentflowPackage.EMAIL_CONSUMER__REPLY,
467:                                        null, msgs);
468:                    if (newReply != null)
469:                        msgs = ((InternalEObject) newReply)
470:                                .eInverseAdd(
471:                                        this ,
472:                                        EOPPOSITE_FEATURE_BASE
473:                                                - componentflowPackage.EMAIL_CONSUMER__REPLY,
474:                                        null, msgs);
475:                    msgs = basicSetReply(newReply, msgs);
476:                    if (msgs != null)
477:                        msgs.dispatch();
478:                } else if (eNotificationRequired())
479:                    eNotify(new ENotificationImpl(this , Notification.SET,
480:                            componentflowPackage.EMAIL_CONSUMER__REPLY,
481:                            newReply, newReply));
482:            }
483:
484:            /**
485:             * <!-- begin-user-doc -->
486:             * <!-- end-user-doc -->
487:             * @generated
488:             */
489:            public boolean isUseScheduler() {
490:                return useScheduler;
491:            }
492:
493:            /**
494:             * <!-- begin-user-doc -->
495:             * <!-- end-user-doc -->
496:             * @generated
497:             */
498:            public void setUseScheduler(boolean newUseScheduler) {
499:                boolean oldUseScheduler = useScheduler;
500:                useScheduler = newUseScheduler;
501:                if (eNotificationRequired())
502:                    eNotify(new ENotificationImpl(this , Notification.SET,
503:                            componentflowPackage.EMAIL_CONSUMER__USE_SCHEDULER,
504:                            oldUseScheduler, useScheduler));
505:            }
506:
507:            /**
508:             * <!-- begin-user-doc -->
509:             * <!-- end-user-doc -->
510:             * @generated
511:             */
512:            public Scheduler getScheduler() {
513:                return scheduler;
514:            }
515:
516:            /**
517:             * <!-- begin-user-doc -->
518:             * <!-- end-user-doc -->
519:             * @generated
520:             */
521:            public NotificationChain basicSetScheduler(Scheduler newScheduler,
522:                    NotificationChain msgs) {
523:                Scheduler oldScheduler = scheduler;
524:                scheduler = newScheduler;
525:                if (eNotificationRequired()) {
526:                    ENotificationImpl notification = new ENotificationImpl(
527:                            this , Notification.SET,
528:                            componentflowPackage.EMAIL_CONSUMER__SCHEDULER,
529:                            oldScheduler, newScheduler);
530:                    if (msgs == null)
531:                        msgs = notification;
532:                    else
533:                        msgs.add(notification);
534:                }
535:                return msgs;
536:            }
537:
538:            /**
539:             * <!-- begin-user-doc -->
540:             * <!-- end-user-doc -->
541:             * @generated
542:             */
543:            public void setScheduler(Scheduler newScheduler) {
544:                if (newScheduler != scheduler) {
545:                    NotificationChain msgs = null;
546:                    if (scheduler != null)
547:                        msgs = ((InternalEObject) scheduler)
548:                                .eInverseRemove(
549:                                        this ,
550:                                        EOPPOSITE_FEATURE_BASE
551:                                                - componentflowPackage.EMAIL_CONSUMER__SCHEDULER,
552:                                        null, msgs);
553:                    if (newScheduler != null)
554:                        msgs = ((InternalEObject) newScheduler)
555:                                .eInverseAdd(
556:                                        this ,
557:                                        EOPPOSITE_FEATURE_BASE
558:                                                - componentflowPackage.EMAIL_CONSUMER__SCHEDULER,
559:                                        null, msgs);
560:                    msgs = basicSetScheduler(newScheduler, msgs);
561:                    if (msgs != null)
562:                        msgs.dispatch();
563:                } else if (eNotificationRequired())
564:                    eNotify(new ENotificationImpl(this , Notification.SET,
565:                            componentflowPackage.EMAIL_CONSUMER__SCHEDULER,
566:                            newScheduler, newScheduler));
567:            }
568:
569:            /**
570:             * <!-- begin-user-doc -->
571:             * <!-- end-user-doc -->
572:             * @generated
573:             */
574:            public ReceiveProtocol getReceiveProtocol() {
575:                return receiveProtocol;
576:            }
577:
578:            /**
579:             * <!-- begin-user-doc -->
580:             * <!-- end-user-doc -->
581:             * @generated
582:             */
583:            public void setReceiveProtocol(ReceiveProtocol newReceiveProtocol) {
584:                ReceiveProtocol oldReceiveProtocol = receiveProtocol;
585:                receiveProtocol = newReceiveProtocol == null ? RECEIVE_PROTOCOL_EDEFAULT
586:                        : newReceiveProtocol;
587:                if (eNotificationRequired())
588:                    eNotify(new ENotificationImpl(
589:                            this ,
590:                            Notification.SET,
591:                            componentflowPackage.EMAIL_CONSUMER__RECEIVE_PROTOCOL,
592:                            oldReceiveProtocol, receiveProtocol));
593:            }
594:
595:            /**
596:             * <!-- begin-user-doc -->
597:             * <!-- end-user-doc -->
598:             * @generated
599:             */
600:            public String getInboxFolder() {
601:                return inboxFolder;
602:            }
603:
604:            /**
605:             * <!-- begin-user-doc -->
606:             * <!-- end-user-doc -->
607:             * @generated
608:             */
609:            public void setInboxFolder(String newInboxFolder) {
610:                String oldInboxFolder = inboxFolder;
611:                inboxFolder = newInboxFolder;
612:                if (eNotificationRequired())
613:                    eNotify(new ENotificationImpl(this , Notification.SET,
614:                            componentflowPackage.EMAIL_CONSUMER__INBOX_FOLDER,
615:                            oldInboxFolder, inboxFolder));
616:            }
617:
618:            /**
619:             * <!-- begin-user-doc -->
620:             * <!-- end-user-doc -->
621:             * @generated
622:             */
623:            public NotificationChain eInverseRemove(InternalEObject otherEnd,
624:                    int featureID, NotificationChain msgs) {
625:                switch (featureID) {
626:                case componentflowPackage.EMAIL_CONSUMER__REPLY:
627:                    return basicSetReply(null, msgs);
628:                case componentflowPackage.EMAIL_CONSUMER__SCHEDULER:
629:                    return basicSetScheduler(null, msgs);
630:                }
631:                return super .eInverseRemove(otherEnd, featureID, msgs);
632:            }
633:
634:            /**
635:             * <!-- begin-user-doc -->
636:             * <!-- end-user-doc -->
637:             * @generated
638:             */
639:            public Object eGet(int featureID, boolean resolve, boolean coreType) {
640:                switch (featureID) {
641:                case componentflowPackage.EMAIL_CONSUMER__END_POINT_NAME:
642:                    return getEndPointName();
643:                case componentflowPackage.EMAIL_CONSUMER__CHARSET:
644:                    return getCharset();
645:                case componentflowPackage.EMAIL_CONSUMER__RECORD_TYPE:
646:                    return getRecordType();
647:                case componentflowPackage.EMAIL_CONSUMER__DEFAULT_MEP:
648:                    return getDefaultMep();
649:                case componentflowPackage.EMAIL_CONSUMER__ATTACHMENT_DIR:
650:                    return getAttachmentDir();
651:                case componentflowPackage.EMAIL_CONSUMER__POLLING_INTEVAL:
652:                    return getPollingInteval();
653:                case componentflowPackage.EMAIL_CONSUMER__REPLY:
654:                    return getReply();
655:                case componentflowPackage.EMAIL_CONSUMER__USE_SCHEDULER:
656:                    return isUseScheduler() ? Boolean.TRUE : Boolean.FALSE;
657:                case componentflowPackage.EMAIL_CONSUMER__SCHEDULER:
658:                    return getScheduler();
659:                case componentflowPackage.EMAIL_CONSUMER__RECEIVE_PROTOCOL:
660:                    return getReceiveProtocol();
661:                case componentflowPackage.EMAIL_CONSUMER__INBOX_FOLDER:
662:                    return getInboxFolder();
663:                }
664:                return super .eGet(featureID, resolve, coreType);
665:            }
666:
667:            /**
668:             * <!-- begin-user-doc -->
669:             * <!-- end-user-doc -->
670:             * @generated
671:             */
672:            public void eSet(int featureID, Object newValue) {
673:                switch (featureID) {
674:                case componentflowPackage.EMAIL_CONSUMER__END_POINT_NAME:
675:                    setEndPointName((String) newValue);
676:                    return;
677:                case componentflowPackage.EMAIL_CONSUMER__CHARSET:
678:                    setCharset((String) newValue);
679:                    return;
680:                case componentflowPackage.EMAIL_CONSUMER__RECORD_TYPE:
681:                    setRecordType((RecordTypeType) newValue);
682:                    return;
683:                case componentflowPackage.EMAIL_CONSUMER__DEFAULT_MEP:
684:                    setDefaultMep((DefaultMepType) newValue);
685:                    return;
686:                case componentflowPackage.EMAIL_CONSUMER__ATTACHMENT_DIR:
687:                    setAttachmentDir((String) newValue);
688:                    return;
689:                case componentflowPackage.EMAIL_CONSUMER__POLLING_INTEVAL:
690:                    setPollingInteval((String) newValue);
691:                    return;
692:                case componentflowPackage.EMAIL_CONSUMER__REPLY:
693:                    setReply((EmailConsumerReply) newValue);
694:                    return;
695:                case componentflowPackage.EMAIL_CONSUMER__USE_SCHEDULER:
696:                    setUseScheduler(((Boolean) newValue).booleanValue());
697:                    return;
698:                case componentflowPackage.EMAIL_CONSUMER__SCHEDULER:
699:                    setScheduler((Scheduler) newValue);
700:                    return;
701:                case componentflowPackage.EMAIL_CONSUMER__RECEIVE_PROTOCOL:
702:                    setReceiveProtocol((ReceiveProtocol) newValue);
703:                    return;
704:                case componentflowPackage.EMAIL_CONSUMER__INBOX_FOLDER:
705:                    setInboxFolder((String) newValue);
706:                    return;
707:                }
708:                super .eSet(featureID, newValue);
709:            }
710:
711:            /**
712:             * <!-- begin-user-doc -->
713:             * <!-- end-user-doc -->
714:             * @generated
715:             */
716:            public void eUnset(int featureID) {
717:                switch (featureID) {
718:                case componentflowPackage.EMAIL_CONSUMER__END_POINT_NAME:
719:                    setEndPointName(END_POINT_NAME_EDEFAULT);
720:                    return;
721:                case componentflowPackage.EMAIL_CONSUMER__CHARSET:
722:                    setCharset(CHARSET_EDEFAULT);
723:                    return;
724:                case componentflowPackage.EMAIL_CONSUMER__RECORD_TYPE:
725:                    setRecordType(RECORD_TYPE_EDEFAULT);
726:                    return;
727:                case componentflowPackage.EMAIL_CONSUMER__DEFAULT_MEP:
728:                    setDefaultMep(DEFAULT_MEP_EDEFAULT);
729:                    return;
730:                case componentflowPackage.EMAIL_CONSUMER__ATTACHMENT_DIR:
731:                    setAttachmentDir(ATTACHMENT_DIR_EDEFAULT);
732:                    return;
733:                case componentflowPackage.EMAIL_CONSUMER__POLLING_INTEVAL:
734:                    setPollingInteval(POLLING_INTEVAL_EDEFAULT);
735:                    return;
736:                case componentflowPackage.EMAIL_CONSUMER__REPLY:
737:                    setReply((EmailConsumerReply) null);
738:                    return;
739:                case componentflowPackage.EMAIL_CONSUMER__USE_SCHEDULER:
740:                    setUseScheduler(USE_SCHEDULER_EDEFAULT);
741:                    return;
742:                case componentflowPackage.EMAIL_CONSUMER__SCHEDULER:
743:                    setScheduler((Scheduler) null);
744:                    return;
745:                case componentflowPackage.EMAIL_CONSUMER__RECEIVE_PROTOCOL:
746:                    setReceiveProtocol(RECEIVE_PROTOCOL_EDEFAULT);
747:                    return;
748:                case componentflowPackage.EMAIL_CONSUMER__INBOX_FOLDER:
749:                    setInboxFolder(INBOX_FOLDER_EDEFAULT);
750:                    return;
751:                }
752:                super .eUnset(featureID);
753:            }
754:
755:            /**
756:             * <!-- begin-user-doc -->
757:             * <!-- end-user-doc -->
758:             * @generated
759:             */
760:            public boolean eIsSet(int featureID) {
761:                switch (featureID) {
762:                case componentflowPackage.EMAIL_CONSUMER__END_POINT_NAME:
763:                    return END_POINT_NAME_EDEFAULT == null ? endPointName != null
764:                            : !END_POINT_NAME_EDEFAULT.equals(endPointName);
765:                case componentflowPackage.EMAIL_CONSUMER__CHARSET:
766:                    return CHARSET_EDEFAULT == null ? charset != null
767:                            : !CHARSET_EDEFAULT.equals(charset);
768:                case componentflowPackage.EMAIL_CONSUMER__RECORD_TYPE:
769:                    return recordType != RECORD_TYPE_EDEFAULT;
770:                case componentflowPackage.EMAIL_CONSUMER__DEFAULT_MEP:
771:                    return defaultMep != DEFAULT_MEP_EDEFAULT;
772:                case componentflowPackage.EMAIL_CONSUMER__ATTACHMENT_DIR:
773:                    return ATTACHMENT_DIR_EDEFAULT == null ? attachmentDir != null
774:                            : !ATTACHMENT_DIR_EDEFAULT.equals(attachmentDir);
775:                case componentflowPackage.EMAIL_CONSUMER__POLLING_INTEVAL:
776:                    return POLLING_INTEVAL_EDEFAULT == null ? pollingInteval != null
777:                            : !POLLING_INTEVAL_EDEFAULT.equals(pollingInteval);
778:                case componentflowPackage.EMAIL_CONSUMER__REPLY:
779:                    return reply != null;
780:                case componentflowPackage.EMAIL_CONSUMER__USE_SCHEDULER:
781:                    return useScheduler != USE_SCHEDULER_EDEFAULT;
782:                case componentflowPackage.EMAIL_CONSUMER__SCHEDULER:
783:                    return scheduler != null;
784:                case componentflowPackage.EMAIL_CONSUMER__RECEIVE_PROTOCOL:
785:                    return receiveProtocol != RECEIVE_PROTOCOL_EDEFAULT;
786:                case componentflowPackage.EMAIL_CONSUMER__INBOX_FOLDER:
787:                    return INBOX_FOLDER_EDEFAULT == null ? inboxFolder != null
788:                            : !INBOX_FOLDER_EDEFAULT.equals(inboxFolder);
789:                }
790:                return super .eIsSet(featureID);
791:            }
792:
793:            /**
794:             * <!-- begin-user-doc -->
795:             * <!-- end-user-doc -->
796:             * @generated
797:             */
798:            public int eBaseStructuralFeatureID(int derivedFeatureID,
799:                    Class baseClass) {
800:                if (baseClass == EndPoint.class) {
801:                    switch (derivedFeatureID) {
802:                    case componentflowPackage.EMAIL_CONSUMER__END_POINT_NAME:
803:                        return componentflowPackage.END_POINT__END_POINT_NAME;
804:                    case componentflowPackage.EMAIL_CONSUMER__CHARSET:
805:                        return componentflowPackage.END_POINT__CHARSET;
806:                    case componentflowPackage.EMAIL_CONSUMER__RECORD_TYPE:
807:                        return componentflowPackage.END_POINT__RECORD_TYPE;
808:                    default:
809:                        return -1;
810:                    }
811:                }
812:                if (baseClass == Consumer.class) {
813:                    switch (derivedFeatureID) {
814:                    case componentflowPackage.EMAIL_CONSUMER__DEFAULT_MEP:
815:                        return componentflowPackage.CONSUMER__DEFAULT_MEP;
816:                    default:
817:                        return -1;
818:                    }
819:                }
820:                return super .eBaseStructuralFeatureID(derivedFeatureID,
821:                        baseClass);
822:            }
823:
824:            /**
825:             * <!-- begin-user-doc -->
826:             * <!-- end-user-doc -->
827:             * @generated
828:             */
829:            public int eDerivedStructuralFeatureID(int baseFeatureID,
830:                    Class baseClass) {
831:                if (baseClass == EndPoint.class) {
832:                    switch (baseFeatureID) {
833:                    case componentflowPackage.END_POINT__END_POINT_NAME:
834:                        return componentflowPackage.EMAIL_CONSUMER__END_POINT_NAME;
835:                    case componentflowPackage.END_POINT__CHARSET:
836:                        return componentflowPackage.EMAIL_CONSUMER__CHARSET;
837:                    case componentflowPackage.END_POINT__RECORD_TYPE:
838:                        return componentflowPackage.EMAIL_CONSUMER__RECORD_TYPE;
839:                    default:
840:                        return -1;
841:                    }
842:                }
843:                if (baseClass == Consumer.class) {
844:                    switch (baseFeatureID) {
845:                    case componentflowPackage.CONSUMER__DEFAULT_MEP:
846:                        return componentflowPackage.EMAIL_CONSUMER__DEFAULT_MEP;
847:                    default:
848:                        return -1;
849:                    }
850:                }
851:                return super .eDerivedStructuralFeatureID(baseFeatureID,
852:                        baseClass);
853:            }
854:
855:            /**
856:             * <!-- begin-user-doc -->
857:             * <!-- end-user-doc -->
858:             * @generated
859:             */
860:            public String toString() {
861:                if (eIsProxy())
862:                    return super .toString();
863:
864:                StringBuffer result = new StringBuffer(super .toString());
865:                result.append(" (endPointName: ");
866:                result.append(endPointName);
867:                result.append(", charset: ");
868:                result.append(charset);
869:                result.append(", recordType: ");
870:                result.append(recordType);
871:                result.append(", defaultMep: ");
872:                result.append(defaultMep);
873:                result.append(", attachmentDir: ");
874:                result.append(attachmentDir);
875:                result.append(", pollingInteval: ");
876:                result.append(pollingInteval);
877:                result.append(", useScheduler: ");
878:                result.append(useScheduler);
879:                result.append(", receiveProtocol: ");
880:                result.append(receiveProtocol);
881:                result.append(", inboxFolder: ");
882:                result.append(inboxFolder);
883:                result.append(')');
884:                return result.toString();
885:            }
886:
887:        } //EmailConsumerImpl
w_ww__.__j__a__va2___s__.__co__m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.