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.DefaultMepType;
009: import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.ProviderCCSL;
010: import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.Upoc;
011: import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.componentflowFactory;
012:
013: import org.eclipse.emf.common.notify.Notification;
014: import org.eclipse.emf.common.notify.NotificationChain;
015:
016: import org.eclipse.emf.ecore.EClass;
017: import org.eclipse.emf.ecore.InternalEObject;
018:
019: import org.eclipse.emf.ecore.impl.ENotificationImpl;
020:
021: import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.Transformer;
022: import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.componentflowPackage;
023:
024: /**
025: * <!-- begin-user-doc -->
026: * An implementation of the model object '<em><b>Transformer</b></em>'.
027: * <!-- end-user-doc -->
028: * <p>
029: * The following features are implemented:
030: * <ul>
031: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.TransformerImpl#getTrnFile <em>Trn File</em>}</li>
032: * </ul>
033: * </p>
034: *
035: * @generated
036: */
037: public class TransformerImpl extends ServiceEngineImpl implements
038: Transformer {
039: /**
040: * <!-- begin-user-doc -->
041: * <!-- end-user-doc -->
042: * @generated
043: */
044: public static final String copyright = "Copyright, Bostech Corp.";
045:
046: /**
047: * The default value of the '{@link #getTrnFile() <em>Trn File</em>}' attribute.
048: * <!-- begin-user-doc -->
049: * <!-- end-user-doc -->
050: * @see #getTrnFile()
051: * @generated
052: * @ordered
053: */
054: protected static final String TRN_FILE_EDEFAULT = null;
055:
056: /**
057: * The cached value of the '{@link #getTrnFile() <em>Trn File</em>}' attribute.
058: * <!-- begin-user-doc -->
059: * <!-- end-user-doc -->
060: * @see #getTrnFile()
061: * @generated
062: * @ordered
063: */
064: protected String trnFile = TRN_FILE_EDEFAULT;
065:
066: /**
067: * The default value of the '{@link #getDefaultMep() <em>Default Mep</em>}' attribute.
068: * <!-- begin-user-doc -->
069: * <!-- end-user-doc -->
070: * @see #getDefaultMep()
071: * @generated not
072: * @ordered
073: */
074: protected static final DefaultMepType DEFAULT_MEP_EDEFAULT = DefaultMepType.INOUT_LITERAL;
075:
076: /**
077: * <!-- begin-user-doc -->
078: * <!-- end-user-doc -->
079: * @generated not
080: */
081: protected TransformerImpl() {
082: super ();
083:
084: }
085:
086: /**
087: * <!-- begin-user-doc -->
088: * <!-- end-user-doc -->
089: * @generated
090: */
091: protected EClass eStaticClass() {
092: return componentflowPackage.Literals.TRANSFORMER;
093: }
094:
095: /**
096: * <!-- begin-user-doc -->
097: * <!-- end-user-doc -->
098: * @generated
099: */
100: public String getTrnFile() {
101: return trnFile;
102: }
103:
104: /**
105: * <!-- begin-user-doc -->
106: * <!-- end-user-doc -->
107: * @generated
108: */
109: public void setTrnFile(String newTrnFile) {
110: String oldTrnFile = trnFile;
111: trnFile = newTrnFile;
112: if (eNotificationRequired())
113: eNotify(new ENotificationImpl(this , Notification.SET,
114: componentflowPackage.TRANSFORMER__TRN_FILE,
115: oldTrnFile, trnFile));
116: }
117:
118: /**
119: * <!-- begin-user-doc -->
120: * <!-- end-user-doc -->
121: * @generated
122: */
123: public Object eGet(int featureID, boolean resolve, boolean coreType) {
124: switch (featureID) {
125: case componentflowPackage.TRANSFORMER__TRN_FILE:
126: return getTrnFile();
127: }
128: return super .eGet(featureID, resolve, coreType);
129: }
130:
131: /**
132: * <!-- begin-user-doc -->
133: * <!-- end-user-doc -->
134: * @generated
135: */
136: public void eSet(int featureID, Object newValue) {
137: switch (featureID) {
138: case componentflowPackage.TRANSFORMER__TRN_FILE:
139: setTrnFile((String) newValue);
140: return;
141: }
142: super .eSet(featureID, newValue);
143: }
144:
145: /**
146: * <!-- begin-user-doc -->
147: * <!-- end-user-doc -->
148: * @generated
149: */
150: public void eUnset(int featureID) {
151: switch (featureID) {
152: case componentflowPackage.TRANSFORMER__TRN_FILE:
153: setTrnFile(TRN_FILE_EDEFAULT);
154: return;
155: }
156: super .eUnset(featureID);
157: }
158:
159: /**
160: * <!-- begin-user-doc -->
161: * <!-- end-user-doc -->
162: * @generated
163: */
164: public boolean eIsSet(int featureID) {
165: switch (featureID) {
166: case componentflowPackage.TRANSFORMER__TRN_FILE:
167: return TRN_FILE_EDEFAULT == null ? trnFile != null
168: : !TRN_FILE_EDEFAULT.equals(trnFile);
169: }
170: return super .eIsSet(featureID);
171: }
172:
173: /**
174: * <!-- begin-user-doc -->
175: * <!-- end-user-doc -->
176: * @generated
177: */
178: public String toString() {
179: if (eIsProxy())
180: return super .toString();
181:
182: StringBuffer result = new StringBuffer(super .toString());
183: result.append(" (trnFile: ");
184: result.append(trnFile);
185: result.append(')');
186: return result.toString();
187: }
188:
189: /**
190: * <!-- begin-user-doc -->
191: * <!-- end-user-doc -->
192: * @generated not
193: */
194: public DefaultMepType getDefaultMep() {
195: return DefaultMepType.INOUT_LITERAL;
196: }
197: } //TransformerImpl
|