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.FileReply;
009: import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.ReadStyleType;
010: import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.componentflowPackage;
011:
012: import org.eclipse.emf.common.notify.Notification;
013:
014: import org.eclipse.emf.ecore.EClass;
015:
016: import org.eclipse.emf.ecore.impl.ENotificationImpl;
017: import org.eclipse.emf.ecore.impl.EObjectImpl;
018:
019: /**
020: * <!-- begin-user-doc -->
021: * An implementation of the model object '<em><b>File Reply</b></em>'.
022: * <!-- end-user-doc -->
023: * <p>
024: * The following features are implemented:
025: * <ul>
026: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.FileReplyImpl#getReplyDir <em>Reply Dir</em>}</li>
027: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.FileReplyImpl#getReplyCharset <em>Reply Charset</em>}</li>
028: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.FileReplyImpl#getReplyWriteStyle <em>Reply Write Style</em>}</li>
029: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.FileReplyImpl#getReplyFilePattern <em>Reply File Pattern</em>}</li>
030: * </ul>
031: * </p>
032: *
033: * @generated
034: */
035: public class FileReplyImpl extends EObjectImpl implements FileReply {
036: /**
037: * <!-- begin-user-doc -->
038: * <!-- end-user-doc -->
039: * @generated
040: */
041: public static final String copyright = "Copyright, Bostech Corp.";
042:
043: /**
044: * The default value of the '{@link #getReplyDir() <em>Reply Dir</em>}' attribute.
045: * <!-- begin-user-doc -->
046: * <!-- end-user-doc -->
047: * @see #getReplyDir()
048: * @generated
049: * @ordered
050: */
051: protected static final String REPLY_DIR_EDEFAULT = null;
052:
053: /**
054: * The cached value of the '{@link #getReplyDir() <em>Reply Dir</em>}' attribute.
055: * <!-- begin-user-doc -->
056: * <!-- end-user-doc -->
057: * @see #getReplyDir()
058: * @generated
059: * @ordered
060: */
061: protected String replyDir = REPLY_DIR_EDEFAULT;
062:
063: /**
064: * The default value of the '{@link #getReplyCharset() <em>Reply Charset</em>}' attribute.
065: * <!-- begin-user-doc -->
066: * <!-- end-user-doc -->
067: * @see #getReplyCharset()
068: * @generated
069: * @ordered
070: */
071: protected static final String REPLY_CHARSET_EDEFAULT = "SYSTEM_DEFAULT";
072:
073: /**
074: * The cached value of the '{@link #getReplyCharset() <em>Reply Charset</em>}' attribute.
075: * <!-- begin-user-doc -->
076: * <!-- end-user-doc -->
077: * @see #getReplyCharset()
078: * @generated
079: * @ordered
080: */
081: protected String replyCharset = REPLY_CHARSET_EDEFAULT;
082:
083: /**
084: * The default value of the '{@link #getReplyWriteStyle() <em>Reply Write Style</em>}' attribute.
085: * <!-- begin-user-doc -->
086: * <!-- end-user-doc -->
087: * @see #getReplyWriteStyle()
088: * @generated
089: * @ordered
090: */
091: protected static final ReadStyleType REPLY_WRITE_STYLE_EDEFAULT = ReadStyleType.RAW_LITERAL;
092:
093: /**
094: * The cached value of the '{@link #getReplyWriteStyle() <em>Reply Write Style</em>}' attribute.
095: * <!-- begin-user-doc -->
096: * <!-- end-user-doc -->
097: * @see #getReplyWriteStyle()
098: * @generated
099: * @ordered
100: */
101: protected ReadStyleType replyWriteStyle = REPLY_WRITE_STYLE_EDEFAULT;
102:
103: /**
104: * The default value of the '{@link #getReplyFilePattern() <em>Reply File Pattern</em>}' attribute.
105: * <!-- begin-user-doc -->
106: * <!-- end-user-doc -->
107: * @see #getReplyFilePattern()
108: * @generated
109: * @ordered
110: */
111: protected static final String REPLY_FILE_PATTERN_EDEFAULT = null;
112:
113: /**
114: * The cached value of the '{@link #getReplyFilePattern() <em>Reply File Pattern</em>}' attribute.
115: * <!-- begin-user-doc -->
116: * <!-- end-user-doc -->
117: * @see #getReplyFilePattern()
118: * @generated
119: * @ordered
120: */
121: protected String replyFilePattern = REPLY_FILE_PATTERN_EDEFAULT;
122:
123: /**
124: * <!-- begin-user-doc -->
125: * <!-- end-user-doc -->
126: * @generated
127: */
128: protected FileReplyImpl() {
129: super ();
130: }
131:
132: /**
133: * <!-- begin-user-doc -->
134: * <!-- end-user-doc -->
135: * @generated
136: */
137: protected EClass eStaticClass() {
138: return componentflowPackage.Literals.FILE_REPLY;
139: }
140:
141: /**
142: * <!-- begin-user-doc -->
143: * <!-- end-user-doc -->
144: * @generated
145: */
146: public String getReplyDir() {
147: return replyDir;
148: }
149:
150: /**
151: * <!-- begin-user-doc -->
152: * <!-- end-user-doc -->
153: * @generated
154: */
155: public void setReplyDir(String newReplyDir) {
156: String oldReplyDir = replyDir;
157: replyDir = newReplyDir;
158: if (eNotificationRequired())
159: eNotify(new ENotificationImpl(this , Notification.SET,
160: componentflowPackage.FILE_REPLY__REPLY_DIR,
161: oldReplyDir, replyDir));
162: }
163:
164: /**
165: * <!-- begin-user-doc -->
166: * <!-- end-user-doc -->
167: * @generated
168: */
169: public String getReplyCharset() {
170: return replyCharset;
171: }
172:
173: /**
174: * <!-- begin-user-doc -->
175: * <!-- end-user-doc -->
176: * @generated
177: */
178: public void setReplyCharset(String newReplyCharset) {
179: String oldReplyCharset = replyCharset;
180: replyCharset = newReplyCharset;
181: if (eNotificationRequired())
182: eNotify(new ENotificationImpl(this , Notification.SET,
183: componentflowPackage.FILE_REPLY__REPLY_CHARSET,
184: oldReplyCharset, replyCharset));
185: }
186:
187: /**
188: * <!-- begin-user-doc -->
189: * <!-- end-user-doc -->
190: * @generated
191: */
192: public ReadStyleType getReplyWriteStyle() {
193: return replyWriteStyle;
194: }
195:
196: /**
197: * <!-- begin-user-doc -->
198: * <!-- end-user-doc -->
199: * @generated
200: */
201: public void setReplyWriteStyle(ReadStyleType newReplyWriteStyle) {
202: ReadStyleType oldReplyWriteStyle = replyWriteStyle;
203: replyWriteStyle = newReplyWriteStyle == null ? REPLY_WRITE_STYLE_EDEFAULT
204: : newReplyWriteStyle;
205: if (eNotificationRequired())
206: eNotify(new ENotificationImpl(this , Notification.SET,
207: componentflowPackage.FILE_REPLY__REPLY_WRITE_STYLE,
208: oldReplyWriteStyle, replyWriteStyle));
209: }
210:
211: /**
212: * <!-- begin-user-doc -->
213: * <!-- end-user-doc -->
214: * @generated
215: */
216: public String getReplyFilePattern() {
217: return replyFilePattern;
218: }
219:
220: /**
221: * <!-- begin-user-doc -->
222: * <!-- end-user-doc -->
223: * @generated
224: */
225: public void setReplyFilePattern(String newReplyFilePattern) {
226: String oldReplyFilePattern = replyFilePattern;
227: replyFilePattern = newReplyFilePattern;
228: if (eNotificationRequired())
229: eNotify(new ENotificationImpl(
230: this ,
231: Notification.SET,
232: componentflowPackage.FILE_REPLY__REPLY_FILE_PATTERN,
233: oldReplyFilePattern, replyFilePattern));
234: }
235:
236: /**
237: * <!-- begin-user-doc -->
238: * <!-- end-user-doc -->
239: * @generated
240: */
241: public Object eGet(int featureID, boolean resolve, boolean coreType) {
242: switch (featureID) {
243: case componentflowPackage.FILE_REPLY__REPLY_DIR:
244: return getReplyDir();
245: case componentflowPackage.FILE_REPLY__REPLY_CHARSET:
246: return getReplyCharset();
247: case componentflowPackage.FILE_REPLY__REPLY_WRITE_STYLE:
248: return getReplyWriteStyle();
249: case componentflowPackage.FILE_REPLY__REPLY_FILE_PATTERN:
250: return getReplyFilePattern();
251: }
252: return super .eGet(featureID, resolve, coreType);
253: }
254:
255: /**
256: * <!-- begin-user-doc -->
257: * <!-- end-user-doc -->
258: * @generated
259: */
260: public void eSet(int featureID, Object newValue) {
261: switch (featureID) {
262: case componentflowPackage.FILE_REPLY__REPLY_DIR:
263: setReplyDir((String) newValue);
264: return;
265: case componentflowPackage.FILE_REPLY__REPLY_CHARSET:
266: setReplyCharset((String) newValue);
267: return;
268: case componentflowPackage.FILE_REPLY__REPLY_WRITE_STYLE:
269: setReplyWriteStyle((ReadStyleType) newValue);
270: return;
271: case componentflowPackage.FILE_REPLY__REPLY_FILE_PATTERN:
272: setReplyFilePattern((String) newValue);
273: return;
274: }
275: super .eSet(featureID, newValue);
276: }
277:
278: /**
279: * <!-- begin-user-doc -->
280: * <!-- end-user-doc -->
281: * @generated
282: */
283: public void eUnset(int featureID) {
284: switch (featureID) {
285: case componentflowPackage.FILE_REPLY__REPLY_DIR:
286: setReplyDir(REPLY_DIR_EDEFAULT);
287: return;
288: case componentflowPackage.FILE_REPLY__REPLY_CHARSET:
289: setReplyCharset(REPLY_CHARSET_EDEFAULT);
290: return;
291: case componentflowPackage.FILE_REPLY__REPLY_WRITE_STYLE:
292: setReplyWriteStyle(REPLY_WRITE_STYLE_EDEFAULT);
293: return;
294: case componentflowPackage.FILE_REPLY__REPLY_FILE_PATTERN:
295: setReplyFilePattern(REPLY_FILE_PATTERN_EDEFAULT);
296: return;
297: }
298: super .eUnset(featureID);
299: }
300:
301: /**
302: * <!-- begin-user-doc -->
303: * <!-- end-user-doc -->
304: * @generated
305: */
306: public boolean eIsSet(int featureID) {
307: switch (featureID) {
308: case componentflowPackage.FILE_REPLY__REPLY_DIR:
309: return REPLY_DIR_EDEFAULT == null ? replyDir != null
310: : !REPLY_DIR_EDEFAULT.equals(replyDir);
311: case componentflowPackage.FILE_REPLY__REPLY_CHARSET:
312: return REPLY_CHARSET_EDEFAULT == null ? replyCharset != null
313: : !REPLY_CHARSET_EDEFAULT.equals(replyCharset);
314: case componentflowPackage.FILE_REPLY__REPLY_WRITE_STYLE:
315: return replyWriteStyle != REPLY_WRITE_STYLE_EDEFAULT;
316: case componentflowPackage.FILE_REPLY__REPLY_FILE_PATTERN:
317: return REPLY_FILE_PATTERN_EDEFAULT == null ? replyFilePattern != null
318: : !REPLY_FILE_PATTERN_EDEFAULT
319: .equals(replyFilePattern);
320: }
321: return super .eIsSet(featureID);
322: }
323:
324: /**
325: * <!-- begin-user-doc -->
326: * <!-- end-user-doc -->
327: * @generated
328: */
329: public String toString() {
330: if (eIsProxy())
331: return super .toString();
332:
333: StringBuffer result = new StringBuffer(super .toString());
334: result.append(" (replyDir: ");
335: result.append(replyDir);
336: result.append(", replyCharset: ");
337: result.append(replyCharset);
338: result.append(", replyWriteStyle: ");
339: result.append(replyWriteStyle);
340: result.append(", replyFilePattern: ");
341: result.append(replyFilePattern);
342: result.append(')');
343: return result.toString();
344: }
345:
346: } //FileReplyImpl
|