Source Code Cross Referenced for JMSImpl.java in  » ESB » cbesb-1.2 » com » bostechcorp » cbesb » ui » componentflow » componentFlowEditor » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ESB » cbesb 1.2 » com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * <copyright>
003:         * </copyright>
004:         *
005:         * $Id$
006:         */package com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl;
007:
008:        import org.eclipse.emf.common.notify.Notification;
009:        import org.eclipse.emf.common.notify.NotificationChain;
010:        import org.eclipse.emf.ecore.EClass;
011:        import org.eclipse.emf.ecore.InternalEObject;
012:        import org.eclipse.emf.ecore.impl.ENotificationImpl;
013:
014:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.Consumer;
015:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.DefaultMepType;
016:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.JMS;
017:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.JMSConsumer;
018:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.JMSProvider;
019:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.Provider;
020:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.componentflowFactory;
021:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.componentflowPackage;
022:
023:        /**
024:         * <!-- begin-user-doc -->
025:         * An implementation of the model object '<em><b>JMS</b></em>'.
026:         * <!-- end-user-doc -->
027:         * <p>
028:         * The following features are implemented:
029:         * <ul>
030:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSImpl#getJmsConsumer <em>Jms Consumer</em>}</li>
031:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSImpl#getJmsProvider <em>Jms Provider</em>}</li>
032:         * </ul>
033:         * </p>
034:         *
035:         * @generated
036:         */
037:        public class JMSImpl extends BindingComponentImpl implements  JMS {
038:            /**
039:             * <!-- begin-user-doc -->
040:             * <!-- end-user-doc -->
041:             * @generated
042:             */
043:            public static final String copyright = "Copyright, Bostech Corp.";
044:
045:            /**
046:             * The cached value of the '{@link #getJmsConsumer() <em>Jms Consumer</em>}' containment reference.
047:             * <!-- begin-user-doc -->
048:             * <!-- end-user-doc -->
049:             * @see #getJmsConsumer()
050:             * @generated
051:             * @ordered
052:             */
053:            protected JMSConsumer jmsConsumer = null;
054:
055:            /**
056:             * The cached value of the '{@link #getJmsProvider() <em>Jms Provider</em>}' containment reference.
057:             * <!-- begin-user-doc -->
058:             * <!-- end-user-doc -->
059:             * @see #getJmsProvider()
060:             * @generated
061:             * @ordered
062:             */
063:            protected JMSProvider jmsProvider = null;
064:
065:            /**
066:             * <!-- begin-user-doc -->
067:             * <!-- end-user-doc -->
068:             * @generated NOT
069:             */
070:            protected JMSImpl() {
071:                super ();
072:                //jmsWSDL.setRole(ServiceType.BOTH_LITERAL);
073:
074:                //		HttpTarget httpTarget = componentflowFactory.eINSTANCE.createMQPort()
075:                //
076:                JMSConsumer consumer = componentflowFactory.eINSTANCE
077:                        .createJMSConsumer();
078:                JMSProvider provider = componentflowFactory.eINSTANCE
079:                        .createJMSProvider();
080:                //		
081:                //
082:                setJmsConsumer(consumer);
083:                setJmsProvider(provider);
084:
085:                //jmsWSDL.setJmsConsumerCCSL(consumerCCSL);
086:                //jmsWSDL.setJmsProviderCCSL(providerCCSL);
087:
088:            }
089:
090:            /**
091:             * <!-- begin-user-doc -->
092:             * <!-- end-user-doc -->
093:             * @generated
094:             */
095:            protected EClass eStaticClass() {
096:                return componentflowPackage.Literals.JMS;
097:            }
098:
099:            /**
100:             * <!-- begin-user-doc -->
101:             * <!-- end-user-doc -->
102:             * @generated
103:             */
104:            public JMSConsumer getJmsConsumer() {
105:                return jmsConsumer;
106:            }
107:
108:            /**
109:             * <!-- begin-user-doc -->
110:             * <!-- end-user-doc -->
111:             * @generated
112:             */
113:            public NotificationChain basicSetJmsConsumer(
114:                    JMSConsumer newJmsConsumer, NotificationChain msgs) {
115:                JMSConsumer oldJmsConsumer = jmsConsumer;
116:                jmsConsumer = newJmsConsumer;
117:                if (eNotificationRequired()) {
118:                    ENotificationImpl notification = new ENotificationImpl(
119:                            this , Notification.SET,
120:                            componentflowPackage.JMS__JMS_CONSUMER,
121:                            oldJmsConsumer, newJmsConsumer);
122:                    if (msgs == null)
123:                        msgs = notification;
124:                    else
125:                        msgs.add(notification);
126:                }
127:                return msgs;
128:            }
129:
130:            /**
131:             * <!-- begin-user-doc -->
132:             * <!-- end-user-doc -->
133:             * @generated
134:             */
135:            public void setJmsConsumer(JMSConsumer newJmsConsumer) {
136:                if (newJmsConsumer != jmsConsumer) {
137:                    NotificationChain msgs = null;
138:                    if (jmsConsumer != null)
139:                        msgs = ((InternalEObject) jmsConsumer)
140:                                .eInverseRemove(
141:                                        this ,
142:                                        EOPPOSITE_FEATURE_BASE
143:                                                - componentflowPackage.JMS__JMS_CONSUMER,
144:                                        null, msgs);
145:                    if (newJmsConsumer != null)
146:                        msgs = ((InternalEObject) newJmsConsumer)
147:                                .eInverseAdd(
148:                                        this ,
149:                                        EOPPOSITE_FEATURE_BASE
150:                                                - componentflowPackage.JMS__JMS_CONSUMER,
151:                                        null, msgs);
152:                    msgs = basicSetJmsConsumer(newJmsConsumer, msgs);
153:                    if (msgs != null)
154:                        msgs.dispatch();
155:                } else if (eNotificationRequired())
156:                    eNotify(new ENotificationImpl(this , Notification.SET,
157:                            componentflowPackage.JMS__JMS_CONSUMER,
158:                            newJmsConsumer, newJmsConsumer));
159:            }
160:
161:            /**
162:             * <!-- begin-user-doc -->
163:             * <!-- end-user-doc -->
164:             * @generated
165:             */
166:            public JMSProvider getJmsProvider() {
167:                return jmsProvider;
168:            }
169:
170:            /**
171:             * <!-- begin-user-doc -->
172:             * <!-- end-user-doc -->
173:             * @generated
174:             */
175:            public NotificationChain basicSetJmsProvider(
176:                    JMSProvider newJmsProvider, NotificationChain msgs) {
177:                JMSProvider oldJmsProvider = jmsProvider;
178:                jmsProvider = newJmsProvider;
179:                if (eNotificationRequired()) {
180:                    ENotificationImpl notification = new ENotificationImpl(
181:                            this , Notification.SET,
182:                            componentflowPackage.JMS__JMS_PROVIDER,
183:                            oldJmsProvider, newJmsProvider);
184:                    if (msgs == null)
185:                        msgs = notification;
186:                    else
187:                        msgs.add(notification);
188:                }
189:                return msgs;
190:            }
191:
192:            /**
193:             * <!-- begin-user-doc -->
194:             * <!-- end-user-doc -->
195:             * @generated
196:             */
197:            public void setJmsProvider(JMSProvider newJmsProvider) {
198:                if (newJmsProvider != jmsProvider) {
199:                    NotificationChain msgs = null;
200:                    if (jmsProvider != null)
201:                        msgs = ((InternalEObject) jmsProvider)
202:                                .eInverseRemove(
203:                                        this ,
204:                                        EOPPOSITE_FEATURE_BASE
205:                                                - componentflowPackage.JMS__JMS_PROVIDER,
206:                                        null, msgs);
207:                    if (newJmsProvider != null)
208:                        msgs = ((InternalEObject) newJmsProvider)
209:                                .eInverseAdd(
210:                                        this ,
211:                                        EOPPOSITE_FEATURE_BASE
212:                                                - componentflowPackage.JMS__JMS_PROVIDER,
213:                                        null, msgs);
214:                    msgs = basicSetJmsProvider(newJmsProvider, msgs);
215:                    if (msgs != null)
216:                        msgs.dispatch();
217:                } else if (eNotificationRequired())
218:                    eNotify(new ENotificationImpl(this , Notification.SET,
219:                            componentflowPackage.JMS__JMS_PROVIDER,
220:                            newJmsProvider, newJmsProvider));
221:            }
222:
223:            /**
224:             * <!-- begin-user-doc -->
225:             * <!-- end-user-doc -->
226:             * @generated
227:             */
228:            public NotificationChain eInverseRemove(InternalEObject otherEnd,
229:                    int featureID, NotificationChain msgs) {
230:                switch (featureID) {
231:                case componentflowPackage.JMS__JMS_CONSUMER:
232:                    return basicSetJmsConsumer(null, msgs);
233:                case componentflowPackage.JMS__JMS_PROVIDER:
234:                    return basicSetJmsProvider(null, msgs);
235:                }
236:                return super .eInverseRemove(otherEnd, featureID, msgs);
237:            }
238:
239:            /**
240:             * <!-- begin-user-doc -->
241:             * <!-- end-user-doc -->
242:             * @generated
243:             */
244:            public Object eGet(int featureID, boolean resolve, boolean coreType) {
245:                switch (featureID) {
246:                case componentflowPackage.JMS__JMS_CONSUMER:
247:                    return getJmsConsumer();
248:                case componentflowPackage.JMS__JMS_PROVIDER:
249:                    return getJmsProvider();
250:                }
251:                return super .eGet(featureID, resolve, coreType);
252:            }
253:
254:            /**
255:             * <!-- begin-user-doc -->
256:             * <!-- end-user-doc -->
257:             * @generated
258:             */
259:            public void eSet(int featureID, Object newValue) {
260:                switch (featureID) {
261:                case componentflowPackage.JMS__JMS_CONSUMER:
262:                    setJmsConsumer((JMSConsumer) newValue);
263:                    return;
264:                case componentflowPackage.JMS__JMS_PROVIDER:
265:                    setJmsProvider((JMSProvider) newValue);
266:                    return;
267:                }
268:                super .eSet(featureID, newValue);
269:            }
270:
271:            /**
272:             * <!-- begin-user-doc -->
273:             * <!-- end-user-doc -->
274:             * @generated
275:             */
276:            public void eUnset(int featureID) {
277:                switch (featureID) {
278:                case componentflowPackage.JMS__JMS_CONSUMER:
279:                    setJmsConsumer((JMSConsumer) null);
280:                    return;
281:                case componentflowPackage.JMS__JMS_PROVIDER:
282:                    setJmsProvider((JMSProvider) null);
283:                    return;
284:                }
285:                super .eUnset(featureID);
286:            }
287:
288:            /**
289:             * <!-- begin-user-doc -->
290:             * <!-- end-user-doc -->
291:             * @generated
292:             */
293:            public boolean eIsSet(int featureID) {
294:                switch (featureID) {
295:                case componentflowPackage.JMS__JMS_CONSUMER:
296:                    return jmsConsumer != null;
297:                case componentflowPackage.JMS__JMS_PROVIDER:
298:                    return jmsProvider != null;
299:                }
300:                return super .eIsSet(featureID);
301:            }
302:
303:            /**
304:             * <!-- begin-user-doc -->
305:             * <!-- end-user-doc -->
306:             * @generated NOT
307:             */
308:            public Consumer getConsumer() {
309:                return this .getJmsConsumer();
310:            }
311:
312:            @Override
313:            /**
314:             * <!-- begin-user-doc -->
315:             * <!-- end-user-doc -->
316:             * @generated NOT
317:             */
318:            public Provider getProvider() {
319:                return this .getJmsProvider();
320:            }
321:
322:        } //JMSImpl
w__w___w__._j__a___va_2___s__.___c___o_m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.