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.DestinationStyleType;
009: import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.JMSConfig;
010: import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.ReadStyleType;
011: import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.componentflowPackage;
012:
013: import org.eclipse.emf.common.notify.Notification;
014:
015: import org.eclipse.emf.ecore.EClass;
016:
017: import org.eclipse.emf.ecore.impl.ENotificationImpl;
018: import org.eclipse.emf.ecore.impl.EObjectImpl;
019:
020: /**
021: * <!-- begin-user-doc -->
022: * An implementation of the model object '<em><b>JMS Config</b></em>'.
023: * <!-- end-user-doc -->
024: * <p>
025: * The following features are implemented:
026: * <ul>
027: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSConfigImpl#getJndiInitialContextFactory <em>Jndi Initial Context Factory</em>}</li>
028: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSConfigImpl#getJndiProviderUrl <em>Jndi Provider Url</em>}</li>
029: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSConfigImpl#getDestinationStyle <em>Destination Style</em>}</li>
030: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSConfigImpl#getTargetDestinationName <em>Target Destination Name</em>}</li>
031: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSConfigImpl#getReadStyle <em>Read Style</em>}</li>
032: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSConfigImpl#getRecordsPerMessage <em>Records Per Message</em>}</li>
033: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSConfigImpl#getReplyDestinationName <em>Reply Destination Name</em>}</li>
034: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSConfigImpl#getWriteStyle <em>Write Style</em>}</li>
035: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSConfigImpl#getJndiConnectionFactoryName <em>Jndi Connection Factory Name</em>}</li>
036: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSConfigImpl#getReplyTimeout <em>Reply Timeout</em>}</li>
037: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSConfigImpl#getServiceName <em>Service Name</em>}</li>
038: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSConfigImpl#isEnableQuery <em>Enable Query</em>}</li>
039: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSConfigImpl#getQueryExpression <em>Query Expression</em>}</li>
040: * </ul>
041: * </p>
042: *
043: * @generated
044: */
045: public abstract class JMSConfigImpl extends EObjectImpl implements
046: JMSConfig {
047: /**
048: * <!-- begin-user-doc -->
049: * <!-- end-user-doc -->
050: * @generated
051: */
052: public static final String copyright = "Copyright, Bostech Corp.";
053:
054: /**
055: * The default value of the '{@link #getJndiInitialContextFactory() <em>Jndi Initial Context Factory</em>}' attribute.
056: * <!-- begin-user-doc -->
057: * <!-- end-user-doc -->
058: * @see #getJndiInitialContextFactory()
059: * @generated
060: * @ordered
061: */
062: protected static final String JNDI_INITIAL_CONTEXT_FACTORY_EDEFAULT = "com.sun.jndi.fscontext.RefFSContextFactory";
063:
064: /**
065: * The cached value of the '{@link #getJndiInitialContextFactory() <em>Jndi Initial Context Factory</em>}' attribute.
066: * <!-- begin-user-doc -->
067: * <!-- end-user-doc -->
068: * @see #getJndiInitialContextFactory()
069: * @generated
070: * @ordered
071: */
072: protected String jndiInitialContextFactory = JNDI_INITIAL_CONTEXT_FACTORY_EDEFAULT;
073:
074: /**
075: * The default value of the '{@link #getJndiProviderUrl() <em>Jndi Provider Url</em>}' attribute.
076: * <!-- begin-user-doc -->
077: * <!-- end-user-doc -->
078: * @see #getJndiProviderUrl()
079: * @generated
080: * @ordered
081: */
082: protected static final String JNDI_PROVIDER_URL_EDEFAULT = "file:/C:/CBESB/jndiDir";
083:
084: /**
085: * The cached value of the '{@link #getJndiProviderUrl() <em>Jndi Provider Url</em>}' attribute.
086: * <!-- begin-user-doc -->
087: * <!-- end-user-doc -->
088: * @see #getJndiProviderUrl()
089: * @generated
090: * @ordered
091: */
092: protected String jndiProviderUrl = JNDI_PROVIDER_URL_EDEFAULT;
093:
094: /**
095: * The default value of the '{@link #getDestinationStyle() <em>Destination Style</em>}' attribute.
096: * <!-- begin-user-doc -->
097: * <!-- end-user-doc -->
098: * @see #getDestinationStyle()
099: * @generated
100: * @ordered
101: */
102: protected static final DestinationStyleType DESTINATION_STYLE_EDEFAULT = DestinationStyleType.QUEUE_LITERAL;
103:
104: /**
105: * The cached value of the '{@link #getDestinationStyle() <em>Destination Style</em>}' attribute.
106: * <!-- begin-user-doc -->
107: * <!-- end-user-doc -->
108: * @see #getDestinationStyle()
109: * @generated
110: * @ordered
111: */
112: protected DestinationStyleType destinationStyle = DESTINATION_STYLE_EDEFAULT;
113:
114: /**
115: * The default value of the '{@link #getTargetDestinationName() <em>Target Destination Name</em>}' attribute.
116: * <!-- begin-user-doc -->
117: * <!-- end-user-doc -->
118: * @see #getTargetDestinationName()
119: * @generated
120: * @ordered
121: */
122: protected static final String TARGET_DESTINATION_NAME_EDEFAULT = null;
123:
124: /**
125: * The cached value of the '{@link #getTargetDestinationName() <em>Target Destination Name</em>}' attribute.
126: * <!-- begin-user-doc -->
127: * <!-- end-user-doc -->
128: * @see #getTargetDestinationName()
129: * @generated
130: * @ordered
131: */
132: protected String targetDestinationName = TARGET_DESTINATION_NAME_EDEFAULT;
133:
134: /**
135: * The default value of the '{@link #getReadStyle() <em>Read Style</em>}' attribute.
136: * <!-- begin-user-doc -->
137: * <!-- end-user-doc -->
138: * @see #getReadStyle()
139: * @generated
140: * @ordered
141: */
142: protected static final ReadStyleType READ_STYLE_EDEFAULT = ReadStyleType.RAW_LITERAL;
143:
144: /**
145: * The cached value of the '{@link #getReadStyle() <em>Read Style</em>}' attribute.
146: * <!-- begin-user-doc -->
147: * <!-- end-user-doc -->
148: * @see #getReadStyle()
149: * @generated
150: * @ordered
151: */
152: protected ReadStyleType readStyle = READ_STYLE_EDEFAULT;
153:
154: /**
155: * The default value of the '{@link #getRecordsPerMessage() <em>Records Per Message</em>}' attribute.
156: * <!-- begin-user-doc -->
157: * <!-- end-user-doc -->
158: * @see #getRecordsPerMessage()
159: * @generated
160: * @ordered
161: */
162: protected static final String RECORDS_PER_MESSAGE_EDEFAULT = "0";
163:
164: /**
165: * The cached value of the '{@link #getRecordsPerMessage() <em>Records Per Message</em>}' attribute.
166: * <!-- begin-user-doc -->
167: * <!-- end-user-doc -->
168: * @see #getRecordsPerMessage()
169: * @generated
170: * @ordered
171: */
172: protected String recordsPerMessage = RECORDS_PER_MESSAGE_EDEFAULT;
173:
174: /**
175: * The default value of the '{@link #getReplyDestinationName() <em>Reply Destination Name</em>}' attribute.
176: * <!-- begin-user-doc -->
177: * <!-- end-user-doc -->
178: * @see #getReplyDestinationName()
179: * @generated
180: * @ordered
181: */
182: protected static final String REPLY_DESTINATION_NAME_EDEFAULT = null;
183:
184: /**
185: * The cached value of the '{@link #getReplyDestinationName() <em>Reply Destination Name</em>}' attribute.
186: * <!-- begin-user-doc -->
187: * <!-- end-user-doc -->
188: * @see #getReplyDestinationName()
189: * @generated
190: * @ordered
191: */
192: protected String replyDestinationName = REPLY_DESTINATION_NAME_EDEFAULT;
193:
194: /**
195: * The default value of the '{@link #getWriteStyle() <em>Write Style</em>}' attribute.
196: * <!-- begin-user-doc -->
197: * <!-- end-user-doc -->
198: * @see #getWriteStyle()
199: * @generated
200: * @ordered
201: */
202: protected static final ReadStyleType WRITE_STYLE_EDEFAULT = ReadStyleType.RAW_LITERAL;
203:
204: /**
205: * The cached value of the '{@link #getWriteStyle() <em>Write Style</em>}' attribute.
206: * <!-- begin-user-doc -->
207: * <!-- end-user-doc -->
208: * @see #getWriteStyle()
209: * @generated
210: * @ordered
211: */
212: protected ReadStyleType writeStyle = WRITE_STYLE_EDEFAULT;
213:
214: /**
215: * The default value of the '{@link #getJndiConnectionFactoryName() <em>Jndi Connection Factory Name</em>}' attribute.
216: * <!-- begin-user-doc -->
217: * <!-- end-user-doc -->
218: * @see #getJndiConnectionFactoryName()
219: * @generated
220: * @ordered
221: */
222: protected static final String JNDI_CONNECTION_FACTORY_NAME_EDEFAULT = null;
223:
224: /**
225: * The cached value of the '{@link #getJndiConnectionFactoryName() <em>Jndi Connection Factory Name</em>}' attribute.
226: * <!-- begin-user-doc -->
227: * <!-- end-user-doc -->
228: * @see #getJndiConnectionFactoryName()
229: * @generated
230: * @ordered
231: */
232: protected String jndiConnectionFactoryName = JNDI_CONNECTION_FACTORY_NAME_EDEFAULT;
233:
234: /**
235: * The default value of the '{@link #getReplyTimeout() <em>Reply Timeout</em>}' attribute.
236: * <!-- begin-user-doc -->
237: * <!-- end-user-doc -->
238: * @see #getReplyTimeout()
239: * @generated
240: * @ordered
241: */
242: protected static final String REPLY_TIMEOUT_EDEFAULT = "0";
243:
244: /**
245: * The cached value of the '{@link #getReplyTimeout() <em>Reply Timeout</em>}' attribute.
246: * <!-- begin-user-doc -->
247: * <!-- end-user-doc -->
248: * @see #getReplyTimeout()
249: * @generated
250: * @ordered
251: */
252: protected String replyTimeout = REPLY_TIMEOUT_EDEFAULT;
253:
254: /**
255: * The default value of the '{@link #getServiceName() <em>Service Name</em>}' attribute.
256: * <!-- begin-user-doc -->
257: * <!-- end-user-doc -->
258: * @see #getServiceName()
259: * @generated
260: * @ordered
261: */
262: protected static final String SERVICE_NAME_EDEFAULT = null;
263:
264: /**
265: * The cached value of the '{@link #getServiceName() <em>Service Name</em>}' attribute.
266: * <!-- begin-user-doc -->
267: * <!-- end-user-doc -->
268: * @see #getServiceName()
269: * @generated
270: * @ordered
271: */
272: protected String serviceName = SERVICE_NAME_EDEFAULT;
273:
274: /**
275: * The default value of the '{@link #isEnableQuery() <em>Enable Query</em>}' attribute.
276: * <!-- begin-user-doc -->
277: * <!-- end-user-doc -->
278: * @see #isEnableQuery()
279: * @generated
280: * @ordered
281: */
282: protected static final boolean ENABLE_QUERY_EDEFAULT = false;
283:
284: /**
285: * The cached value of the '{@link #isEnableQuery() <em>Enable Query</em>}' attribute.
286: * <!-- begin-user-doc -->
287: * <!-- end-user-doc -->
288: * @see #isEnableQuery()
289: * @generated
290: * @ordered
291: */
292: protected boolean enableQuery = ENABLE_QUERY_EDEFAULT;
293:
294: /**
295: * The default value of the '{@link #getQueryExpression() <em>Query Expression</em>}' attribute.
296: * <!-- begin-user-doc -->
297: * <!-- end-user-doc -->
298: * @see #getQueryExpression()
299: * @generated
300: * @ordered
301: */
302: protected static final String QUERY_EXPRESSION_EDEFAULT = "";
303:
304: /**
305: * The cached value of the '{@link #getQueryExpression() <em>Query Expression</em>}' attribute.
306: * <!-- begin-user-doc -->
307: * <!-- end-user-doc -->
308: * @see #getQueryExpression()
309: * @generated
310: * @ordered
311: */
312: protected String queryExpression = QUERY_EXPRESSION_EDEFAULT;
313:
314: /**
315: * <!-- begin-user-doc -->
316: * <!-- end-user-doc -->
317: * @generated
318: */
319: protected JMSConfigImpl() {
320: super ();
321: }
322:
323: /**
324: * <!-- begin-user-doc -->
325: * <!-- end-user-doc -->
326: * @generated
327: */
328: protected EClass eStaticClass() {
329: return componentflowPackage.Literals.JMS_CONFIG;
330: }
331:
332: /**
333: * <!-- begin-user-doc -->
334: * <!-- end-user-doc -->
335: * @generated
336: */
337: public String getJndiInitialContextFactory() {
338: return jndiInitialContextFactory;
339: }
340:
341: /**
342: * <!-- begin-user-doc -->
343: * <!-- end-user-doc -->
344: * @generated
345: */
346: public void setJndiInitialContextFactory(
347: String newJndiInitialContextFactory) {
348: String oldJndiInitialContextFactory = jndiInitialContextFactory;
349: jndiInitialContextFactory = newJndiInitialContextFactory;
350: if (eNotificationRequired())
351: eNotify(new ENotificationImpl(
352: this ,
353: Notification.SET,
354: componentflowPackage.JMS_CONFIG__JNDI_INITIAL_CONTEXT_FACTORY,
355: oldJndiInitialContextFactory,
356: jndiInitialContextFactory));
357: }
358:
359: /**
360: * <!-- begin-user-doc -->
361: * <!-- end-user-doc -->
362: * @generated
363: */
364: public String getJndiProviderUrl() {
365: return jndiProviderUrl;
366: }
367:
368: /**
369: * <!-- begin-user-doc -->
370: * <!-- end-user-doc -->
371: * @generated
372: */
373: public void setJndiProviderUrl(String newJndiProviderUrl) {
374: String oldJndiProviderUrl = jndiProviderUrl;
375: jndiProviderUrl = newJndiProviderUrl;
376: if (eNotificationRequired())
377: eNotify(new ENotificationImpl(this , Notification.SET,
378: componentflowPackage.JMS_CONFIG__JNDI_PROVIDER_URL,
379: oldJndiProviderUrl, jndiProviderUrl));
380: }
381:
382: /**
383: * <!-- begin-user-doc -->
384: * <!-- end-user-doc -->
385: * @generated
386: */
387: public DestinationStyleType getDestinationStyle() {
388: return destinationStyle;
389: }
390:
391: /**
392: * <!-- begin-user-doc -->
393: * <!-- end-user-doc -->
394: * @generated
395: */
396: public void setDestinationStyle(
397: DestinationStyleType newDestinationStyle) {
398: DestinationStyleType oldDestinationStyle = destinationStyle;
399: destinationStyle = newDestinationStyle == null ? DESTINATION_STYLE_EDEFAULT
400: : newDestinationStyle;
401: if (eNotificationRequired())
402: eNotify(new ENotificationImpl(this , Notification.SET,
403: componentflowPackage.JMS_CONFIG__DESTINATION_STYLE,
404: oldDestinationStyle, destinationStyle));
405: }
406:
407: /**
408: * <!-- begin-user-doc -->
409: * <!-- end-user-doc -->
410: * @generated
411: */
412: public String getTargetDestinationName() {
413: return targetDestinationName;
414: }
415:
416: /**
417: * <!-- begin-user-doc -->
418: * <!-- end-user-doc -->
419: * @generated
420: */
421: public void setTargetDestinationName(String newTargetDestinationName) {
422: String oldTargetDestinationName = targetDestinationName;
423: targetDestinationName = newTargetDestinationName;
424: if (eNotificationRequired())
425: eNotify(new ENotificationImpl(
426: this ,
427: Notification.SET,
428: componentflowPackage.JMS_CONFIG__TARGET_DESTINATION_NAME,
429: oldTargetDestinationName, targetDestinationName));
430: }
431:
432: /**
433: * <!-- begin-user-doc -->
434: * <!-- end-user-doc -->
435: * @generated
436: */
437: public ReadStyleType getReadStyle() {
438: return readStyle;
439: }
440:
441: /**
442: * <!-- begin-user-doc -->
443: * <!-- end-user-doc -->
444: * @generated
445: */
446: public void setReadStyle(ReadStyleType newReadStyle) {
447: ReadStyleType oldReadStyle = readStyle;
448: readStyle = newReadStyle == null ? READ_STYLE_EDEFAULT
449: : newReadStyle;
450: if (eNotificationRequired())
451: eNotify(new ENotificationImpl(this , Notification.SET,
452: componentflowPackage.JMS_CONFIG__READ_STYLE,
453: oldReadStyle, readStyle));
454: }
455:
456: /**
457: * <!-- begin-user-doc -->
458: * <!-- end-user-doc -->
459: * @generated
460: */
461: public String getRecordsPerMessage() {
462: return recordsPerMessage;
463: }
464:
465: /**
466: * <!-- begin-user-doc -->
467: * <!-- end-user-doc -->
468: * @generated
469: */
470: public void setRecordsPerMessage(String newRecordsPerMessage) {
471: String oldRecordsPerMessage = recordsPerMessage;
472: recordsPerMessage = newRecordsPerMessage;
473: if (eNotificationRequired())
474: eNotify(new ENotificationImpl(
475: this ,
476: Notification.SET,
477: componentflowPackage.JMS_CONFIG__RECORDS_PER_MESSAGE,
478: oldRecordsPerMessage, recordsPerMessage));
479: }
480:
481: /**
482: * <!-- begin-user-doc -->
483: * <!-- end-user-doc -->
484: * @generated
485: */
486: public String getReplyDestinationName() {
487: return replyDestinationName;
488: }
489:
490: /**
491: * <!-- begin-user-doc -->
492: * <!-- end-user-doc -->
493: * @generated
494: */
495: public void setReplyDestinationName(String newReplyDestinationName) {
496: String oldReplyDestinationName = replyDestinationName;
497: replyDestinationName = newReplyDestinationName;
498: if (eNotificationRequired())
499: eNotify(new ENotificationImpl(
500: this ,
501: Notification.SET,
502: componentflowPackage.JMS_CONFIG__REPLY_DESTINATION_NAME,
503: oldReplyDestinationName, replyDestinationName));
504: }
505:
506: /**
507: * <!-- begin-user-doc -->
508: * <!-- end-user-doc -->
509: * @generated
510: */
511: public ReadStyleType getWriteStyle() {
512: return writeStyle;
513: }
514:
515: /**
516: * <!-- begin-user-doc -->
517: * <!-- end-user-doc -->
518: * @generated
519: */
520: public void setWriteStyle(ReadStyleType newWriteStyle) {
521: ReadStyleType oldWriteStyle = writeStyle;
522: writeStyle = newWriteStyle == null ? WRITE_STYLE_EDEFAULT
523: : newWriteStyle;
524: if (eNotificationRequired())
525: eNotify(new ENotificationImpl(this , Notification.SET,
526: componentflowPackage.JMS_CONFIG__WRITE_STYLE,
527: oldWriteStyle, writeStyle));
528: }
529:
530: /**
531: * <!-- begin-user-doc -->
532: * <!-- end-user-doc -->
533: * @generated
534: */
535: public String getJndiConnectionFactoryName() {
536: return jndiConnectionFactoryName;
537: }
538:
539: /**
540: * <!-- begin-user-doc -->
541: * <!-- end-user-doc -->
542: * @generated
543: */
544: public void setJndiConnectionFactoryName(
545: String newJndiConnectionFactoryName) {
546: String oldJndiConnectionFactoryName = jndiConnectionFactoryName;
547: jndiConnectionFactoryName = newJndiConnectionFactoryName;
548: if (eNotificationRequired())
549: eNotify(new ENotificationImpl(
550: this ,
551: Notification.SET,
552: componentflowPackage.JMS_CONFIG__JNDI_CONNECTION_FACTORY_NAME,
553: oldJndiConnectionFactoryName,
554: jndiConnectionFactoryName));
555: }
556:
557: /**
558: * <!-- begin-user-doc -->
559: * <!-- end-user-doc -->
560: * @generated
561: */
562: public String getReplyTimeout() {
563: return replyTimeout;
564: }
565:
566: /**
567: * <!-- begin-user-doc -->
568: * <!-- end-user-doc -->
569: * @generated
570: */
571: public void setReplyTimeout(String newReplyTimeout) {
572: String oldReplyTimeout = replyTimeout;
573: replyTimeout = newReplyTimeout;
574: if (eNotificationRequired())
575: eNotify(new ENotificationImpl(this , Notification.SET,
576: componentflowPackage.JMS_CONFIG__REPLY_TIMEOUT,
577: oldReplyTimeout, replyTimeout));
578: }
579:
580: /**
581: * <!-- begin-user-doc -->
582: * <!-- end-user-doc -->
583: * @generated
584: */
585: public String getServiceName() {
586: return serviceName;
587: }
588:
589: /**
590: * <!-- begin-user-doc -->
591: * <!-- end-user-doc -->
592: * @generated
593: */
594: public void setServiceName(String newServiceName) {
595: String oldServiceName = serviceName;
596: serviceName = newServiceName;
597: if (eNotificationRequired())
598: eNotify(new ENotificationImpl(this , Notification.SET,
599: componentflowPackage.JMS_CONFIG__SERVICE_NAME,
600: oldServiceName, serviceName));
601: }
602:
603: /**
604: * <!-- begin-user-doc -->
605: * <!-- end-user-doc -->
606: * @generated
607: */
608: public boolean isEnableQuery() {
609: return enableQuery;
610: }
611:
612: /**
613: * <!-- begin-user-doc -->
614: * <!-- end-user-doc -->
615: * @generated
616: */
617: public void setEnableQuery(boolean newEnableQuery) {
618: boolean oldEnableQuery = enableQuery;
619: enableQuery = newEnableQuery;
620: if (eNotificationRequired())
621: eNotify(new ENotificationImpl(this , Notification.SET,
622: componentflowPackage.JMS_CONFIG__ENABLE_QUERY,
623: oldEnableQuery, enableQuery));
624: }
625:
626: /**
627: * <!-- begin-user-doc -->
628: * <!-- end-user-doc -->
629: * @generated
630: */
631: public String getQueryExpression() {
632: return queryExpression;
633: }
634:
635: /**
636: * <!-- begin-user-doc -->
637: * <!-- end-user-doc -->
638: * @generated
639: */
640: public void setQueryExpression(String newQueryExpression) {
641: String oldQueryExpression = queryExpression;
642: queryExpression = newQueryExpression;
643: if (eNotificationRequired())
644: eNotify(new ENotificationImpl(this , Notification.SET,
645: componentflowPackage.JMS_CONFIG__QUERY_EXPRESSION,
646: oldQueryExpression, queryExpression));
647: }
648:
649: /**
650: * <!-- begin-user-doc -->
651: * <!-- end-user-doc -->
652: * @generated
653: */
654: public Object eGet(int featureID, boolean resolve, boolean coreType) {
655: switch (featureID) {
656: case componentflowPackage.JMS_CONFIG__JNDI_INITIAL_CONTEXT_FACTORY:
657: return getJndiInitialContextFactory();
658: case componentflowPackage.JMS_CONFIG__JNDI_PROVIDER_URL:
659: return getJndiProviderUrl();
660: case componentflowPackage.JMS_CONFIG__DESTINATION_STYLE:
661: return getDestinationStyle();
662: case componentflowPackage.JMS_CONFIG__TARGET_DESTINATION_NAME:
663: return getTargetDestinationName();
664: case componentflowPackage.JMS_CONFIG__READ_STYLE:
665: return getReadStyle();
666: case componentflowPackage.JMS_CONFIG__RECORDS_PER_MESSAGE:
667: return getRecordsPerMessage();
668: case componentflowPackage.JMS_CONFIG__REPLY_DESTINATION_NAME:
669: return getReplyDestinationName();
670: case componentflowPackage.JMS_CONFIG__WRITE_STYLE:
671: return getWriteStyle();
672: case componentflowPackage.JMS_CONFIG__JNDI_CONNECTION_FACTORY_NAME:
673: return getJndiConnectionFactoryName();
674: case componentflowPackage.JMS_CONFIG__REPLY_TIMEOUT:
675: return getReplyTimeout();
676: case componentflowPackage.JMS_CONFIG__SERVICE_NAME:
677: return getServiceName();
678: case componentflowPackage.JMS_CONFIG__ENABLE_QUERY:
679: return isEnableQuery() ? Boolean.TRUE : Boolean.FALSE;
680: case componentflowPackage.JMS_CONFIG__QUERY_EXPRESSION:
681: return getQueryExpression();
682: }
683: return super .eGet(featureID, resolve, coreType);
684: }
685:
686: /**
687: * <!-- begin-user-doc -->
688: * <!-- end-user-doc -->
689: * @generated
690: */
691: public void eSet(int featureID, Object newValue) {
692: switch (featureID) {
693: case componentflowPackage.JMS_CONFIG__JNDI_INITIAL_CONTEXT_FACTORY:
694: setJndiInitialContextFactory((String) newValue);
695: return;
696: case componentflowPackage.JMS_CONFIG__JNDI_PROVIDER_URL:
697: setJndiProviderUrl((String) newValue);
698: return;
699: case componentflowPackage.JMS_CONFIG__DESTINATION_STYLE:
700: setDestinationStyle((DestinationStyleType) newValue);
701: return;
702: case componentflowPackage.JMS_CONFIG__TARGET_DESTINATION_NAME:
703: setTargetDestinationName((String) newValue);
704: return;
705: case componentflowPackage.JMS_CONFIG__READ_STYLE:
706: setReadStyle((ReadStyleType) newValue);
707: return;
708: case componentflowPackage.JMS_CONFIG__RECORDS_PER_MESSAGE:
709: setRecordsPerMessage((String) newValue);
710: return;
711: case componentflowPackage.JMS_CONFIG__REPLY_DESTINATION_NAME:
712: setReplyDestinationName((String) newValue);
713: return;
714: case componentflowPackage.JMS_CONFIG__WRITE_STYLE:
715: setWriteStyle((ReadStyleType) newValue);
716: return;
717: case componentflowPackage.JMS_CONFIG__JNDI_CONNECTION_FACTORY_NAME:
718: setJndiConnectionFactoryName((String) newValue);
719: return;
720: case componentflowPackage.JMS_CONFIG__REPLY_TIMEOUT:
721: setReplyTimeout((String) newValue);
722: return;
723: case componentflowPackage.JMS_CONFIG__SERVICE_NAME:
724: setServiceName((String) newValue);
725: return;
726: case componentflowPackage.JMS_CONFIG__ENABLE_QUERY:
727: setEnableQuery(((Boolean) newValue).booleanValue());
728: return;
729: case componentflowPackage.JMS_CONFIG__QUERY_EXPRESSION:
730: setQueryExpression((String) newValue);
731: return;
732: }
733: super .eSet(featureID, newValue);
734: }
735:
736: /**
737: * <!-- begin-user-doc -->
738: * <!-- end-user-doc -->
739: * @generated
740: */
741: public void eUnset(int featureID) {
742: switch (featureID) {
743: case componentflowPackage.JMS_CONFIG__JNDI_INITIAL_CONTEXT_FACTORY:
744: setJndiInitialContextFactory(JNDI_INITIAL_CONTEXT_FACTORY_EDEFAULT);
745: return;
746: case componentflowPackage.JMS_CONFIG__JNDI_PROVIDER_URL:
747: setJndiProviderUrl(JNDI_PROVIDER_URL_EDEFAULT);
748: return;
749: case componentflowPackage.JMS_CONFIG__DESTINATION_STYLE:
750: setDestinationStyle(DESTINATION_STYLE_EDEFAULT);
751: return;
752: case componentflowPackage.JMS_CONFIG__TARGET_DESTINATION_NAME:
753: setTargetDestinationName(TARGET_DESTINATION_NAME_EDEFAULT);
754: return;
755: case componentflowPackage.JMS_CONFIG__READ_STYLE:
756: setReadStyle(READ_STYLE_EDEFAULT);
757: return;
758: case componentflowPackage.JMS_CONFIG__RECORDS_PER_MESSAGE:
759: setRecordsPerMessage(RECORDS_PER_MESSAGE_EDEFAULT);
760: return;
761: case componentflowPackage.JMS_CONFIG__REPLY_DESTINATION_NAME:
762: setReplyDestinationName(REPLY_DESTINATION_NAME_EDEFAULT);
763: return;
764: case componentflowPackage.JMS_CONFIG__WRITE_STYLE:
765: setWriteStyle(WRITE_STYLE_EDEFAULT);
766: return;
767: case componentflowPackage.JMS_CONFIG__JNDI_CONNECTION_FACTORY_NAME:
768: setJndiConnectionFactoryName(JNDI_CONNECTION_FACTORY_NAME_EDEFAULT);
769: return;
770: case componentflowPackage.JMS_CONFIG__REPLY_TIMEOUT:
771: setReplyTimeout(REPLY_TIMEOUT_EDEFAULT);
772: return;
773: case componentflowPackage.JMS_CONFIG__SERVICE_NAME:
774: setServiceName(SERVICE_NAME_EDEFAULT);
775: return;
776: case componentflowPackage.JMS_CONFIG__ENABLE_QUERY:
777: setEnableQuery(ENABLE_QUERY_EDEFAULT);
778: return;
779: case componentflowPackage.JMS_CONFIG__QUERY_EXPRESSION:
780: setQueryExpression(QUERY_EXPRESSION_EDEFAULT);
781: return;
782: }
783: super .eUnset(featureID);
784: }
785:
786: /**
787: * <!-- begin-user-doc -->
788: * <!-- end-user-doc -->
789: * @generated
790: */
791: public boolean eIsSet(int featureID) {
792: switch (featureID) {
793: case componentflowPackage.JMS_CONFIG__JNDI_INITIAL_CONTEXT_FACTORY:
794: return JNDI_INITIAL_CONTEXT_FACTORY_EDEFAULT == null ? jndiInitialContextFactory != null
795: : !JNDI_INITIAL_CONTEXT_FACTORY_EDEFAULT
796: .equals(jndiInitialContextFactory);
797: case componentflowPackage.JMS_CONFIG__JNDI_PROVIDER_URL:
798: return JNDI_PROVIDER_URL_EDEFAULT == null ? jndiProviderUrl != null
799: : !JNDI_PROVIDER_URL_EDEFAULT
800: .equals(jndiProviderUrl);
801: case componentflowPackage.JMS_CONFIG__DESTINATION_STYLE:
802: return destinationStyle != DESTINATION_STYLE_EDEFAULT;
803: case componentflowPackage.JMS_CONFIG__TARGET_DESTINATION_NAME:
804: return TARGET_DESTINATION_NAME_EDEFAULT == null ? targetDestinationName != null
805: : !TARGET_DESTINATION_NAME_EDEFAULT
806: .equals(targetDestinationName);
807: case componentflowPackage.JMS_CONFIG__READ_STYLE:
808: return readStyle != READ_STYLE_EDEFAULT;
809: case componentflowPackage.JMS_CONFIG__RECORDS_PER_MESSAGE:
810: return RECORDS_PER_MESSAGE_EDEFAULT == null ? recordsPerMessage != null
811: : !RECORDS_PER_MESSAGE_EDEFAULT
812: .equals(recordsPerMessage);
813: case componentflowPackage.JMS_CONFIG__REPLY_DESTINATION_NAME:
814: return REPLY_DESTINATION_NAME_EDEFAULT == null ? replyDestinationName != null
815: : !REPLY_DESTINATION_NAME_EDEFAULT
816: .equals(replyDestinationName);
817: case componentflowPackage.JMS_CONFIG__WRITE_STYLE:
818: return writeStyle != WRITE_STYLE_EDEFAULT;
819: case componentflowPackage.JMS_CONFIG__JNDI_CONNECTION_FACTORY_NAME:
820: return JNDI_CONNECTION_FACTORY_NAME_EDEFAULT == null ? jndiConnectionFactoryName != null
821: : !JNDI_CONNECTION_FACTORY_NAME_EDEFAULT
822: .equals(jndiConnectionFactoryName);
823: case componentflowPackage.JMS_CONFIG__REPLY_TIMEOUT:
824: return REPLY_TIMEOUT_EDEFAULT == null ? replyTimeout != null
825: : !REPLY_TIMEOUT_EDEFAULT.equals(replyTimeout);
826: case componentflowPackage.JMS_CONFIG__SERVICE_NAME:
827: return SERVICE_NAME_EDEFAULT == null ? serviceName != null
828: : !SERVICE_NAME_EDEFAULT.equals(serviceName);
829: case componentflowPackage.JMS_CONFIG__ENABLE_QUERY:
830: return enableQuery != ENABLE_QUERY_EDEFAULT;
831: case componentflowPackage.JMS_CONFIG__QUERY_EXPRESSION:
832: return QUERY_EXPRESSION_EDEFAULT == null ? queryExpression != null
833: : !QUERY_EXPRESSION_EDEFAULT
834: .equals(queryExpression);
835: }
836: return super .eIsSet(featureID);
837: }
838:
839: /**
840: * <!-- begin-user-doc -->
841: * <!-- end-user-doc -->
842: * @generated
843: */
844: public String toString() {
845: if (eIsProxy())
846: return super .toString();
847:
848: StringBuffer result = new StringBuffer(super .toString());
849: result.append(" (jndiInitialContextFactory: ");
850: result.append(jndiInitialContextFactory);
851: result.append(", jndiProviderUrl: ");
852: result.append(jndiProviderUrl);
853: result.append(", destinationStyle: ");
854: result.append(destinationStyle);
855: result.append(", targetDestinationName: ");
856: result.append(targetDestinationName);
857: result.append(", readStyle: ");
858: result.append(readStyle);
859: result.append(", recordsPerMessage: ");
860: result.append(recordsPerMessage);
861: result.append(", replyDestinationName: ");
862: result.append(replyDestinationName);
863: result.append(", writeStyle: ");
864: result.append(writeStyle);
865: result.append(", jndiConnectionFactoryName: ");
866: result.append(jndiConnectionFactoryName);
867: result.append(", replyTimeout: ");
868: result.append(replyTimeout);
869: result.append(", serviceName: ");
870: result.append(serviceName);
871: result.append(", enableQuery: ");
872: result.append(enableQuery);
873: result.append(", queryExpression: ");
874: result.append(queryExpression);
875: result.append(')');
876: return result.toString();
877: }
878:
879: } //JMSConfigImpl
|