Source Code Cross Referenced for ConnectionSettingImpl.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: ConnectionSettingImpl.java 6653 2007-04-11 03:53:08Z shou $
006:         */package com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl;
007:
008:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.ConnectionSetting;
009:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.SSL;
010:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.componentflowPackage;
011:
012:        import org.eclipse.emf.common.notify.Notification;
013:        import org.eclipse.emf.common.notify.NotificationChain;
014:
015:        import org.eclipse.emf.ecore.EClass;
016:        import org.eclipse.emf.ecore.InternalEObject;
017:
018:        import org.eclipse.emf.ecore.impl.ENotificationImpl;
019:        import org.eclipse.emf.ecore.impl.EObjectImpl;
020:
021:        /**
022:         * <!-- begin-user-doc -->
023:         * An implementation of the model object '<em><b>Connection Setting</b></em>'.
024:         * <!-- end-user-doc -->
025:         * <p>
026:         * The following features are implemented:
027:         * <ul>
028:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.ConnectionSettingImpl#getLocalBindHost <em>Local Bind Host</em>}</li>
029:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.ConnectionSettingImpl#getSSL <em>SSL</em>}</li>
030:         *   <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.ConnectionSettingImpl#isUseSsl <em>Use Ssl</em>}</li>
031:         * </ul>
032:         * </p>
033:         *
034:         * @generated
035:         */
036:        public class ConnectionSettingImpl extends EObjectImpl implements 
037:                ConnectionSetting {
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 default value of the '{@link #getLocalBindHost() <em>Local Bind Host</em>}' attribute.
047:             * <!-- begin-user-doc -->
048:             * <!-- end-user-doc -->
049:             * @see #getLocalBindHost()
050:             * @generated
051:             * @ordered
052:             */
053:            protected static final String LOCAL_BIND_HOST_EDEFAULT = null;
054:
055:            /**
056:             * The cached value of the '{@link #getLocalBindHost() <em>Local Bind Host</em>}' attribute.
057:             * <!-- begin-user-doc -->
058:             * <!-- end-user-doc -->
059:             * @see #getLocalBindHost()
060:             * @generated
061:             * @ordered
062:             */
063:            protected String localBindHost = LOCAL_BIND_HOST_EDEFAULT;
064:
065:            /**
066:             * The cached value of the '{@link #getSSL() <em>SSL</em>}' containment reference.
067:             * <!-- begin-user-doc -->
068:             * <!-- end-user-doc -->
069:             * @see #getSSL()
070:             * @generated
071:             * @ordered
072:             */
073:            protected SSL ssl = null;
074:
075:            /**
076:             * The default value of the '{@link #isUseSsl() <em>Use Ssl</em>}' attribute.
077:             * <!-- begin-user-doc -->
078:             * <!-- end-user-doc -->
079:             * @see #isUseSsl()
080:             * @generated
081:             * @ordered
082:             */
083:            protected static final boolean USE_SSL_EDEFAULT = false;
084:
085:            /**
086:             * The cached value of the '{@link #isUseSsl() <em>Use Ssl</em>}' attribute.
087:             * <!-- begin-user-doc -->
088:             * <!-- end-user-doc -->
089:             * @see #isUseSsl()
090:             * @generated
091:             * @ordered
092:             */
093:            protected boolean useSsl = USE_SSL_EDEFAULT;
094:
095:            /**
096:             * <!-- begin-user-doc -->
097:             * <!-- end-user-doc -->
098:             * @generated
099:             */
100:            protected ConnectionSettingImpl() {
101:                super ();
102:            }
103:
104:            /**
105:             * <!-- begin-user-doc -->
106:             * <!-- end-user-doc -->
107:             * @generated
108:             */
109:            protected EClass eStaticClass() {
110:                return componentflowPackage.Literals.CONNECTION_SETTING;
111:            }
112:
113:            /**
114:             * <!-- begin-user-doc -->
115:             * <!-- end-user-doc -->
116:             * @generated
117:             */
118:            public String getLocalBindHost() {
119:                return localBindHost;
120:            }
121:
122:            /**
123:             * <!-- begin-user-doc -->
124:             * <!-- end-user-doc -->
125:             * @generated
126:             */
127:            public void setLocalBindHost(String newLocalBindHost) {
128:                String oldLocalBindHost = localBindHost;
129:                localBindHost = newLocalBindHost;
130:                if (eNotificationRequired())
131:                    eNotify(new ENotificationImpl(
132:                            this ,
133:                            Notification.SET,
134:                            componentflowPackage.CONNECTION_SETTING__LOCAL_BIND_HOST,
135:                            oldLocalBindHost, localBindHost));
136:            }
137:
138:            /**
139:             * <!-- begin-user-doc -->
140:             * <!-- end-user-doc -->
141:             * @generated
142:             */
143:            public SSL getSSL() {
144:                return ssl;
145:            }
146:
147:            /**
148:             * <!-- begin-user-doc -->
149:             * <!-- end-user-doc -->
150:             * @generated
151:             */
152:            public NotificationChain basicSetSSL(SSL newSSL,
153:                    NotificationChain msgs) {
154:                SSL oldSSL = ssl;
155:                ssl = newSSL;
156:                if (eNotificationRequired()) {
157:                    ENotificationImpl notification = new ENotificationImpl(
158:                            this , Notification.SET,
159:                            componentflowPackage.CONNECTION_SETTING__SSL,
160:                            oldSSL, newSSL);
161:                    if (msgs == null)
162:                        msgs = notification;
163:                    else
164:                        msgs.add(notification);
165:                }
166:                return msgs;
167:            }
168:
169:            /**
170:             * <!-- begin-user-doc -->
171:             * <!-- end-user-doc -->
172:             * @generated
173:             */
174:            public void setSSL(SSL newSSL) {
175:                if (newSSL != ssl) {
176:                    NotificationChain msgs = null;
177:                    if (ssl != null)
178:                        msgs = ((InternalEObject) ssl)
179:                                .eInverseRemove(
180:                                        this ,
181:                                        EOPPOSITE_FEATURE_BASE
182:                                                - componentflowPackage.CONNECTION_SETTING__SSL,
183:                                        null, msgs);
184:                    if (newSSL != null)
185:                        msgs = ((InternalEObject) newSSL)
186:                                .eInverseAdd(
187:                                        this ,
188:                                        EOPPOSITE_FEATURE_BASE
189:                                                - componentflowPackage.CONNECTION_SETTING__SSL,
190:                                        null, msgs);
191:                    msgs = basicSetSSL(newSSL, msgs);
192:                    if (msgs != null)
193:                        msgs.dispatch();
194:                } else if (eNotificationRequired())
195:                    eNotify(new ENotificationImpl(this , Notification.SET,
196:                            componentflowPackage.CONNECTION_SETTING__SSL,
197:                            newSSL, newSSL));
198:            }
199:
200:            /**
201:             * <!-- begin-user-doc -->
202:             * <!-- end-user-doc -->
203:             * @generated
204:             */
205:            public boolean isUseSsl() {
206:                return useSsl;
207:            }
208:
209:            /**
210:             * <!-- begin-user-doc -->
211:             * <!-- end-user-doc -->
212:             * @generated
213:             */
214:            public void setUseSsl(boolean newUseSsl) {
215:                boolean oldUseSsl = useSsl;
216:                useSsl = newUseSsl;
217:                if (eNotificationRequired())
218:                    eNotify(new ENotificationImpl(this , Notification.SET,
219:                            componentflowPackage.CONNECTION_SETTING__USE_SSL,
220:                            oldUseSsl, useSsl));
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.CONNECTION_SETTING__SSL:
232:                    return basicSetSSL(null, msgs);
233:                }
234:                return super .eInverseRemove(otherEnd, featureID, msgs);
235:            }
236:
237:            /**
238:             * <!-- begin-user-doc -->
239:             * <!-- end-user-doc -->
240:             * @generated
241:             */
242:            public Object eGet(int featureID, boolean resolve, boolean coreType) {
243:                switch (featureID) {
244:                case componentflowPackage.CONNECTION_SETTING__LOCAL_BIND_HOST:
245:                    return getLocalBindHost();
246:                case componentflowPackage.CONNECTION_SETTING__SSL:
247:                    return getSSL();
248:                case componentflowPackage.CONNECTION_SETTING__USE_SSL:
249:                    return isUseSsl() ? Boolean.TRUE : Boolean.FALSE;
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.CONNECTION_SETTING__LOCAL_BIND_HOST:
262:                    setLocalBindHost((String) newValue);
263:                    return;
264:                case componentflowPackage.CONNECTION_SETTING__SSL:
265:                    setSSL((SSL) newValue);
266:                    return;
267:                case componentflowPackage.CONNECTION_SETTING__USE_SSL:
268:                    setUseSsl(((Boolean) newValue).booleanValue());
269:                    return;
270:                }
271:                super .eSet(featureID, newValue);
272:            }
273:
274:            /**
275:             * <!-- begin-user-doc -->
276:             * <!-- end-user-doc -->
277:             * @generated
278:             */
279:            public void eUnset(int featureID) {
280:                switch (featureID) {
281:                case componentflowPackage.CONNECTION_SETTING__LOCAL_BIND_HOST:
282:                    setLocalBindHost(LOCAL_BIND_HOST_EDEFAULT);
283:                    return;
284:                case componentflowPackage.CONNECTION_SETTING__SSL:
285:                    setSSL((SSL) null);
286:                    return;
287:                case componentflowPackage.CONNECTION_SETTING__USE_SSL:
288:                    setUseSsl(USE_SSL_EDEFAULT);
289:                    return;
290:                }
291:                super .eUnset(featureID);
292:            }
293:
294:            /**
295:             * <!-- begin-user-doc -->
296:             * <!-- end-user-doc -->
297:             * @generated
298:             */
299:            public boolean eIsSet(int featureID) {
300:                switch (featureID) {
301:                case componentflowPackage.CONNECTION_SETTING__LOCAL_BIND_HOST:
302:                    return LOCAL_BIND_HOST_EDEFAULT == null ? localBindHost != null
303:                            : !LOCAL_BIND_HOST_EDEFAULT.equals(localBindHost);
304:                case componentflowPackage.CONNECTION_SETTING__SSL:
305:                    return ssl != null;
306:                case componentflowPackage.CONNECTION_SETTING__USE_SSL:
307:                    return useSsl != USE_SSL_EDEFAULT;
308:                }
309:                return super .eIsSet(featureID);
310:            }
311:
312:            /**
313:             * <!-- begin-user-doc -->
314:             * <!-- end-user-doc -->
315:             * @generated
316:             */
317:            public String toString() {
318:                if (eIsProxy())
319:                    return super .toString();
320:
321:                StringBuffer result = new StringBuffer(super .toString());
322:                result.append(" (localBindHost: ");
323:                result.append(localBindHost);
324:                result.append(", useSsl: ");
325:                result.append(useSsl);
326:                result.append(')');
327:                return result.toString();
328:            }
329:
330:        } //ConnectionSettingImpl
w_w___w.___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.