EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.pcm.usagemodel.impl]

COVERAGE SUMMARY FOR SOURCE FILE [EntryLevelSystemCallImpl.java]

nameclass, %method, %block, %line, %
EntryLevelSystemCallImpl.java0%   (0/1)0%   (0/19)0%   (0/461)0%   (0/117)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class EntryLevelSystemCallImpl0%   (0/1)0%   (0/19)0%   (0/461)0%   (0/117)
<static initializer> 0%   (0/1)0%   (0/3)0%   (0/2)
EntryLevelSystemCallImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
EntryLevelSystemCallMustReferenceProvidedRoleOfASystem (DiagnosticChain, Map)... 0%   (0/1)0%   (0/62)0%   (0/17)
EntryLevelSystemCallSignatureMustMatchItsProvidedRole (DiagnosticChain, Map):... 0%   (0/1)0%   (0/62)0%   (0/17)
basicGetOperationSignature__EntryLevelSystemCall (): OperationSignature 0%   (0/1)0%   (0/3)0%   (0/1)
basicGetProvidedRole_EntryLevelSystemCall (): OperationProvidedRole 0%   (0/1)0%   (0/3)0%   (0/1)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/30)0%   (0/8)
eInverseAdd (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/22)0%   (0/4)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/22)0%   (0/4)
eIsSet (int): boolean 0%   (0/1)0%   (0/42)0%   (0/6)
eSet (int, Object): void 0%   (0/1)0%   (0/37)0%   (0/13)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/22)0%   (0/11)
getInputParameterUsages_EntryLevelSystemCall (): EList 0%   (0/1)0%   (0/15)0%   (0/3)
getOperationSignature__EntryLevelSystemCall (): OperationSignature 0%   (0/1)0%   (0/38)0%   (0/7)
getOutputParameterUsages_EntryLevelSystemCall (): EList 0%   (0/1)0%   (0/15)0%   (0/3)
getProvidedRole_EntryLevelSystemCall (): OperationProvidedRole 0%   (0/1)0%   (0/38)0%   (0/7)
setOperationSignature__EntryLevelSystemCall (OperationSignature): void 0%   (0/1)0%   (0/21)0%   (0/5)
setProvidedRole_EntryLevelSystemCall (OperationProvidedRole): void 0%   (0/1)0%   (0/21)0%   (0/5)

1/**
2 * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany
3 *
4 * $Id$
5 */
6package de.uka.ipd.sdq.pcm.usagemodel.impl;
7 
8import java.util.Collection;
9import java.util.Map;
10 
11import org.eclipse.emf.common.notify.Notification;
12import org.eclipse.emf.common.notify.NotificationChain;
13import org.eclipse.emf.common.util.BasicDiagnostic;
14import org.eclipse.emf.common.util.Diagnostic;
15import org.eclipse.emf.common.util.DiagnosticChain;
16import org.eclipse.emf.common.util.EList;
17import org.eclipse.emf.ecore.EClass;
18import org.eclipse.emf.ecore.InternalEObject;
19import org.eclipse.emf.ecore.impl.ENotificationImpl;
20import org.eclipse.emf.ecore.plugin.EcorePlugin;
21import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
22import org.eclipse.emf.ecore.util.EObjectValidator;
23import org.eclipse.emf.ecore.util.InternalEList;
24import org.eclipse.ocl.ParserException;
25import org.eclipse.ocl.ecore.Constraint;
26import org.eclipse.ocl.ecore.OCL;
27 
28import de.uka.ipd.sdq.pcm.parameter.ParameterPackage;
29import de.uka.ipd.sdq.pcm.parameter.VariableUsage;
30import de.uka.ipd.sdq.pcm.repository.OperationProvidedRole;
31import de.uka.ipd.sdq.pcm.repository.OperationSignature;
32import de.uka.ipd.sdq.pcm.usagemodel.EntryLevelSystemCall;
33import de.uka.ipd.sdq.pcm.usagemodel.UsagemodelPackage;
34import de.uka.ipd.sdq.pcm.usagemodel.util.UsagemodelValidator;
35 
36/**
37 * <!-- begin-user-doc -->
38 * An implementation of the model object '<em><b>Entry Level System Call</b></em>'.
39 * <!-- end-user-doc -->
40 * <p>
41 * The following features are implemented:
42 * <ul>
43 *   <li>{@link de.uka.ipd.sdq.pcm.usagemodel.impl.EntryLevelSystemCallImpl#getProvidedRole_EntryLevelSystemCall <em>Provided Role Entry Level System Call</em>}</li>
44 *   <li>{@link de.uka.ipd.sdq.pcm.usagemodel.impl.EntryLevelSystemCallImpl#getOperationSignature__EntryLevelSystemCall <em>Operation Signature Entry Level System Call</em>}</li>
45 *   <li>{@link de.uka.ipd.sdq.pcm.usagemodel.impl.EntryLevelSystemCallImpl#getOutputParameterUsages_EntryLevelSystemCall <em>Output Parameter Usages Entry Level System Call</em>}</li>
46 *   <li>{@link de.uka.ipd.sdq.pcm.usagemodel.impl.EntryLevelSystemCallImpl#getInputParameterUsages_EntryLevelSystemCall <em>Input Parameter Usages Entry Level System Call</em>}</li>
47 * </ul>
48 * </p>
49 *
50 * @generated
51 */
52public class EntryLevelSystemCallImpl extends AbstractUserActionImpl implements EntryLevelSystemCall {
53        /**
54         * <!-- begin-user-doc -->
55         * <!-- end-user-doc -->
56         * @generated
57         */
58        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
59 
60        /**
61         * The cached value of the '{@link #getProvidedRole_EntryLevelSystemCall() <em>Provided Role Entry Level System Call</em>}' reference.
62         * <!-- begin-user-doc -->
63         * <!-- end-user-doc -->
64         * @see #getProvidedRole_EntryLevelSystemCall()
65         * @generated
66         * @ordered
67         */
68        protected OperationProvidedRole providedRole_EntryLevelSystemCall;
69 
70        /**
71         * The cached value of the '{@link #getOperationSignature__EntryLevelSystemCall() <em>Operation Signature Entry Level System Call</em>}' reference.
72         * <!-- begin-user-doc -->
73         * <!-- end-user-doc -->
74         * @see #getOperationSignature__EntryLevelSystemCall()
75         * @generated
76         * @ordered
77         */
78        protected OperationSignature operationSignature__EntryLevelSystemCall;
79 
80        /**
81         * The cached value of the '{@link #getOutputParameterUsages_EntryLevelSystemCall() <em>Output Parameter Usages Entry Level System Call</em>}' containment reference list.
82         * <!-- begin-user-doc -->
83         * <!-- end-user-doc -->
84         * @see #getOutputParameterUsages_EntryLevelSystemCall()
85         * @generated
86         * @ordered
87         */
88        protected EList<VariableUsage> outputParameterUsages_EntryLevelSystemCall;
89 
90        /**
91         * The cached value of the '{@link #getInputParameterUsages_EntryLevelSystemCall() <em>Input Parameter Usages Entry Level System Call</em>}' containment reference list.
92         * <!-- begin-user-doc -->
93         * <!-- end-user-doc -->
94         * @see #getInputParameterUsages_EntryLevelSystemCall()
95         * @generated
96         * @ordered
97         */
98        protected EList<VariableUsage> inputParameterUsages_EntryLevelSystemCall;
99 
100        /**
101         * <!-- begin-user-doc -->
102         * <!-- end-user-doc -->
103         * @generated
104         */
105        protected EntryLevelSystemCallImpl() {
106                super();
107        }
108 
109        /**
110         * <!-- begin-user-doc -->
111         * <!-- end-user-doc -->
112         * @generated
113         */
114        @Override
115        protected EClass eStaticClass() {
116                return UsagemodelPackage.Literals.ENTRY_LEVEL_SYSTEM_CALL;
117        }
118 
119        /**
120         * <!-- begin-user-doc -->
121         * <!-- end-user-doc -->
122         * @generated
123         */
124        public EList<VariableUsage> getInputParameterUsages_EntryLevelSystemCall() {
125                if (inputParameterUsages_EntryLevelSystemCall == null) {
126                        inputParameterUsages_EntryLevelSystemCall = new EObjectContainmentWithInverseEList<VariableUsage>(VariableUsage.class, this, UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__INPUT_PARAMETER_USAGES_ENTRY_LEVEL_SYSTEM_CALL, ParameterPackage.VARIABLE_USAGE__ENTRY_LEVEL_SYSTEM_CALL_INPUT_PARAMETER_USAGE);
127                }
128                return inputParameterUsages_EntryLevelSystemCall;
129        }
130 
131        /**
132         * The cached OCL expression body for the '{@link #EntryLevelSystemCallMustReferenceProvidedRoleOfASystem(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Entry Level System Call Must Reference Provided Role Of ASystem</em>}' operation.
133         * <!-- begin-user-doc -->
134         * <!-- end-user-doc -->
135         * @see #EntryLevelSystemCallMustReferenceProvidedRoleOfASystem(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
136         * @generated
137         * @ordered
138         */
139        protected static final String ENTRY_LEVEL_SYSTEM_CALL_MUST_REFERENCE_PROVIDED_ROLE_OF_ASYSTEM__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP = "self.providedRole_EntryLevelSystemCall.providingEntity_ProvidedRole.oclIsTypeOf(pcm::system::System)";
140 
141        /**
142         * The cached OCL invariant for the '{@link #EntryLevelSystemCallMustReferenceProvidedRoleOfASystem(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Entry Level System Call Must Reference Provided Role Of ASystem</em>}' invariant operation.
143         * <!-- begin-user-doc -->
144         * <!-- end-user-doc -->
145         * @see #EntryLevelSystemCallMustReferenceProvidedRoleOfASystem(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
146         * @generated
147         * @ordered
148         */
149        protected static Constraint ENTRY_LEVEL_SYSTEM_CALL_MUST_REFERENCE_PROVIDED_ROLE_OF_ASYSTEM__DIAGNOSTIC_CHAIN_MAP__EOCL_INV;
150 
151        /**
152         * <!-- begin-user-doc -->
153         * <!-- end-user-doc -->
154         * @generated
155         */
156        public boolean EntryLevelSystemCallMustReferenceProvidedRoleOfASystem(DiagnosticChain diagnostics, Map<Object, Object> context) {
157                if (ENTRY_LEVEL_SYSTEM_CALL_MUST_REFERENCE_PROVIDED_ROLE_OF_ASYSTEM__DIAGNOSTIC_CHAIN_MAP__EOCL_INV == null) {
158                        OCL.Helper helper = EOCL_ENV.createOCLHelper();
159                        helper.setContext(UsagemodelPackage.Literals.ENTRY_LEVEL_SYSTEM_CALL);
160                        try {
161                                ENTRY_LEVEL_SYSTEM_CALL_MUST_REFERENCE_PROVIDED_ROLE_OF_ASYSTEM__DIAGNOSTIC_CHAIN_MAP__EOCL_INV = helper.createInvariant(ENTRY_LEVEL_SYSTEM_CALL_MUST_REFERENCE_PROVIDED_ROLE_OF_ASYSTEM__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP);
162                        }
163                        catch (ParserException pe) {
164                                throw new UnsupportedOperationException(pe.getLocalizedMessage());
165                        }
166                }
167                if (!EOCL_ENV.createQuery(ENTRY_LEVEL_SYSTEM_CALL_MUST_REFERENCE_PROVIDED_ROLE_OF_ASYSTEM__DIAGNOSTIC_CHAIN_MAP__EOCL_INV).check(this)) {
168                        if (diagnostics != null) {
169                                diagnostics.add
170                                        (new BasicDiagnostic
171                                                (Diagnostic.ERROR,
172                                                 UsagemodelValidator.DIAGNOSTIC_SOURCE,
173                                                 UsagemodelValidator.ENTRY_LEVEL_SYSTEM_CALL__ENTRY_LEVEL_SYSTEM_CALL_MUST_REFERENCE_PROVIDED_ROLE_OF_ASYSTEM,
174                                                 EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { "EntryLevelSystemCallMustReferenceProvidedRoleOfASystem", EObjectValidator.getObjectLabel(this, context) }),
175                                                 new Object [] { this }));
176                        }
177                        return false;
178                }
179                return true;
180        }
181 
182        /**
183         * The cached OCL expression body for the '{@link #EntryLevelSystemCallSignatureMustMatchItsProvidedRole(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Entry Level System Call Signature Must Match Its Provided Role</em>}' operation.
184         * <!-- begin-user-doc -->
185         * <!-- end-user-doc -->
186         * @see #EntryLevelSystemCallSignatureMustMatchItsProvidedRole(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
187         * @generated
188         * @ordered
189         */
190        protected static final String ENTRY_LEVEL_SYSTEM_CALL_SIGNATURE_MUST_MATCH_ITS_PROVIDED_ROLE__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP = "self.providedRole_EntryLevelSystemCall.providedInterface__OperationProvidedRole.signatures__OperationInterface->includes(self.operationSignature__EntryLevelSystemCall)";
191 
192        /**
193         * The cached OCL invariant for the '{@link #EntryLevelSystemCallSignatureMustMatchItsProvidedRole(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Entry Level System Call Signature Must Match Its Provided Role</em>}' invariant operation.
194         * <!-- begin-user-doc -->
195         * <!-- end-user-doc -->
196         * @see #EntryLevelSystemCallSignatureMustMatchItsProvidedRole(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
197         * @generated
198         * @ordered
199         */
200        protected static Constraint ENTRY_LEVEL_SYSTEM_CALL_SIGNATURE_MUST_MATCH_ITS_PROVIDED_ROLE__DIAGNOSTIC_CHAIN_MAP__EOCL_INV;
201 
202        /**
203         * <!-- begin-user-doc -->
204         * <!-- end-user-doc -->
205         * @generated
206         */
207        public boolean EntryLevelSystemCallSignatureMustMatchItsProvidedRole(DiagnosticChain diagnostics, Map<Object, Object> context) {
208                if (ENTRY_LEVEL_SYSTEM_CALL_SIGNATURE_MUST_MATCH_ITS_PROVIDED_ROLE__DIAGNOSTIC_CHAIN_MAP__EOCL_INV == null) {
209                        OCL.Helper helper = EOCL_ENV.createOCLHelper();
210                        helper.setContext(UsagemodelPackage.Literals.ENTRY_LEVEL_SYSTEM_CALL);
211                        try {
212                                ENTRY_LEVEL_SYSTEM_CALL_SIGNATURE_MUST_MATCH_ITS_PROVIDED_ROLE__DIAGNOSTIC_CHAIN_MAP__EOCL_INV = helper.createInvariant(ENTRY_LEVEL_SYSTEM_CALL_SIGNATURE_MUST_MATCH_ITS_PROVIDED_ROLE__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP);
213                        }
214                        catch (ParserException pe) {
215                                throw new UnsupportedOperationException(pe.getLocalizedMessage());
216                        }
217                }
218                if (!EOCL_ENV.createQuery(ENTRY_LEVEL_SYSTEM_CALL_SIGNATURE_MUST_MATCH_ITS_PROVIDED_ROLE__DIAGNOSTIC_CHAIN_MAP__EOCL_INV).check(this)) {
219                        if (diagnostics != null) {
220                                diagnostics.add
221                                        (new BasicDiagnostic
222                                                (Diagnostic.ERROR,
223                                                 UsagemodelValidator.DIAGNOSTIC_SOURCE,
224                                                 UsagemodelValidator.ENTRY_LEVEL_SYSTEM_CALL__ENTRY_LEVEL_SYSTEM_CALL_SIGNATURE_MUST_MATCH_ITS_PROVIDED_ROLE,
225                                                 EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { "EntryLevelSystemCallSignatureMustMatchItsProvidedRole", EObjectValidator.getObjectLabel(this, context) }),
226                                                 new Object [] { this }));
227                        }
228                        return false;
229                }
230                return true;
231        }
232 
233        /**
234         * <!-- begin-user-doc -->
235         * <!-- end-user-doc -->
236         * @generated
237         */
238        public OperationProvidedRole getProvidedRole_EntryLevelSystemCall() {
239                if (providedRole_EntryLevelSystemCall != null && providedRole_EntryLevelSystemCall.eIsProxy()) {
240                        InternalEObject oldProvidedRole_EntryLevelSystemCall = (InternalEObject)providedRole_EntryLevelSystemCall;
241                        providedRole_EntryLevelSystemCall = (OperationProvidedRole)eResolveProxy(oldProvidedRole_EntryLevelSystemCall);
242                        if (providedRole_EntryLevelSystemCall != oldProvidedRole_EntryLevelSystemCall) {
243                                if (eNotificationRequired())
244                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__PROVIDED_ROLE_ENTRY_LEVEL_SYSTEM_CALL, oldProvidedRole_EntryLevelSystemCall, providedRole_EntryLevelSystemCall));
245                        }
246                }
247                return providedRole_EntryLevelSystemCall;
248        }
249 
250        /**
251         * <!-- begin-user-doc -->
252         * <!-- end-user-doc -->
253         * @generated
254         */
255        public OperationProvidedRole basicGetProvidedRole_EntryLevelSystemCall() {
256                return providedRole_EntryLevelSystemCall;
257        }
258 
259        /**
260         * <!-- begin-user-doc -->
261         * <!-- end-user-doc -->
262         * @generated
263         */
264        public void setProvidedRole_EntryLevelSystemCall(OperationProvidedRole newProvidedRole_EntryLevelSystemCall) {
265                OperationProvidedRole oldProvidedRole_EntryLevelSystemCall = providedRole_EntryLevelSystemCall;
266                providedRole_EntryLevelSystemCall = newProvidedRole_EntryLevelSystemCall;
267                if (eNotificationRequired())
268                        eNotify(new ENotificationImpl(this, Notification.SET, UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__PROVIDED_ROLE_ENTRY_LEVEL_SYSTEM_CALL, oldProvidedRole_EntryLevelSystemCall, providedRole_EntryLevelSystemCall));
269        }
270 
271        /**
272         * <!-- begin-user-doc -->
273         * <!-- end-user-doc -->
274         * @generated
275         */
276        public OperationSignature getOperationSignature__EntryLevelSystemCall() {
277                if (operationSignature__EntryLevelSystemCall != null && operationSignature__EntryLevelSystemCall.eIsProxy()) {
278                        InternalEObject oldOperationSignature__EntryLevelSystemCall = (InternalEObject)operationSignature__EntryLevelSystemCall;
279                        operationSignature__EntryLevelSystemCall = (OperationSignature)eResolveProxy(oldOperationSignature__EntryLevelSystemCall);
280                        if (operationSignature__EntryLevelSystemCall != oldOperationSignature__EntryLevelSystemCall) {
281                                if (eNotificationRequired())
282                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__OPERATION_SIGNATURE_ENTRY_LEVEL_SYSTEM_CALL, oldOperationSignature__EntryLevelSystemCall, operationSignature__EntryLevelSystemCall));
283                        }
284                }
285                return operationSignature__EntryLevelSystemCall;
286        }
287 
288        /**
289         * <!-- begin-user-doc -->
290         * <!-- end-user-doc -->
291         * @generated
292         */
293        public OperationSignature basicGetOperationSignature__EntryLevelSystemCall() {
294                return operationSignature__EntryLevelSystemCall;
295        }
296 
297        /**
298         * <!-- begin-user-doc -->
299         * <!-- end-user-doc -->
300         * @generated
301         */
302        public void setOperationSignature__EntryLevelSystemCall(OperationSignature newOperationSignature__EntryLevelSystemCall) {
303                OperationSignature oldOperationSignature__EntryLevelSystemCall = operationSignature__EntryLevelSystemCall;
304                operationSignature__EntryLevelSystemCall = newOperationSignature__EntryLevelSystemCall;
305                if (eNotificationRequired())
306                        eNotify(new ENotificationImpl(this, Notification.SET, UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__OPERATION_SIGNATURE_ENTRY_LEVEL_SYSTEM_CALL, oldOperationSignature__EntryLevelSystemCall, operationSignature__EntryLevelSystemCall));
307        }
308 
309        /**
310         * <!-- begin-user-doc -->
311         * <!-- end-user-doc -->
312         * @generated
313         */
314        public EList<VariableUsage> getOutputParameterUsages_EntryLevelSystemCall() {
315                if (outputParameterUsages_EntryLevelSystemCall == null) {
316                        outputParameterUsages_EntryLevelSystemCall = new EObjectContainmentWithInverseEList<VariableUsage>(VariableUsage.class, this, UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__OUTPUT_PARAMETER_USAGES_ENTRY_LEVEL_SYSTEM_CALL, ParameterPackage.VARIABLE_USAGE__ENTRY_LEVEL_SYSTEM_CALL_OUTPUT_PARAMETER_USAGE);
317                }
318                return outputParameterUsages_EntryLevelSystemCall;
319        }
320 
321        /**
322         * <!-- begin-user-doc -->
323         * <!-- end-user-doc -->
324         * @generated
325         */
326        @SuppressWarnings("unchecked")
327        @Override
328        public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
329                switch (featureID) {
330                        case UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__OUTPUT_PARAMETER_USAGES_ENTRY_LEVEL_SYSTEM_CALL:
331                                return ((InternalEList<InternalEObject>)(InternalEList<?>)getOutputParameterUsages_EntryLevelSystemCall()).basicAdd(otherEnd, msgs);
332                        case UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__INPUT_PARAMETER_USAGES_ENTRY_LEVEL_SYSTEM_CALL:
333                                return ((InternalEList<InternalEObject>)(InternalEList<?>)getInputParameterUsages_EntryLevelSystemCall()).basicAdd(otherEnd, msgs);
334                }
335                return super.eInverseAdd(otherEnd, featureID, msgs);
336        }
337 
338        /**
339         * <!-- begin-user-doc -->
340         * <!-- end-user-doc -->
341         * @generated
342         */
343        @Override
344        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
345                switch (featureID) {
346                        case UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__OUTPUT_PARAMETER_USAGES_ENTRY_LEVEL_SYSTEM_CALL:
347                                return ((InternalEList<?>)getOutputParameterUsages_EntryLevelSystemCall()).basicRemove(otherEnd, msgs);
348                        case UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__INPUT_PARAMETER_USAGES_ENTRY_LEVEL_SYSTEM_CALL:
349                                return ((InternalEList<?>)getInputParameterUsages_EntryLevelSystemCall()).basicRemove(otherEnd, msgs);
350                }
351                return super.eInverseRemove(otherEnd, featureID, msgs);
352        }
353 
354        /**
355         * <!-- begin-user-doc -->
356         * <!-- end-user-doc -->
357         * @generated
358         */
359        @Override
360        public Object eGet(int featureID, boolean resolve, boolean coreType) {
361                switch (featureID) {
362                        case UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__PROVIDED_ROLE_ENTRY_LEVEL_SYSTEM_CALL:
363                                if (resolve) return getProvidedRole_EntryLevelSystemCall();
364                                return basicGetProvidedRole_EntryLevelSystemCall();
365                        case UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__OPERATION_SIGNATURE_ENTRY_LEVEL_SYSTEM_CALL:
366                                if (resolve) return getOperationSignature__EntryLevelSystemCall();
367                                return basicGetOperationSignature__EntryLevelSystemCall();
368                        case UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__OUTPUT_PARAMETER_USAGES_ENTRY_LEVEL_SYSTEM_CALL:
369                                return getOutputParameterUsages_EntryLevelSystemCall();
370                        case UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__INPUT_PARAMETER_USAGES_ENTRY_LEVEL_SYSTEM_CALL:
371                                return getInputParameterUsages_EntryLevelSystemCall();
372                }
373                return super.eGet(featureID, resolve, coreType);
374        }
375 
376        /**
377         * <!-- begin-user-doc -->
378         * <!-- end-user-doc -->
379         * @generated
380         */
381        @SuppressWarnings("unchecked")
382        @Override
383        public void eSet(int featureID, Object newValue) {
384                switch (featureID) {
385                        case UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__PROVIDED_ROLE_ENTRY_LEVEL_SYSTEM_CALL:
386                                setProvidedRole_EntryLevelSystemCall((OperationProvidedRole)newValue);
387                                return;
388                        case UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__OPERATION_SIGNATURE_ENTRY_LEVEL_SYSTEM_CALL:
389                                setOperationSignature__EntryLevelSystemCall((OperationSignature)newValue);
390                                return;
391                        case UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__OUTPUT_PARAMETER_USAGES_ENTRY_LEVEL_SYSTEM_CALL:
392                                getOutputParameterUsages_EntryLevelSystemCall().clear();
393                                getOutputParameterUsages_EntryLevelSystemCall().addAll((Collection<? extends VariableUsage>)newValue);
394                                return;
395                        case UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__INPUT_PARAMETER_USAGES_ENTRY_LEVEL_SYSTEM_CALL:
396                                getInputParameterUsages_EntryLevelSystemCall().clear();
397                                getInputParameterUsages_EntryLevelSystemCall().addAll((Collection<? extends VariableUsage>)newValue);
398                                return;
399                }
400                super.eSet(featureID, newValue);
401        }
402 
403        /**
404         * <!-- begin-user-doc -->
405         * <!-- end-user-doc -->
406         * @generated
407         */
408        @Override
409        public void eUnset(int featureID) {
410                switch (featureID) {
411                        case UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__PROVIDED_ROLE_ENTRY_LEVEL_SYSTEM_CALL:
412                                setProvidedRole_EntryLevelSystemCall((OperationProvidedRole)null);
413                                return;
414                        case UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__OPERATION_SIGNATURE_ENTRY_LEVEL_SYSTEM_CALL:
415                                setOperationSignature__EntryLevelSystemCall((OperationSignature)null);
416                                return;
417                        case UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__OUTPUT_PARAMETER_USAGES_ENTRY_LEVEL_SYSTEM_CALL:
418                                getOutputParameterUsages_EntryLevelSystemCall().clear();
419                                return;
420                        case UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__INPUT_PARAMETER_USAGES_ENTRY_LEVEL_SYSTEM_CALL:
421                                getInputParameterUsages_EntryLevelSystemCall().clear();
422                                return;
423                }
424                super.eUnset(featureID);
425        }
426 
427        /**
428         * <!-- begin-user-doc -->
429         * <!-- end-user-doc -->
430         * @generated
431         */
432        @Override
433        public boolean eIsSet(int featureID) {
434                switch (featureID) {
435                        case UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__PROVIDED_ROLE_ENTRY_LEVEL_SYSTEM_CALL:
436                                return providedRole_EntryLevelSystemCall != null;
437                        case UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__OPERATION_SIGNATURE_ENTRY_LEVEL_SYSTEM_CALL:
438                                return operationSignature__EntryLevelSystemCall != null;
439                        case UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__OUTPUT_PARAMETER_USAGES_ENTRY_LEVEL_SYSTEM_CALL:
440                                return outputParameterUsages_EntryLevelSystemCall != null && !outputParameterUsages_EntryLevelSystemCall.isEmpty();
441                        case UsagemodelPackage.ENTRY_LEVEL_SYSTEM_CALL__INPUT_PARAMETER_USAGES_ENTRY_LEVEL_SYSTEM_CALL:
442                                return inputParameterUsages_EntryLevelSystemCall != null && !inputParameterUsages_EntryLevelSystemCall.isEmpty();
443                }
444                return super.eIsSet(featureID);
445        }
446 
447        /**
448         * The cached environment for evaluating OCL expressions.
449         * <!-- begin-user-doc -->
450         * <!-- end-user-doc -->
451         * @generated
452         * @ordered
453         */
454        protected static final OCL EOCL_ENV = OCL.newInstance();
455 
456} //EntryLevelSystemCallImpl

[all classes][de.uka.ipd.sdq.pcm.usagemodel.impl]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov