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.XSLT;
022: import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.componentflowPackage;
023:
024: /**
025: * <!-- begin-user-doc -->
026: * An implementation of the model object '<em><b>XSLT</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.XSLTImpl#getXSLTStyleSheet <em>XSLT Style Sheet</em>}</li>
032: * </ul>
033: * </p>
034: *
035: * @generated
036: */
037: public class XSLTImpl extends ServiceEngineImpl implements XSLT {
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 #getXSLTStyleSheet() <em>XSLT Style Sheet</em>}' attribute.
047: * <!-- begin-user-doc -->
048: * <!-- end-user-doc -->
049: * @see #getXSLTStyleSheet()
050: * @generated
051: * @ordered
052: */
053: protected static final String XSLT_STYLE_SHEET_EDEFAULT = null;
054:
055: /**
056: * The cached value of the '{@link #getXSLTStyleSheet() <em>XSLT Style Sheet</em>}' attribute.
057: * <!-- begin-user-doc -->
058: * <!-- end-user-doc -->
059: * @see #getXSLTStyleSheet()
060: * @generated
061: * @ordered
062: */
063: protected String xSLTStyleSheet = XSLT_STYLE_SHEET_EDEFAULT;
064:
065: /**
066: * The default value of the '{@link #getDefaultMep() <em>Default Mep</em>}' attribute.
067: * <!-- begin-user-doc -->
068: * <!-- end-user-doc -->
069: * @see #getDefaultMep()
070: * @generated not
071: * @ordered
072: */
073: protected static final DefaultMepType DEFAULT_MEP_EDEFAULT = DefaultMepType.INOUT_LITERAL;
074:
075: /**
076: * <!-- begin-user-doc -->
077: * <!-- end-user-doc -->
078: * @generated not
079: */
080: protected XSLTImpl() {
081: super ();
082:
083: }
084:
085: /**
086: * <!-- begin-user-doc -->
087: * <!-- end-user-doc -->
088: * @generated not
089: */
090: protected EClass eStaticClass() {
091: return componentflowPackage.Literals.XSLT;
092: }
093:
094: /**
095: * <!-- begin-user-doc -->
096: * <!-- end-user-doc -->
097: * @generated
098: */
099: public String getXSLTStyleSheet() {
100: return xSLTStyleSheet;
101: }
102:
103: /**
104: * <!-- begin-user-doc -->
105: * <!-- end-user-doc -->
106: * @generated
107: */
108: public void setXSLTStyleSheet(String newXSLTStyleSheet) {
109: String oldXSLTStyleSheet = xSLTStyleSheet;
110: xSLTStyleSheet = newXSLTStyleSheet;
111: if (eNotificationRequired())
112: eNotify(new ENotificationImpl(this , Notification.SET,
113: componentflowPackage.XSLT__XSLT_STYLE_SHEET,
114: oldXSLTStyleSheet, xSLTStyleSheet));
115: }
116:
117: /**
118: * <!-- begin-user-doc -->
119: * <!-- end-user-doc -->
120: * @generated
121: */
122: public Object eGet(int featureID, boolean resolve, boolean coreType) {
123: switch (featureID) {
124: case componentflowPackage.XSLT__XSLT_STYLE_SHEET:
125: return getXSLTStyleSheet();
126: }
127: return super .eGet(featureID, resolve, coreType);
128: }
129:
130: /**
131: * <!-- begin-user-doc -->
132: * <!-- end-user-doc -->
133: * @generated
134: */
135: public void eSet(int featureID, Object newValue) {
136: switch (featureID) {
137: case componentflowPackage.XSLT__XSLT_STYLE_SHEET:
138: setXSLTStyleSheet((String) newValue);
139: return;
140: }
141: super .eSet(featureID, newValue);
142: }
143:
144: /**
145: * <!-- begin-user-doc -->
146: * <!-- end-user-doc -->
147: * @generated
148: */
149: public void eUnset(int featureID) {
150: switch (featureID) {
151: case componentflowPackage.XSLT__XSLT_STYLE_SHEET:
152: setXSLTStyleSheet(XSLT_STYLE_SHEET_EDEFAULT);
153: return;
154: }
155: super .eUnset(featureID);
156: }
157:
158: /**
159: * <!-- begin-user-doc -->
160: * <!-- end-user-doc -->
161: * @generated
162: */
163: public boolean eIsSet(int featureID) {
164: switch (featureID) {
165: case componentflowPackage.XSLT__XSLT_STYLE_SHEET:
166: return XSLT_STYLE_SHEET_EDEFAULT == null ? xSLTStyleSheet != null
167: : !XSLT_STYLE_SHEET_EDEFAULT.equals(xSLTStyleSheet);
168: }
169: return super .eIsSet(featureID);
170: }
171:
172: /**
173: * <!-- begin-user-doc -->
174: * <!-- end-user-doc -->
175: * @generated
176: */
177: public String toString() {
178: if (eIsProxy())
179: return super .toString();
180:
181: StringBuffer result = new StringBuffer(super .toString());
182: result.append(" (xSLTStyleSheet: ");
183: result.append(xSLTStyleSheet);
184: result.append(')');
185: return result.toString();
186: }
187:
188: /**
189: * <!-- begin-user-doc -->
190: * <!-- end-user-doc -->
191: * @generated not
192: */
193: public DefaultMepType getDefaultMep() {
194: return DefaultMepType.INOUT_LITERAL;
195: }
196: } //XSLTImpl
|