Source Code Cross Referenced for ComponentFlowEditorElementImpl.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: ComponentFlowEditorElementImpl.java 251 2006-08-18 01:00:08Z mpreston $
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:
011:        import org.eclipse.emf.ecore.EClass;
012:        import org.eclipse.emf.ecore.InternalEObject;
013:
014:        import org.eclipse.emf.ecore.impl.ENotificationImpl;
015:
016:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.ComponentFlowEditorElement;
017:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.ProviderCCSL;
018:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.DefaultMepType;
019:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.Upoc;
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>Component Flow Editor Element</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.ComponentFlowEditorElementImpl#getInterfaceName <em>Interface Name</em>}</li>
031:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.ComponentFlowEditorElementImpl#getServiceName <em>Service Name</em>}</li>
032:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.ComponentFlowEditorElementImpl#getUseCCSL <em>Use CCSL</em>}</li>
033:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.ComponentFlowEditorElementImpl#getProviderCCSL <em>Provider CCSL</em>}</li>
034:         * </ul>
035:         * </p>
036:         *
037:         * @generated
038:         */
039:        public class ComponentFlowEditorElementImpl extends BaseElementImpl
040:                implements  ComponentFlowEditorElement {
041:            /**
042:             * <!-- begin-user-doc -->
043:             * <!-- end-user-doc -->
044:             * @generated
045:             */
046:            public static final String copyright = "Copyright, Bostech Corp.";
047:
048:            /**
049:             * The default value of the '{@link #getInterfaceName() <em>Interface Name</em>}' attribute.
050:             * <!-- begin-user-doc -->
051:             * <!-- end-user-doc -->
052:             * @see #getInterfaceName()
053:             * @generated
054:             * @ordered
055:             */
056:            protected static final String INTERFACE_NAME_EDEFAULT = null;
057:
058:            /**
059:             * The cached value of the '{@link #getInterfaceName() <em>Interface Name</em>}' attribute.
060:             * <!-- begin-user-doc -->
061:             * <!-- end-user-doc -->
062:             * @see #getInterfaceName()
063:             * @generated
064:             * @ordered
065:             */
066:            protected String interfaceName = INTERFACE_NAME_EDEFAULT;
067:
068:            /**
069:             * The default value of the '{@link #getServiceName() <em>Service Name</em>}' attribute.
070:             * <!-- begin-user-doc -->
071:             * <!-- end-user-doc -->
072:             * @see #getServiceName()
073:             * @generated
074:             * @ordered
075:             */
076:            protected static final String SERVICE_NAME_EDEFAULT = null;
077:
078:            /**
079:             * The cached value of the '{@link #getServiceName() <em>Service Name</em>}' attribute.
080:             * <!-- begin-user-doc -->
081:             * <!-- end-user-doc -->
082:             * @see #getServiceName()
083:             * @generated
084:             * @ordered
085:             */
086:            protected String serviceName = SERVICE_NAME_EDEFAULT;
087:
088:            /**
089:             * The default value of the '{@link #getUseCCSL() <em>Use CCSL</em>}' attribute.
090:             * <!-- begin-user-doc -->
091:             * <!-- end-user-doc -->
092:             * @see #getUseCCSL()
093:             * @generated
094:             * @ordered
095:             */
096:            protected static final Boolean USE_CCSL_EDEFAULT = Boolean.TRUE;
097:
098:            /**
099:             * The cached value of the '{@link #getUseCCSL() <em>Use CCSL</em>}' attribute.
100:             * <!-- begin-user-doc -->
101:             * <!-- end-user-doc -->
102:             * @see #getUseCCSL()
103:             * @generated
104:             * @ordered
105:             */
106:            protected Boolean useCCSL = USE_CCSL_EDEFAULT;
107:
108:            /**
109:             * The cached value of the '{@link #getProviderCCSL() <em>Provider CCSL</em>}' containment reference.
110:             * <!-- begin-user-doc -->
111:             * <!-- end-user-doc -->
112:             * @see #getProviderCCSL()
113:             * @generated
114:             * @ordered
115:             */
116:            protected ProviderCCSL providerCCSL = null;
117:
118:            /**
119:             * <!-- begin-user-doc -->
120:             * <!-- end-user-doc -->
121:             * @generated NOT
122:             */
123:            protected ComponentFlowEditorElementImpl() {
124:                super ();
125:                ProviderCCSL providerCCSL = componentflowFactory.eINSTANCE
126:                        .createProviderCCSL();
127:                Upoc providerUpoc = componentflowFactory.eINSTANCE.createUpoc();
128:                providerCCSL.setUpoc(providerUpoc);
129:
130:                this .setProviderCCSL(providerCCSL);
131:
132:            }
133:
134:            /**
135:             * <!-- begin-user-doc -->
136:             * <!-- end-user-doc -->
137:             * @generated
138:             */
139:            protected EClass eStaticClass() {
140:                return componentflowPackage.Literals.COMPONENT_FLOW_EDITOR_ELEMENT;
141:            }
142:
143:            /**
144:             * <!-- begin-user-doc -->
145:             * <!-- end-user-doc -->
146:             * @generated
147:             */
148:            public String getInterfaceName() {
149:                return interfaceName;
150:            }
151:
152:            /**
153:             * <!-- begin-user-doc -->
154:             * <!-- end-user-doc -->
155:             * @generated
156:             */
157:            public void setInterfaceName(String newInterfaceName) {
158:                String oldInterfaceName = interfaceName;
159:                interfaceName = newInterfaceName;
160:                if (eNotificationRequired())
161:                    eNotify(new ENotificationImpl(
162:                            this ,
163:                            Notification.SET,
164:                            componentflowPackage.COMPONENT_FLOW_EDITOR_ELEMENT__INTERFACE_NAME,
165:                            oldInterfaceName, interfaceName));
166:            }
167:
168:            /**
169:             * <!-- begin-user-doc -->
170:             * <!-- end-user-doc -->
171:             * @generated
172:             */
173:            public String getServiceName() {
174:                return serviceName;
175:            }
176:
177:            /**
178:             * <!-- begin-user-doc -->
179:             * <!-- end-user-doc -->
180:             * @generated
181:             */
182:            public void setServiceName(String newServiceName) {
183:                String oldServiceName = serviceName;
184:                serviceName = newServiceName;
185:                if (eNotificationRequired())
186:                    eNotify(new ENotificationImpl(
187:                            this ,
188:                            Notification.SET,
189:                            componentflowPackage.COMPONENT_FLOW_EDITOR_ELEMENT__SERVICE_NAME,
190:                            oldServiceName, serviceName));
191:            }
192:
193:            /**
194:             * <!-- begin-user-doc -->
195:             * <!-- end-user-doc -->
196:             * @generated
197:             */
198:            public Boolean getUseCCSL() {
199:                return useCCSL;
200:            }
201:
202:            /**
203:             * <!-- begin-user-doc -->
204:             * <!-- end-user-doc -->
205:             * @generated
206:             */
207:            public void setUseCCSL(Boolean newUseCCSL) {
208:                Boolean oldUseCCSL = useCCSL;
209:                useCCSL = newUseCCSL;
210:                if (eNotificationRequired())
211:                    eNotify(new ENotificationImpl(
212:                            this ,
213:                            Notification.SET,
214:                            componentflowPackage.COMPONENT_FLOW_EDITOR_ELEMENT__USE_CCSL,
215:                            oldUseCCSL, useCCSL));
216:            }
217:
218:            /**
219:             * <!-- begin-user-doc -->
220:             * <!-- end-user-doc -->
221:             * @generated
222:             */
223:            public ProviderCCSL getProviderCCSL() {
224:                return providerCCSL;
225:            }
226:
227:            /**
228:             * <!-- begin-user-doc -->
229:             * <!-- end-user-doc -->
230:             * @generated
231:             */
232:            public NotificationChain basicSetProviderCCSL(
233:                    ProviderCCSL newProviderCCSL, NotificationChain msgs) {
234:                ProviderCCSL oldProviderCCSL = providerCCSL;
235:                providerCCSL = newProviderCCSL;
236:                if (eNotificationRequired()) {
237:                    ENotificationImpl notification = new ENotificationImpl(
238:                            this ,
239:                            Notification.SET,
240:                            componentflowPackage.COMPONENT_FLOW_EDITOR_ELEMENT__PROVIDER_CCSL,
241:                            oldProviderCCSL, newProviderCCSL);
242:                    if (msgs == null)
243:                        msgs = notification;
244:                    else
245:                        msgs.add(notification);
246:                }
247:                return msgs;
248:            }
249:
250:            /**
251:             * <!-- begin-user-doc -->
252:             * <!-- end-user-doc -->
253:             * @generated
254:             */
255:            public void setProviderCCSL(ProviderCCSL newProviderCCSL) {
256:                if (newProviderCCSL != providerCCSL) {
257:                    NotificationChain msgs = null;
258:                    if (providerCCSL != null)
259:                        msgs = ((InternalEObject) providerCCSL)
260:                                .eInverseRemove(
261:                                        this ,
262:                                        EOPPOSITE_FEATURE_BASE
263:                                                - componentflowPackage.COMPONENT_FLOW_EDITOR_ELEMENT__PROVIDER_CCSL,
264:                                        null, msgs);
265:                    if (newProviderCCSL != null)
266:                        msgs = ((InternalEObject) newProviderCCSL)
267:                                .eInverseAdd(
268:                                        this ,
269:                                        EOPPOSITE_FEATURE_BASE
270:                                                - componentflowPackage.COMPONENT_FLOW_EDITOR_ELEMENT__PROVIDER_CCSL,
271:                                        null, msgs);
272:                    msgs = basicSetProviderCCSL(newProviderCCSL, msgs);
273:                    if (msgs != null)
274:                        msgs.dispatch();
275:                } else if (eNotificationRequired())
276:                    eNotify(new ENotificationImpl(
277:                            this ,
278:                            Notification.SET,
279:                            componentflowPackage.COMPONENT_FLOW_EDITOR_ELEMENT__PROVIDER_CCSL,
280:                            newProviderCCSL, newProviderCCSL));
281:            }
282:
283:            /**
284:             * <!-- begin-user-doc -->
285:             * <!-- end-user-doc -->
286:             * @generated
287:             */
288:            public NotificationChain eInverseRemove(InternalEObject otherEnd,
289:                    int featureID, NotificationChain msgs) {
290:                switch (featureID) {
291:                case componentflowPackage.COMPONENT_FLOW_EDITOR_ELEMENT__PROVIDER_CCSL:
292:                    return basicSetProviderCCSL(null, msgs);
293:                }
294:                return super .eInverseRemove(otherEnd, featureID, msgs);
295:            }
296:
297:            /**
298:             * <!-- begin-user-doc -->
299:             * <!-- end-user-doc -->
300:             * @generated
301:             */
302:            public Object eGet(int featureID, boolean resolve, boolean coreType) {
303:                switch (featureID) {
304:                case componentflowPackage.COMPONENT_FLOW_EDITOR_ELEMENT__INTERFACE_NAME:
305:                    return getInterfaceName();
306:                case componentflowPackage.COMPONENT_FLOW_EDITOR_ELEMENT__SERVICE_NAME:
307:                    return getServiceName();
308:                case componentflowPackage.COMPONENT_FLOW_EDITOR_ELEMENT__USE_CCSL:
309:                    return getUseCCSL();
310:                case componentflowPackage.COMPONENT_FLOW_EDITOR_ELEMENT__PROVIDER_CCSL:
311:                    return getProviderCCSL();
312:                }
313:                return super .eGet(featureID, resolve, coreType);
314:            }
315:
316:            /**
317:             * <!-- begin-user-doc -->
318:             * <!-- end-user-doc -->
319:             * @generated
320:             */
321:            public void eSet(int featureID, Object newValue) {
322:                switch (featureID) {
323:                case componentflowPackage.COMPONENT_FLOW_EDITOR_ELEMENT__INTERFACE_NAME:
324:                    setInterfaceName((String) newValue);
325:                    return;
326:                case componentflowPackage.COMPONENT_FLOW_EDITOR_ELEMENT__SERVICE_NAME:
327:                    setServiceName((String) newValue);
328:                    return;
329:                case componentflowPackage.COMPONENT_FLOW_EDITOR_ELEMENT__USE_CCSL:
330:                    setUseCCSL((Boolean) newValue);
331:                    return;
332:                case componentflowPackage.COMPONENT_FLOW_EDITOR_ELEMENT__PROVIDER_CCSL:
333:                    setProviderCCSL((ProviderCCSL) newValue);
334:                    return;
335:                }
336:                super .eSet(featureID, newValue);
337:            }
338:
339:            /**
340:             * <!-- begin-user-doc -->
341:             * <!-- end-user-doc -->
342:             * @generated
343:             */
344:            public void eUnset(int featureID) {
345:                switch (featureID) {
346:                case componentflowPackage.COMPONENT_FLOW_EDITOR_ELEMENT__INTERFACE_NAME:
347:                    setInterfaceName(INTERFACE_NAME_EDEFAULT);
348:                    return;
349:                case componentflowPackage.COMPONENT_FLOW_EDITOR_ELEMENT__SERVICE_NAME:
350:                    setServiceName(SERVICE_NAME_EDEFAULT);
351:                    return;
352:                case componentflowPackage.COMPONENT_FLOW_EDITOR_ELEMENT__USE_CCSL:
353:                    setUseCCSL(USE_CCSL_EDEFAULT);
354:                    return;
355:                case componentflowPackage.COMPONENT_FLOW_EDITOR_ELEMENT__PROVIDER_CCSL:
356:                    setProviderCCSL((ProviderCCSL) null);
357:                    return;
358:                }
359:                super .eUnset(featureID);
360:            }
361:
362:            /**
363:             * <!-- begin-user-doc -->
364:             * <!-- end-user-doc -->
365:             * @generated
366:             */
367:            public boolean eIsSet(int featureID) {
368:                switch (featureID) {
369:                case componentflowPackage.COMPONENT_FLOW_EDITOR_ELEMENT__INTERFACE_NAME:
370:                    return INTERFACE_NAME_EDEFAULT == null ? interfaceName != null
371:                            : !INTERFACE_NAME_EDEFAULT.equals(interfaceName);
372:                case componentflowPackage.COMPONENT_FLOW_EDITOR_ELEMENT__SERVICE_NAME:
373:                    return SERVICE_NAME_EDEFAULT == null ? serviceName != null
374:                            : !SERVICE_NAME_EDEFAULT.equals(serviceName);
375:                case componentflowPackage.COMPONENT_FLOW_EDITOR_ELEMENT__USE_CCSL:
376:                    return USE_CCSL_EDEFAULT == null ? useCCSL != null
377:                            : !USE_CCSL_EDEFAULT.equals(useCCSL);
378:                case componentflowPackage.COMPONENT_FLOW_EDITOR_ELEMENT__PROVIDER_CCSL:
379:                    return providerCCSL != null;
380:                }
381:                return super .eIsSet(featureID);
382:            }
383:
384:            /**
385:             * <!-- begin-user-doc -->
386:             * <!-- end-user-doc -->
387:             * @generated
388:             */
389:            public String toString() {
390:                if (eIsProxy())
391:                    return super .toString();
392:
393:                StringBuffer result = new StringBuffer(super .toString());
394:                result.append(" (interfaceName: ");
395:                result.append(interfaceName);
396:                result.append(", serviceName: ");
397:                result.append(serviceName);
398:                result.append(", useCCSL: ");
399:                result.append(useCCSL);
400:                result.append(')');
401:                return result.toString();
402:            }
403:
404:        } //ComponentFlowEditorElementImpl
w__ww_.__j_a__v__a__2___s___.___c__o___m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.