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.BaseRead;
009: import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.FileCompletion;
010: import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.PatternModel;
011: import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.ReadStyleType;
012: import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.Scheduler;
013: import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.componentflowFactory;
014: import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.componentflowPackage;
015:
016: import org.eclipse.emf.common.notify.Notification;
017: import org.eclipse.emf.common.notify.NotificationChain;
018:
019: import org.eclipse.emf.ecore.EClass;
020: import org.eclipse.emf.ecore.InternalEObject;
021:
022: import org.eclipse.emf.ecore.impl.ENotificationImpl;
023: import org.eclipse.emf.ecore.impl.EObjectImpl;
024:
025: /**
026: * <!-- begin-user-doc -->
027: * An implementation of the model object '<em><b>Base Read</b></em>'.
028: * <!-- end-user-doc -->
029: * <p>
030: * The following features are implemented:
031: * <ul>
032: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.BaseReadImpl#getSourceDir <em>Source Dir</em>}</li>
033: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.BaseReadImpl#getStageDir <em>Stage Dir</em>}</li>
034: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.BaseReadImpl#getFilePattern <em>File Pattern</em>}</li>
035: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.BaseReadImpl#getMatchModel <em>Match Model</em>}</li>
036: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.BaseReadImpl#getScanInterval <em>Scan Interval</em>}</li>
037: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.BaseReadImpl#getReadStyle <em>Read Style</em>}</li>
038: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.BaseReadImpl#getRecordsPerMessage <em>Records Per Message</em>}</li>
039: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.BaseReadImpl#isHoldEnabled <em>Hold Enabled</em>}</li>
040: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.BaseReadImpl#getHoldDirectory <em>Hold Directory</em>}</li>
041: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.BaseReadImpl#isTwoPassModeIntevalEnabled <em>Two Pass Mode Inteval Enabled</em>}</li>
042: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.BaseReadImpl#getTwoPassModeInterval <em>Two Pass Mode Interval</em>}</li>
043: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.BaseReadImpl#getFileCompletion <em>File Completion</em>}</li>
044: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.BaseReadImpl#isUseScheduler <em>Use Scheduler</em>}</li>
045: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.BaseReadImpl#getScheduler <em>Scheduler</em>}</li>
046: * </ul>
047: * </p>
048: *
049: * @generated
050: */
051: public class BaseReadImpl extends ConsumerImpl implements BaseRead {
052: /**
053: * <!-- begin-user-doc -->
054: * <!-- end-user-doc -->
055: * @generated
056: */
057: public static final String copyright = "Copyright, Bostech Corp.";
058:
059: /**
060: * The default value of the '{@link #getSourceDir() <em>Source Dir</em>}' attribute.
061: * <!-- begin-user-doc -->
062: * <!-- end-user-doc -->
063: * @see #getSourceDir()
064: * @generated
065: * @ordered
066: */
067: protected static final String SOURCE_DIR_EDEFAULT = null;
068:
069: /**
070: * The cached value of the '{@link #getSourceDir() <em>Source Dir</em>}' attribute.
071: * <!-- begin-user-doc -->
072: * <!-- end-user-doc -->
073: * @see #getSourceDir()
074: * @generated
075: * @ordered
076: */
077: protected String sourceDir = SOURCE_DIR_EDEFAULT;
078:
079: /**
080: * The default value of the '{@link #getStageDir() <em>Stage Dir</em>}' attribute.
081: * <!-- begin-user-doc -->
082: * <!-- end-user-doc -->
083: * @see #getStageDir()
084: * @generated
085: * @ordered
086: */
087: protected static final String STAGE_DIR_EDEFAULT = null;
088:
089: /**
090: * The cached value of the '{@link #getStageDir() <em>Stage Dir</em>}' attribute.
091: * <!-- begin-user-doc -->
092: * <!-- end-user-doc -->
093: * @see #getStageDir()
094: * @generated
095: * @ordered
096: */
097: protected String stageDir = STAGE_DIR_EDEFAULT;
098:
099: /**
100: * The default value of the '{@link #getFilePattern() <em>File Pattern</em>}' attribute.
101: * <!-- begin-user-doc -->
102: * <!-- end-user-doc -->
103: * @see #getFilePattern()
104: * @generated
105: * @ordered
106: */
107: protected static final String FILE_PATTERN_EDEFAULT = "*";
108:
109: /**
110: * The cached value of the '{@link #getFilePattern() <em>File Pattern</em>}' attribute.
111: * <!-- begin-user-doc -->
112: * <!-- end-user-doc -->
113: * @see #getFilePattern()
114: * @generated
115: * @ordered
116: */
117: protected String filePattern = FILE_PATTERN_EDEFAULT;
118:
119: /**
120: * The default value of the '{@link #getMatchModel() <em>Match Model</em>}' attribute.
121: * <!-- begin-user-doc -->
122: * <!-- end-user-doc -->
123: * @see #getMatchModel()
124: * @generated
125: * @ordered
126: */
127: protected static final PatternModel MATCH_MODEL_EDEFAULT = PatternModel.GLOB_LITERAL;
128:
129: /**
130: * The cached value of the '{@link #getMatchModel() <em>Match Model</em>}' attribute.
131: * <!-- begin-user-doc -->
132: * <!-- end-user-doc -->
133: * @see #getMatchModel()
134: * @generated
135: * @ordered
136: */
137: protected PatternModel matchModel = MATCH_MODEL_EDEFAULT;
138:
139: /**
140: * The default value of the '{@link #getScanInterval() <em>Scan Interval</em>}' attribute.
141: * <!-- begin-user-doc -->
142: * <!-- end-user-doc -->
143: * @see #getScanInterval()
144: * @generated
145: * @ordered
146: */
147: protected static final String SCAN_INTERVAL_EDEFAULT = "5000";
148:
149: /**
150: * The cached value of the '{@link #getScanInterval() <em>Scan Interval</em>}' attribute.
151: * <!-- begin-user-doc -->
152: * <!-- end-user-doc -->
153: * @see #getScanInterval()
154: * @generated
155: * @ordered
156: */
157: protected String scanInterval = SCAN_INTERVAL_EDEFAULT;
158:
159: /**
160: * The default value of the '{@link #getReadStyle() <em>Read Style</em>}' attribute.
161: * <!-- begin-user-doc -->
162: * <!-- end-user-doc -->
163: * @see #getReadStyle()
164: * @generated
165: * @ordered
166: */
167: protected static final ReadStyleType READ_STYLE_EDEFAULT = ReadStyleType.RAW_LITERAL;
168:
169: /**
170: * The cached value of the '{@link #getReadStyle() <em>Read Style</em>}' attribute.
171: * <!-- begin-user-doc -->
172: * <!-- end-user-doc -->
173: * @see #getReadStyle()
174: * @generated
175: * @ordered
176: */
177: protected ReadStyleType readStyle = READ_STYLE_EDEFAULT;
178:
179: /**
180: * The default value of the '{@link #getRecordsPerMessage() <em>Records Per Message</em>}' attribute.
181: * <!-- begin-user-doc -->
182: * <!-- end-user-doc -->
183: * @see #getRecordsPerMessage()
184: * @generated
185: * @ordered
186: */
187: protected static final String RECORDS_PER_MESSAGE_EDEFAULT = "0";
188:
189: /**
190: * The cached value of the '{@link #getRecordsPerMessage() <em>Records Per Message</em>}' attribute.
191: * <!-- begin-user-doc -->
192: * <!-- end-user-doc -->
193: * @see #getRecordsPerMessage()
194: * @generated
195: * @ordered
196: */
197: protected String recordsPerMessage = RECORDS_PER_MESSAGE_EDEFAULT;
198:
199: /**
200: * The default value of the '{@link #isHoldEnabled() <em>Hold Enabled</em>}' attribute.
201: * <!-- begin-user-doc -->
202: * <!-- end-user-doc -->
203: * @see #isHoldEnabled()
204: * @generated
205: * @ordered
206: */
207: protected static final boolean HOLD_ENABLED_EDEFAULT = false;
208:
209: /**
210: * The cached value of the '{@link #isHoldEnabled() <em>Hold Enabled</em>}' attribute.
211: * <!-- begin-user-doc -->
212: * <!-- end-user-doc -->
213: * @see #isHoldEnabled()
214: * @generated
215: * @ordered
216: */
217: protected boolean holdEnabled = HOLD_ENABLED_EDEFAULT;
218:
219: /**
220: * The default value of the '{@link #getHoldDirectory() <em>Hold Directory</em>}' attribute.
221: * <!-- begin-user-doc -->
222: * <!-- end-user-doc -->
223: * @see #getHoldDirectory()
224: * @generated
225: * @ordered
226: */
227: protected static final String HOLD_DIRECTORY_EDEFAULT = null;
228:
229: /**
230: * The cached value of the '{@link #getHoldDirectory() <em>Hold Directory</em>}' attribute.
231: * <!-- begin-user-doc -->
232: * <!-- end-user-doc -->
233: * @see #getHoldDirectory()
234: * @generated
235: * @ordered
236: */
237: protected String holdDirectory = HOLD_DIRECTORY_EDEFAULT;
238:
239: /**
240: * The default value of the '{@link #isTwoPassModeIntevalEnabled() <em>Two Pass Mode Inteval Enabled</em>}' attribute.
241: * <!-- begin-user-doc -->
242: * <!-- end-user-doc -->
243: * @see #isTwoPassModeIntevalEnabled()
244: * @generated
245: * @ordered
246: */
247: protected static final boolean TWO_PASS_MODE_INTEVAL_ENABLED_EDEFAULT = false;
248:
249: /**
250: * The cached value of the '{@link #isTwoPassModeIntevalEnabled() <em>Two Pass Mode Inteval Enabled</em>}' attribute.
251: * <!-- begin-user-doc -->
252: * <!-- end-user-doc -->
253: * @see #isTwoPassModeIntevalEnabled()
254: * @generated
255: * @ordered
256: */
257: protected boolean twoPassModeIntevalEnabled = TWO_PASS_MODE_INTEVAL_ENABLED_EDEFAULT;
258:
259: /**
260: * The default value of the '{@link #getTwoPassModeInterval() <em>Two Pass Mode Interval</em>}' attribute.
261: * <!-- begin-user-doc -->
262: * <!-- end-user-doc -->
263: * @see #getTwoPassModeInterval()
264: * @generated
265: * @ordered
266: */
267: protected static final String TWO_PASS_MODE_INTERVAL_EDEFAULT = null;
268:
269: /**
270: * The cached value of the '{@link #getTwoPassModeInterval() <em>Two Pass Mode Interval</em>}' attribute.
271: * <!-- begin-user-doc -->
272: * <!-- end-user-doc -->
273: * @see #getTwoPassModeInterval()
274: * @generated
275: * @ordered
276: */
277: protected String twoPassModeInterval = TWO_PASS_MODE_INTERVAL_EDEFAULT;
278:
279: /**
280: * The cached value of the '{@link #getFileCompletion() <em>File Completion</em>}' containment reference.
281: * <!-- begin-user-doc -->
282: * <!-- end-user-doc -->
283: * @see #getFileCompletion()
284: * @generated
285: * @ordered
286: */
287: protected FileCompletion fileCompletion = null;
288:
289: /**
290: * The default value of the '{@link #isUseScheduler() <em>Use Scheduler</em>}' attribute.
291: * <!-- begin-user-doc -->
292: * <!-- end-user-doc -->
293: * @see #isUseScheduler()
294: * @generated
295: * @ordered
296: */
297: protected static final boolean USE_SCHEDULER_EDEFAULT = false;
298:
299: /**
300: * The cached value of the '{@link #isUseScheduler() <em>Use Scheduler</em>}' attribute.
301: * <!-- begin-user-doc -->
302: * <!-- end-user-doc -->
303: * @see #isUseScheduler()
304: * @generated
305: * @ordered
306: */
307: protected boolean useScheduler = USE_SCHEDULER_EDEFAULT;
308:
309: /**
310: * The cached value of the '{@link #getScheduler() <em>Scheduler</em>}' containment reference.
311: * <!-- begin-user-doc -->
312: * <!-- end-user-doc -->
313: * @see #getScheduler()
314: * @generated
315: * @ordered
316: */
317: protected Scheduler scheduler = null;
318:
319: /**
320: * <!-- begin-user-doc -->
321: * <!-- end-user-doc -->
322: * @generated NOT
323: */
324: protected BaseReadImpl() {
325: super ();
326: Scheduler newSchedule = componentflowFactory.eINSTANCE
327: .createScheduler();
328: this .setScheduler(newSchedule);
329: }
330:
331: /**
332: * <!-- begin-user-doc -->
333: * <!-- end-user-doc -->
334: * @generated
335: */
336: protected EClass eStaticClass() {
337: return componentflowPackage.Literals.BASE_READ;
338: }
339:
340: /**
341: * <!-- begin-user-doc -->
342: * <!-- end-user-doc -->
343: * @generated
344: */
345: public String getSourceDir() {
346: return sourceDir;
347: }
348:
349: /**
350: * <!-- begin-user-doc -->
351: * <!-- end-user-doc -->
352: * @generated
353: */
354: public void setSourceDir(String newSourceDir) {
355: String oldSourceDir = sourceDir;
356: sourceDir = newSourceDir;
357: if (eNotificationRequired())
358: eNotify(new ENotificationImpl(this , Notification.SET,
359: componentflowPackage.BASE_READ__SOURCE_DIR,
360: oldSourceDir, sourceDir));
361: }
362:
363: /**
364: * <!-- begin-user-doc -->
365: * <!-- end-user-doc -->
366: * @generated
367: */
368: public String getStageDir() {
369: return stageDir;
370: }
371:
372: /**
373: * <!-- begin-user-doc -->
374: * <!-- end-user-doc -->
375: * @generated
376: */
377: public void setStageDir(String newStageDir) {
378: String oldStageDir = stageDir;
379: stageDir = newStageDir;
380: if (eNotificationRequired())
381: eNotify(new ENotificationImpl(this , Notification.SET,
382: componentflowPackage.BASE_READ__STAGE_DIR,
383: oldStageDir, stageDir));
384: }
385:
386: /**
387: * <!-- begin-user-doc -->
388: * <!-- end-user-doc -->
389: * @generated
390: */
391: public String getFilePattern() {
392: return filePattern;
393: }
394:
395: /**
396: * <!-- begin-user-doc -->
397: * <!-- end-user-doc -->
398: * @generated
399: */
400: public void setFilePattern(String newFilePattern) {
401: String oldFilePattern = filePattern;
402: filePattern = newFilePattern;
403: if (eNotificationRequired())
404: eNotify(new ENotificationImpl(this , Notification.SET,
405: componentflowPackage.BASE_READ__FILE_PATTERN,
406: oldFilePattern, filePattern));
407: }
408:
409: /**
410: * <!-- begin-user-doc -->
411: * <!-- end-user-doc -->
412: * @generated
413: */
414: public PatternModel getMatchModel() {
415: return matchModel;
416: }
417:
418: /**
419: * <!-- begin-user-doc -->
420: * <!-- end-user-doc -->
421: * @generated
422: */
423: public void setMatchModel(PatternModel newMatchModel) {
424: PatternModel oldMatchModel = matchModel;
425: matchModel = newMatchModel == null ? MATCH_MODEL_EDEFAULT
426: : newMatchModel;
427: if (eNotificationRequired())
428: eNotify(new ENotificationImpl(this , Notification.SET,
429: componentflowPackage.BASE_READ__MATCH_MODEL,
430: oldMatchModel, matchModel));
431: }
432:
433: /**
434: * <!-- begin-user-doc -->
435: * <!-- end-user-doc -->
436: * @generated
437: */
438: public String getScanInterval() {
439: return scanInterval;
440: }
441:
442: /**
443: * <!-- begin-user-doc -->
444: * <!-- end-user-doc -->
445: * @generated
446: */
447: public void setScanInterval(String newScanInterval) {
448: String oldScanInterval = scanInterval;
449: scanInterval = newScanInterval;
450: if (eNotificationRequired())
451: eNotify(new ENotificationImpl(this , Notification.SET,
452: componentflowPackage.BASE_READ__SCAN_INTERVAL,
453: oldScanInterval, scanInterval));
454: }
455:
456: /**
457: * <!-- begin-user-doc -->
458: * <!-- end-user-doc -->
459: * @generated
460: */
461: public ReadStyleType getReadStyle() {
462: return readStyle;
463: }
464:
465: /**
466: * <!-- begin-user-doc -->
467: * <!-- end-user-doc -->
468: * @generated
469: */
470: public void setReadStyle(ReadStyleType newReadStyle) {
471: ReadStyleType oldReadStyle = readStyle;
472: readStyle = newReadStyle == null ? READ_STYLE_EDEFAULT
473: : newReadStyle;
474: if (eNotificationRequired())
475: eNotify(new ENotificationImpl(this , Notification.SET,
476: componentflowPackage.BASE_READ__READ_STYLE,
477: oldReadStyle, readStyle));
478: }
479:
480: /**
481: * <!-- begin-user-doc -->
482: * <!-- end-user-doc -->
483: * @generated
484: */
485: public String getRecordsPerMessage() {
486: return recordsPerMessage;
487: }
488:
489: /**
490: * <!-- begin-user-doc -->
491: * <!-- end-user-doc -->
492: * @generated
493: */
494: public void setRecordsPerMessage(String newRecordsPerMessage) {
495: String oldRecordsPerMessage = recordsPerMessage;
496: recordsPerMessage = newRecordsPerMessage;
497: if (eNotificationRequired())
498: eNotify(new ENotificationImpl(
499: this ,
500: Notification.SET,
501: componentflowPackage.BASE_READ__RECORDS_PER_MESSAGE,
502: oldRecordsPerMessage, recordsPerMessage));
503: }
504:
505: /**
506: * <!-- begin-user-doc -->
507: * <!-- end-user-doc -->
508: * @generated
509: */
510: public boolean isHoldEnabled() {
511: return holdEnabled;
512: }
513:
514: /**
515: * <!-- begin-user-doc -->
516: * <!-- end-user-doc -->
517: * @generated
518: */
519: public void setHoldEnabled(boolean newHoldEnabled) {
520: boolean oldHoldEnabled = holdEnabled;
521: holdEnabled = newHoldEnabled;
522: if (eNotificationRequired())
523: eNotify(new ENotificationImpl(this , Notification.SET,
524: componentflowPackage.BASE_READ__HOLD_ENABLED,
525: oldHoldEnabled, holdEnabled));
526: }
527:
528: /**
529: * <!-- begin-user-doc -->
530: * <!-- end-user-doc -->
531: * @generated
532: */
533: public String getHoldDirectory() {
534: return holdDirectory;
535: }
536:
537: /**
538: * <!-- begin-user-doc -->
539: * <!-- end-user-doc -->
540: * @generated
541: */
542: public void setHoldDirectory(String newHoldDirectory) {
543: String oldHoldDirectory = holdDirectory;
544: holdDirectory = newHoldDirectory;
545: if (eNotificationRequired())
546: eNotify(new ENotificationImpl(this , Notification.SET,
547: componentflowPackage.BASE_READ__HOLD_DIRECTORY,
548: oldHoldDirectory, holdDirectory));
549: }
550:
551: /**
552: * <!-- begin-user-doc -->
553: * <!-- end-user-doc -->
554: * @generated
555: */
556: public boolean isTwoPassModeIntevalEnabled() {
557: return twoPassModeIntevalEnabled;
558: }
559:
560: /**
561: * <!-- begin-user-doc -->
562: * <!-- end-user-doc -->
563: * @generated
564: */
565: public void setTwoPassModeIntevalEnabled(
566: boolean newTwoPassModeIntevalEnabled) {
567: boolean oldTwoPassModeIntevalEnabled = twoPassModeIntevalEnabled;
568: twoPassModeIntevalEnabled = newTwoPassModeIntevalEnabled;
569: if (eNotificationRequired())
570: eNotify(new ENotificationImpl(
571: this ,
572: Notification.SET,
573: componentflowPackage.BASE_READ__TWO_PASS_MODE_INTEVAL_ENABLED,
574: oldTwoPassModeIntevalEnabled,
575: twoPassModeIntevalEnabled));
576: }
577:
578: /**
579: * <!-- begin-user-doc -->
580: * <!-- end-user-doc -->
581: * @generated
582: */
583: public String getTwoPassModeInterval() {
584: return twoPassModeInterval;
585: }
586:
587: /**
588: * <!-- begin-user-doc -->
589: * <!-- end-user-doc -->
590: * @generated
591: */
592: public void setTwoPassModeInterval(String newTwoPassModeInterval) {
593: String oldTwoPassModeInterval = twoPassModeInterval;
594: twoPassModeInterval = newTwoPassModeInterval;
595: if (eNotificationRequired())
596: eNotify(new ENotificationImpl(
597: this ,
598: Notification.SET,
599: componentflowPackage.BASE_READ__TWO_PASS_MODE_INTERVAL,
600: oldTwoPassModeInterval, twoPassModeInterval));
601: }
602:
603: /**
604: * <!-- begin-user-doc -->
605: * <!-- end-user-doc -->
606: * @generated
607: */
608: public FileCompletion getFileCompletion() {
609: return fileCompletion;
610: }
611:
612: /**
613: * <!-- begin-user-doc -->
614: * <!-- end-user-doc -->
615: * @generated
616: */
617: public NotificationChain basicSetFileCompletion(
618: FileCompletion newFileCompletion, NotificationChain msgs) {
619: FileCompletion oldFileCompletion = fileCompletion;
620: fileCompletion = newFileCompletion;
621: if (eNotificationRequired()) {
622: ENotificationImpl notification = new ENotificationImpl(
623: this , Notification.SET,
624: componentflowPackage.BASE_READ__FILE_COMPLETION,
625: oldFileCompletion, newFileCompletion);
626: if (msgs == null)
627: msgs = notification;
628: else
629: msgs.add(notification);
630: }
631: return msgs;
632: }
633:
634: /**
635: * <!-- begin-user-doc -->
636: * <!-- end-user-doc -->
637: * @generated
638: */
639: public void setFileCompletion(FileCompletion newFileCompletion) {
640: if (newFileCompletion != fileCompletion) {
641: NotificationChain msgs = null;
642: if (fileCompletion != null)
643: msgs = ((InternalEObject) fileCompletion)
644: .eInverseRemove(
645: this ,
646: EOPPOSITE_FEATURE_BASE
647: - componentflowPackage.BASE_READ__FILE_COMPLETION,
648: null, msgs);
649: if (newFileCompletion != null)
650: msgs = ((InternalEObject) newFileCompletion)
651: .eInverseAdd(
652: this ,
653: EOPPOSITE_FEATURE_BASE
654: - componentflowPackage.BASE_READ__FILE_COMPLETION,
655: null, msgs);
656: msgs = basicSetFileCompletion(newFileCompletion, msgs);
657: if (msgs != null)
658: msgs.dispatch();
659: } else if (eNotificationRequired())
660: eNotify(new ENotificationImpl(this , Notification.SET,
661: componentflowPackage.BASE_READ__FILE_COMPLETION,
662: newFileCompletion, newFileCompletion));
663: }
664:
665: /**
666: * <!-- begin-user-doc -->
667: * <!-- end-user-doc -->
668: * @generated
669: */
670: public boolean isUseScheduler() {
671: return useScheduler;
672: }
673:
674: /**
675: * <!-- begin-user-doc -->
676: * <!-- end-user-doc -->
677: * @generated
678: */
679: public void setUseScheduler(boolean newUseScheduler) {
680: boolean oldUseScheduler = useScheduler;
681: useScheduler = newUseScheduler;
682: if (eNotificationRequired())
683: eNotify(new ENotificationImpl(this , Notification.SET,
684: componentflowPackage.BASE_READ__USE_SCHEDULER,
685: oldUseScheduler, useScheduler));
686: }
687:
688: /**
689: * <!-- begin-user-doc -->
690: * <!-- end-user-doc -->
691: * @generated
692: */
693: public Scheduler getScheduler() {
694: return scheduler;
695: }
696:
697: /**
698: * <!-- begin-user-doc -->
699: * <!-- end-user-doc -->
700: * @generated
701: */
702: public NotificationChain basicSetScheduler(Scheduler newScheduler,
703: NotificationChain msgs) {
704: Scheduler oldScheduler = scheduler;
705: scheduler = newScheduler;
706: if (eNotificationRequired()) {
707: ENotificationImpl notification = new ENotificationImpl(
708: this , Notification.SET,
709: componentflowPackage.BASE_READ__SCHEDULER,
710: oldScheduler, newScheduler);
711: if (msgs == null)
712: msgs = notification;
713: else
714: msgs.add(notification);
715: }
716: return msgs;
717: }
718:
719: /**
720: * <!-- begin-user-doc -->
721: * <!-- end-user-doc -->
722: * @generated
723: */
724: public void setScheduler(Scheduler newScheduler) {
725: if (newScheduler != scheduler) {
726: NotificationChain msgs = null;
727: if (scheduler != null)
728: msgs = ((InternalEObject) scheduler)
729: .eInverseRemove(
730: this ,
731: EOPPOSITE_FEATURE_BASE
732: - componentflowPackage.BASE_READ__SCHEDULER,
733: null, msgs);
734: if (newScheduler != null)
735: msgs = ((InternalEObject) newScheduler)
736: .eInverseAdd(
737: this ,
738: EOPPOSITE_FEATURE_BASE
739: - componentflowPackage.BASE_READ__SCHEDULER,
740: null, msgs);
741: msgs = basicSetScheduler(newScheduler, msgs);
742: if (msgs != null)
743: msgs.dispatch();
744: } else if (eNotificationRequired())
745: eNotify(new ENotificationImpl(this , Notification.SET,
746: componentflowPackage.BASE_READ__SCHEDULER,
747: newScheduler, newScheduler));
748: }
749:
750: /**
751: * <!-- begin-user-doc -->
752: * <!-- end-user-doc -->
753: * @generated
754: */
755: public NotificationChain eInverseRemove(InternalEObject otherEnd,
756: int featureID, NotificationChain msgs) {
757: switch (featureID) {
758: case componentflowPackage.BASE_READ__FILE_COMPLETION:
759: return basicSetFileCompletion(null, msgs);
760: case componentflowPackage.BASE_READ__SCHEDULER:
761: return basicSetScheduler(null, msgs);
762: }
763: return super .eInverseRemove(otherEnd, featureID, msgs);
764: }
765:
766: /**
767: * <!-- begin-user-doc -->
768: * <!-- end-user-doc -->
769: * @generated
770: */
771: public Object eGet(int featureID, boolean resolve, boolean coreType) {
772: switch (featureID) {
773: case componentflowPackage.BASE_READ__SOURCE_DIR:
774: return getSourceDir();
775: case componentflowPackage.BASE_READ__STAGE_DIR:
776: return getStageDir();
777: case componentflowPackage.BASE_READ__FILE_PATTERN:
778: return getFilePattern();
779: case componentflowPackage.BASE_READ__MATCH_MODEL:
780: return getMatchModel();
781: case componentflowPackage.BASE_READ__SCAN_INTERVAL:
782: return getScanInterval();
783: case componentflowPackage.BASE_READ__READ_STYLE:
784: return getReadStyle();
785: case componentflowPackage.BASE_READ__RECORDS_PER_MESSAGE:
786: return getRecordsPerMessage();
787: case componentflowPackage.BASE_READ__HOLD_ENABLED:
788: return isHoldEnabled() ? Boolean.TRUE : Boolean.FALSE;
789: case componentflowPackage.BASE_READ__HOLD_DIRECTORY:
790: return getHoldDirectory();
791: case componentflowPackage.BASE_READ__TWO_PASS_MODE_INTEVAL_ENABLED:
792: return isTwoPassModeIntevalEnabled() ? Boolean.TRUE
793: : Boolean.FALSE;
794: case componentflowPackage.BASE_READ__TWO_PASS_MODE_INTERVAL:
795: return getTwoPassModeInterval();
796: case componentflowPackage.BASE_READ__FILE_COMPLETION:
797: return getFileCompletion();
798: case componentflowPackage.BASE_READ__USE_SCHEDULER:
799: return isUseScheduler() ? Boolean.TRUE : Boolean.FALSE;
800: case componentflowPackage.BASE_READ__SCHEDULER:
801: return getScheduler();
802: }
803: return super .eGet(featureID, resolve, coreType);
804: }
805:
806: /**
807: * <!-- begin-user-doc -->
808: * <!-- end-user-doc -->
809: * @generated
810: */
811: public void eSet(int featureID, Object newValue) {
812: switch (featureID) {
813: case componentflowPackage.BASE_READ__SOURCE_DIR:
814: setSourceDir((String) newValue);
815: return;
816: case componentflowPackage.BASE_READ__STAGE_DIR:
817: setStageDir((String) newValue);
818: return;
819: case componentflowPackage.BASE_READ__FILE_PATTERN:
820: setFilePattern((String) newValue);
821: return;
822: case componentflowPackage.BASE_READ__MATCH_MODEL:
823: setMatchModel((PatternModel) newValue);
824: return;
825: case componentflowPackage.BASE_READ__SCAN_INTERVAL:
826: setScanInterval((String) newValue);
827: return;
828: case componentflowPackage.BASE_READ__READ_STYLE:
829: setReadStyle((ReadStyleType) newValue);
830: return;
831: case componentflowPackage.BASE_READ__RECORDS_PER_MESSAGE:
832: setRecordsPerMessage((String) newValue);
833: return;
834: case componentflowPackage.BASE_READ__HOLD_ENABLED:
835: setHoldEnabled(((Boolean) newValue).booleanValue());
836: return;
837: case componentflowPackage.BASE_READ__HOLD_DIRECTORY:
838: setHoldDirectory((String) newValue);
839: return;
840: case componentflowPackage.BASE_READ__TWO_PASS_MODE_INTEVAL_ENABLED:
841: setTwoPassModeIntevalEnabled(((Boolean) newValue)
842: .booleanValue());
843: return;
844: case componentflowPackage.BASE_READ__TWO_PASS_MODE_INTERVAL:
845: setTwoPassModeInterval((String) newValue);
846: return;
847: case componentflowPackage.BASE_READ__FILE_COMPLETION:
848: setFileCompletion((FileCompletion) newValue);
849: return;
850: case componentflowPackage.BASE_READ__USE_SCHEDULER:
851: setUseScheduler(((Boolean) newValue).booleanValue());
852: return;
853: case componentflowPackage.BASE_READ__SCHEDULER:
854: setScheduler((Scheduler) newValue);
855: return;
856: }
857: super .eSet(featureID, newValue);
858: }
859:
860: /**
861: * <!-- begin-user-doc -->
862: * <!-- end-user-doc -->
863: * @generated
864: */
865: public void eUnset(int featureID) {
866: switch (featureID) {
867: case componentflowPackage.BASE_READ__SOURCE_DIR:
868: setSourceDir(SOURCE_DIR_EDEFAULT);
869: return;
870: case componentflowPackage.BASE_READ__STAGE_DIR:
871: setStageDir(STAGE_DIR_EDEFAULT);
872: return;
873: case componentflowPackage.BASE_READ__FILE_PATTERN:
874: setFilePattern(FILE_PATTERN_EDEFAULT);
875: return;
876: case componentflowPackage.BASE_READ__MATCH_MODEL:
877: setMatchModel(MATCH_MODEL_EDEFAULT);
878: return;
879: case componentflowPackage.BASE_READ__SCAN_INTERVAL:
880: setScanInterval(SCAN_INTERVAL_EDEFAULT);
881: return;
882: case componentflowPackage.BASE_READ__READ_STYLE:
883: setReadStyle(READ_STYLE_EDEFAULT);
884: return;
885: case componentflowPackage.BASE_READ__RECORDS_PER_MESSAGE:
886: setRecordsPerMessage(RECORDS_PER_MESSAGE_EDEFAULT);
887: return;
888: case componentflowPackage.BASE_READ__HOLD_ENABLED:
889: setHoldEnabled(HOLD_ENABLED_EDEFAULT);
890: return;
891: case componentflowPackage.BASE_READ__HOLD_DIRECTORY:
892: setHoldDirectory(HOLD_DIRECTORY_EDEFAULT);
893: return;
894: case componentflowPackage.BASE_READ__TWO_PASS_MODE_INTEVAL_ENABLED:
895: setTwoPassModeIntevalEnabled(TWO_PASS_MODE_INTEVAL_ENABLED_EDEFAULT);
896: return;
897: case componentflowPackage.BASE_READ__TWO_PASS_MODE_INTERVAL:
898: setTwoPassModeInterval(TWO_PASS_MODE_INTERVAL_EDEFAULT);
899: return;
900: case componentflowPackage.BASE_READ__FILE_COMPLETION:
901: setFileCompletion((FileCompletion) null);
902: return;
903: case componentflowPackage.BASE_READ__USE_SCHEDULER:
904: setUseScheduler(USE_SCHEDULER_EDEFAULT);
905: return;
906: case componentflowPackage.BASE_READ__SCHEDULER:
907: setScheduler((Scheduler) null);
908: return;
909: }
910: super .eUnset(featureID);
911: }
912:
913: /**
914: * <!-- begin-user-doc -->
915: * <!-- end-user-doc -->
916: * @generated
917: */
918: public boolean eIsSet(int featureID) {
919: switch (featureID) {
920: case componentflowPackage.BASE_READ__SOURCE_DIR:
921: return SOURCE_DIR_EDEFAULT == null ? sourceDir != null
922: : !SOURCE_DIR_EDEFAULT.equals(sourceDir);
923: case componentflowPackage.BASE_READ__STAGE_DIR:
924: return STAGE_DIR_EDEFAULT == null ? stageDir != null
925: : !STAGE_DIR_EDEFAULT.equals(stageDir);
926: case componentflowPackage.BASE_READ__FILE_PATTERN:
927: return FILE_PATTERN_EDEFAULT == null ? filePattern != null
928: : !FILE_PATTERN_EDEFAULT.equals(filePattern);
929: case componentflowPackage.BASE_READ__MATCH_MODEL:
930: return matchModel != MATCH_MODEL_EDEFAULT;
931: case componentflowPackage.BASE_READ__SCAN_INTERVAL:
932: return SCAN_INTERVAL_EDEFAULT == null ? scanInterval != null
933: : !SCAN_INTERVAL_EDEFAULT.equals(scanInterval);
934: case componentflowPackage.BASE_READ__READ_STYLE:
935: return readStyle != READ_STYLE_EDEFAULT;
936: case componentflowPackage.BASE_READ__RECORDS_PER_MESSAGE:
937: return RECORDS_PER_MESSAGE_EDEFAULT == null ? recordsPerMessage != null
938: : !RECORDS_PER_MESSAGE_EDEFAULT
939: .equals(recordsPerMessage);
940: case componentflowPackage.BASE_READ__HOLD_ENABLED:
941: return holdEnabled != HOLD_ENABLED_EDEFAULT;
942: case componentflowPackage.BASE_READ__HOLD_DIRECTORY:
943: return HOLD_DIRECTORY_EDEFAULT == null ? holdDirectory != null
944: : !HOLD_DIRECTORY_EDEFAULT.equals(holdDirectory);
945: case componentflowPackage.BASE_READ__TWO_PASS_MODE_INTEVAL_ENABLED:
946: return twoPassModeIntevalEnabled != TWO_PASS_MODE_INTEVAL_ENABLED_EDEFAULT;
947: case componentflowPackage.BASE_READ__TWO_PASS_MODE_INTERVAL:
948: return TWO_PASS_MODE_INTERVAL_EDEFAULT == null ? twoPassModeInterval != null
949: : !TWO_PASS_MODE_INTERVAL_EDEFAULT
950: .equals(twoPassModeInterval);
951: case componentflowPackage.BASE_READ__FILE_COMPLETION:
952: return fileCompletion != null;
953: case componentflowPackage.BASE_READ__USE_SCHEDULER:
954: return useScheduler != USE_SCHEDULER_EDEFAULT;
955: case componentflowPackage.BASE_READ__SCHEDULER:
956: return scheduler != null;
957: }
958: return super .eIsSet(featureID);
959: }
960:
961: /**
962: * <!-- begin-user-doc -->
963: * <!-- end-user-doc -->
964: * @generated
965: */
966: public String toString() {
967: if (eIsProxy())
968: return super .toString();
969:
970: StringBuffer result = new StringBuffer(super .toString());
971: result.append(" (sourceDir: ");
972: result.append(sourceDir);
973: result.append(", stageDir: ");
974: result.append(stageDir);
975: result.append(", filePattern: ");
976: result.append(filePattern);
977: result.append(", matchModel: ");
978: result.append(matchModel);
979: result.append(", scanInterval: ");
980: result.append(scanInterval);
981: result.append(", readStyle: ");
982: result.append(readStyle);
983: result.append(", recordsPerMessage: ");
984: result.append(recordsPerMessage);
985: result.append(", holdEnabled: ");
986: result.append(holdEnabled);
987: result.append(", holdDirectory: ");
988: result.append(holdDirectory);
989: result.append(", twoPassModeIntevalEnabled: ");
990: result.append(twoPassModeIntevalEnabled);
991: result.append(", twoPassModeInterval: ");
992: result.append(twoPassModeInterval);
993: result.append(", UseScheduler: ");
994: result.append(useScheduler);
995: result.append(')');
996: return result.toString();
997: }
998:
999: } //BaseReadImpl
|