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

COVERAGE SUMMARY FOR SOURCE FILE [ParameterImpl.java]

nameclass, %method, %block, %line, %
ParameterImpl.java0%   (0/1)0%   (0/30)0%   (0/823)0%   (0/188)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ParameterImpl0%   (0/1)0%   (0/30)0%   (0/823)0%   (0/188)
<static initializer> 0%   (0/1)0%   (0/5)0%   (0/3)
ParameterImpl (): void 0%   (0/1)0%   (0/9)0%   (0/4)
basicGetDataType__Parameter (): DataType 0%   (0/1)0%   (0/3)0%   (0/1)
basicSetEventType__Parameter (EventType, NotificationChain): NotificationChain 0%   (0/1)0%   (0/9)0%   (0/2)
basicSetInfrastructureSignature__Parameter (InfrastructureSignature, Notifica... 0%   (0/1)0%   (0/9)0%   (0/2)
basicSetOperationSignature__Parameter (OperationSignature, NotificationChain)... 0%   (0/1)0%   (0/9)0%   (0/2)
basicSetResourceSignature__Parameter (ResourceSignature, NotificationChain): ... 0%   (0/1)0%   (0/9)0%   (0/2)
eBasicRemoveFromContainerFeature (NotificationChain): NotificationChain 0%   (0/1)0%   (0/39)0%   (0/6)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/34)0%   (0/10)
eInverseAdd (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/60)0%   (0/14)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/28)0%   (0/6)
eIsSet (int): boolean 0%   (0/1)0%   (0/67)0%   (0/9)
eSet (int, Object): void 0%   (0/1)0%   (0/42)0%   (0/17)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/34)0%   (0/17)
getDataType__Parameter (): DataType 0%   (0/1)0%   (0/38)0%   (0/7)
getEventType__Parameter (): EventType 0%   (0/1)0%   (0/10)0%   (0/2)
getInfrastructureSignature__Parameter (): InfrastructureSignature 0%   (0/1)0%   (0/10)0%   (0/2)
getModifier__Parameter (): ParameterModifier 0%   (0/1)0%   (0/3)0%   (0/1)
getOperationSignature__Parameter (): OperationSignature 0%   (0/1)0%   (0/10)0%   (0/2)
getParameterName (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getResourceSignature__Parameter (): ResourceSignature 0%   (0/1)0%   (0/10)0%   (0/2)
setDataType__Parameter (DataType): void 0%   (0/1)0%   (0/21)0%   (0/5)
setEventType__Parameter (EventType): void 0%   (0/1)0%   (0/69)0%   (0/13)
setInfrastructureSignature__Parameter (InfrastructureSignature): void 0%   (0/1)0%   (0/69)0%   (0/13)
setModifier__Parameter (ParameterModifier): void 0%   (0/1)0%   (0/25)0%   (0/5)
setOperationSignature__Parameter (OperationSignature): void 0%   (0/1)0%   (0/69)0%   (0/13)
setParameterName (String): void 0%   (0/1)0%   (0/21)0%   (0/5)
setResourceSignature__Parameter (ResourceSignature): void 0%   (0/1)0%   (0/69)0%   (0/13)
toString (): String 0%   (0/1)0%   (0/37)0%   (0/8)

1/**
2 * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany
3 *
4 * $Id$
5 */
6package de.uka.ipd.sdq.pcm.repository.impl;
7 
8import org.eclipse.emf.common.notify.Notification;
9import org.eclipse.emf.common.notify.NotificationChain;
10import org.eclipse.emf.ecore.EClass;
11import org.eclipse.emf.ecore.InternalEObject;
12import org.eclipse.emf.ecore.impl.ENotificationImpl;
13import org.eclipse.emf.ecore.impl.EObjectImpl;
14import org.eclipse.emf.ecore.util.EcoreUtil;
15 
16import de.uka.ipd.sdq.pcm.repository.DataType;
17import de.uka.ipd.sdq.pcm.repository.EventType;
18import de.uka.ipd.sdq.pcm.repository.InfrastructureSignature;
19import de.uka.ipd.sdq.pcm.repository.OperationSignature;
20import de.uka.ipd.sdq.pcm.repository.Parameter;
21import de.uka.ipd.sdq.pcm.repository.ParameterModifier;
22import de.uka.ipd.sdq.pcm.repository.RepositoryPackage;
23import de.uka.ipd.sdq.pcm.resourcetype.ResourceSignature;
24import de.uka.ipd.sdq.pcm.resourcetype.ResourcetypePackage;
25 
26/**
27 * <!-- begin-user-doc -->
28 * An implementation of the model object '<em><b>Parameter</b></em>'.
29 * <!-- end-user-doc -->
30 * <p>
31 * The following features are implemented:
32 * <ul>
33 *   <li>{@link de.uka.ipd.sdq.pcm.repository.impl.ParameterImpl#getDataType__Parameter <em>Data Type Parameter</em>}</li>
34 *   <li>{@link de.uka.ipd.sdq.pcm.repository.impl.ParameterImpl#getInfrastructureSignature__Parameter <em>Infrastructure Signature Parameter</em>}</li>
35 *   <li>{@link de.uka.ipd.sdq.pcm.repository.impl.ParameterImpl#getOperationSignature__Parameter <em>Operation Signature Parameter</em>}</li>
36 *   <li>{@link de.uka.ipd.sdq.pcm.repository.impl.ParameterImpl#getEventType__Parameter <em>Event Type Parameter</em>}</li>
37 *   <li>{@link de.uka.ipd.sdq.pcm.repository.impl.ParameterImpl#getParameterName <em>Parameter Name</em>}</li>
38 *   <li>{@link de.uka.ipd.sdq.pcm.repository.impl.ParameterImpl#getModifier__Parameter <em>Modifier Parameter</em>}</li>
39 *   <li>{@link de.uka.ipd.sdq.pcm.repository.impl.ParameterImpl#getResourceSignature__Parameter <em>Resource Signature Parameter</em>}</li>
40 * </ul>
41 * </p>
42 *
43 * @generated
44 */
45public class ParameterImpl extends EObjectImpl implements Parameter {
46        /**
47         * <!-- begin-user-doc -->
48         * <!-- end-user-doc -->
49         * @generated
50         */
51        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
52 
53        /**
54         * The cached value of the '{@link #getDataType__Parameter() <em>Data Type Parameter</em>}' reference.
55         * <!-- begin-user-doc -->
56         * <!-- end-user-doc -->
57         * @see #getDataType__Parameter()
58         * @generated
59         * @ordered
60         */
61        protected DataType dataType__Parameter;
62 
63        /**
64         * The default value of the '{@link #getParameterName() <em>Parameter Name</em>}' attribute.
65         * <!-- begin-user-doc -->
66         * <!-- end-user-doc -->
67         * @see #getParameterName()
68         * @generated
69         * @ordered
70         */
71        protected static final String PARAMETER_NAME_EDEFAULT = null;
72 
73        /**
74         * The cached value of the '{@link #getParameterName() <em>Parameter Name</em>}' attribute.
75         * <!-- begin-user-doc -->
76         * <!-- end-user-doc -->
77         * @see #getParameterName()
78         * @generated
79         * @ordered
80         */
81        protected String parameterName = PARAMETER_NAME_EDEFAULT;
82 
83        /**
84         * The default value of the '{@link #getModifier__Parameter() <em>Modifier Parameter</em>}' attribute.
85         * <!-- begin-user-doc -->
86         * <!-- end-user-doc -->
87         * @see #getModifier__Parameter()
88         * @generated
89         * @ordered
90         */
91        protected static final ParameterModifier MODIFIER_PARAMETER_EDEFAULT = ParameterModifier.NONE;
92 
93        /**
94         * The cached value of the '{@link #getModifier__Parameter() <em>Modifier Parameter</em>}' attribute.
95         * <!-- begin-user-doc -->
96         * <!-- end-user-doc -->
97         * @see #getModifier__Parameter()
98         * @generated
99         * @ordered
100         */
101        protected ParameterModifier modifier__Parameter = MODIFIER_PARAMETER_EDEFAULT;
102 
103        /**
104         * <!-- begin-user-doc -->
105         * <!-- end-user-doc -->
106         * @generated
107         */
108        protected ParameterImpl() {
109                super();
110        }
111 
112        /**
113         * <!-- begin-user-doc -->
114         * <!-- end-user-doc -->
115         * @generated
116         */
117        @Override
118        protected EClass eStaticClass() {
119                return RepositoryPackage.Literals.PARAMETER;
120        }
121 
122        /**
123         * <!-- begin-user-doc -->
124         * <!-- end-user-doc -->
125         * @generated
126         */
127        public String getParameterName() {
128                return parameterName;
129        }
130 
131        /**
132         * <!-- begin-user-doc -->
133         * <!-- end-user-doc -->
134         * @generated
135         */
136        public void setParameterName(String newParameterName) {
137                String oldParameterName = parameterName;
138                parameterName = newParameterName;
139                if (eNotificationRequired())
140                        eNotify(new ENotificationImpl(this, Notification.SET, RepositoryPackage.PARAMETER__PARAMETER_NAME, oldParameterName, parameterName));
141        }
142 
143        /**
144         * <!-- begin-user-doc -->
145         * <!-- end-user-doc -->
146         * @generated
147         */
148        public ParameterModifier getModifier__Parameter() {
149                return modifier__Parameter;
150        }
151 
152        /**
153         * <!-- begin-user-doc -->
154         * <!-- end-user-doc -->
155         * @generated
156         */
157        public void setModifier__Parameter(ParameterModifier newModifier__Parameter) {
158                ParameterModifier oldModifier__Parameter = modifier__Parameter;
159                modifier__Parameter = newModifier__Parameter == null ? MODIFIER_PARAMETER_EDEFAULT : newModifier__Parameter;
160                if (eNotificationRequired())
161                        eNotify(new ENotificationImpl(this, Notification.SET, RepositoryPackage.PARAMETER__MODIFIER_PARAMETER, oldModifier__Parameter, modifier__Parameter));
162        }
163 
164        /**
165         * <!-- begin-user-doc -->
166         * <!-- end-user-doc -->
167         * @generated
168         */
169        public OperationSignature getOperationSignature__Parameter() {
170                if (eContainerFeatureID() != RepositoryPackage.PARAMETER__OPERATION_SIGNATURE_PARAMETER) return null;
171                return (OperationSignature)eContainer();
172        }
173 
174        /**
175         * <!-- begin-user-doc -->
176         * <!-- end-user-doc -->
177         * @generated
178         */
179        public NotificationChain basicSetOperationSignature__Parameter(OperationSignature newOperationSignature__Parameter, NotificationChain msgs) {
180                msgs = eBasicSetContainer((InternalEObject)newOperationSignature__Parameter, RepositoryPackage.PARAMETER__OPERATION_SIGNATURE_PARAMETER, msgs);
181                return msgs;
182        }
183 
184        /**
185         * <!-- begin-user-doc -->
186         * <!-- end-user-doc -->
187         * @generated
188         */
189        public void setOperationSignature__Parameter(OperationSignature newOperationSignature__Parameter) {
190                if (newOperationSignature__Parameter != eInternalContainer() || (eContainerFeatureID() != RepositoryPackage.PARAMETER__OPERATION_SIGNATURE_PARAMETER && newOperationSignature__Parameter != null)) {
191                        if (EcoreUtil.isAncestor(this, newOperationSignature__Parameter))
192                                throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
193                        NotificationChain msgs = null;
194                        if (eInternalContainer() != null)
195                                msgs = eBasicRemoveFromContainer(msgs);
196                        if (newOperationSignature__Parameter != null)
197                                msgs = ((InternalEObject)newOperationSignature__Parameter).eInverseAdd(this, RepositoryPackage.OPERATION_SIGNATURE__PARAMETERS_OPERATION_SIGNATURE, OperationSignature.class, msgs);
198                        msgs = basicSetOperationSignature__Parameter(newOperationSignature__Parameter, msgs);
199                        if (msgs != null) msgs.dispatch();
200                }
201                else if (eNotificationRequired())
202                        eNotify(new ENotificationImpl(this, Notification.SET, RepositoryPackage.PARAMETER__OPERATION_SIGNATURE_PARAMETER, newOperationSignature__Parameter, newOperationSignature__Parameter));
203        }
204 
205        /**
206         * <!-- begin-user-doc -->
207         * <!-- end-user-doc -->
208         * @generated
209         */
210        public DataType getDataType__Parameter() {
211                if (dataType__Parameter != null && dataType__Parameter.eIsProxy()) {
212                        InternalEObject oldDataType__Parameter = (InternalEObject)dataType__Parameter;
213                        dataType__Parameter = (DataType)eResolveProxy(oldDataType__Parameter);
214                        if (dataType__Parameter != oldDataType__Parameter) {
215                                if (eNotificationRequired())
216                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, RepositoryPackage.PARAMETER__DATA_TYPE_PARAMETER, oldDataType__Parameter, dataType__Parameter));
217                        }
218                }
219                return dataType__Parameter;
220        }
221 
222        /**
223         * <!-- begin-user-doc -->
224         * <!-- end-user-doc -->
225         * @generated
226         */
227        public DataType basicGetDataType__Parameter() {
228                return dataType__Parameter;
229        }
230 
231        /**
232         * <!-- begin-user-doc -->
233         * <!-- end-user-doc -->
234         * @generated
235         */
236        public void setDataType__Parameter(DataType newDataType__Parameter) {
237                DataType oldDataType__Parameter = dataType__Parameter;
238                dataType__Parameter = newDataType__Parameter;
239                if (eNotificationRequired())
240                        eNotify(new ENotificationImpl(this, Notification.SET, RepositoryPackage.PARAMETER__DATA_TYPE_PARAMETER, oldDataType__Parameter, dataType__Parameter));
241        }
242 
243        /**
244         * <!-- begin-user-doc -->
245         * <!-- end-user-doc -->
246         * @generated
247         */
248        public ResourceSignature getResourceSignature__Parameter() {
249                if (eContainerFeatureID() != RepositoryPackage.PARAMETER__RESOURCE_SIGNATURE_PARAMETER) return null;
250                return (ResourceSignature)eContainer();
251        }
252 
253        /**
254         * <!-- begin-user-doc -->
255         * <!-- end-user-doc -->
256         * @generated
257         */
258        public NotificationChain basicSetResourceSignature__Parameter(ResourceSignature newResourceSignature__Parameter, NotificationChain msgs) {
259                msgs = eBasicSetContainer((InternalEObject)newResourceSignature__Parameter, RepositoryPackage.PARAMETER__RESOURCE_SIGNATURE_PARAMETER, msgs);
260                return msgs;
261        }
262 
263        /**
264         * <!-- begin-user-doc -->
265         * <!-- end-user-doc -->
266         * @generated
267         */
268        public void setResourceSignature__Parameter(ResourceSignature newResourceSignature__Parameter) {
269                if (newResourceSignature__Parameter != eInternalContainer() || (eContainerFeatureID() != RepositoryPackage.PARAMETER__RESOURCE_SIGNATURE_PARAMETER && newResourceSignature__Parameter != null)) {
270                        if (EcoreUtil.isAncestor(this, newResourceSignature__Parameter))
271                                throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
272                        NotificationChain msgs = null;
273                        if (eInternalContainer() != null)
274                                msgs = eBasicRemoveFromContainer(msgs);
275                        if (newResourceSignature__Parameter != null)
276                                msgs = ((InternalEObject)newResourceSignature__Parameter).eInverseAdd(this, ResourcetypePackage.RESOURCE_SIGNATURE__PARAMETER_RESOURCE_SIGNATURE, ResourceSignature.class, msgs);
277                        msgs = basicSetResourceSignature__Parameter(newResourceSignature__Parameter, msgs);
278                        if (msgs != null) msgs.dispatch();
279                }
280                else if (eNotificationRequired())
281                        eNotify(new ENotificationImpl(this, Notification.SET, RepositoryPackage.PARAMETER__RESOURCE_SIGNATURE_PARAMETER, newResourceSignature__Parameter, newResourceSignature__Parameter));
282        }
283 
284        /**
285         * <!-- begin-user-doc -->
286         * <!-- end-user-doc -->
287         * @generated
288         */
289        public InfrastructureSignature getInfrastructureSignature__Parameter() {
290                if (eContainerFeatureID() != RepositoryPackage.PARAMETER__INFRASTRUCTURE_SIGNATURE_PARAMETER) return null;
291                return (InfrastructureSignature)eContainer();
292        }
293 
294        /**
295         * <!-- begin-user-doc -->
296         * <!-- end-user-doc -->
297         * @generated
298         */
299        public NotificationChain basicSetInfrastructureSignature__Parameter(InfrastructureSignature newInfrastructureSignature__Parameter, NotificationChain msgs) {
300                msgs = eBasicSetContainer((InternalEObject)newInfrastructureSignature__Parameter, RepositoryPackage.PARAMETER__INFRASTRUCTURE_SIGNATURE_PARAMETER, msgs);
301                return msgs;
302        }
303 
304        /**
305         * <!-- begin-user-doc -->
306         * <!-- end-user-doc -->
307         * @generated
308         */
309        public void setInfrastructureSignature__Parameter(InfrastructureSignature newInfrastructureSignature__Parameter) {
310                if (newInfrastructureSignature__Parameter != eInternalContainer() || (eContainerFeatureID() != RepositoryPackage.PARAMETER__INFRASTRUCTURE_SIGNATURE_PARAMETER && newInfrastructureSignature__Parameter != null)) {
311                        if (EcoreUtil.isAncestor(this, newInfrastructureSignature__Parameter))
312                                throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
313                        NotificationChain msgs = null;
314                        if (eInternalContainer() != null)
315                                msgs = eBasicRemoveFromContainer(msgs);
316                        if (newInfrastructureSignature__Parameter != null)
317                                msgs = ((InternalEObject)newInfrastructureSignature__Parameter).eInverseAdd(this, RepositoryPackage.INFRASTRUCTURE_SIGNATURE__PARAMETERS_INFRASTRUCTURE_SIGNATURE, InfrastructureSignature.class, msgs);
318                        msgs = basicSetInfrastructureSignature__Parameter(newInfrastructureSignature__Parameter, msgs);
319                        if (msgs != null) msgs.dispatch();
320                }
321                else if (eNotificationRequired())
322                        eNotify(new ENotificationImpl(this, Notification.SET, RepositoryPackage.PARAMETER__INFRASTRUCTURE_SIGNATURE_PARAMETER, newInfrastructureSignature__Parameter, newInfrastructureSignature__Parameter));
323        }
324 
325        /**
326         * <!-- begin-user-doc -->
327         * <!-- end-user-doc -->
328         * @generated
329         */
330        public EventType getEventType__Parameter() {
331                if (eContainerFeatureID() != RepositoryPackage.PARAMETER__EVENT_TYPE_PARAMETER) return null;
332                return (EventType)eContainer();
333        }
334 
335        /**
336         * <!-- begin-user-doc -->
337         * <!-- end-user-doc -->
338         * @generated
339         */
340        public NotificationChain basicSetEventType__Parameter(EventType newEventType__Parameter, NotificationChain msgs) {
341                msgs = eBasicSetContainer((InternalEObject)newEventType__Parameter, RepositoryPackage.PARAMETER__EVENT_TYPE_PARAMETER, msgs);
342                return msgs;
343        }
344 
345        /**
346         * <!-- begin-user-doc -->
347         * <!-- end-user-doc -->
348         * @generated
349         */
350        public void setEventType__Parameter(EventType newEventType__Parameter) {
351                if (newEventType__Parameter != eInternalContainer() || (eContainerFeatureID() != RepositoryPackage.PARAMETER__EVENT_TYPE_PARAMETER && newEventType__Parameter != null)) {
352                        if (EcoreUtil.isAncestor(this, newEventType__Parameter))
353                                throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
354                        NotificationChain msgs = null;
355                        if (eInternalContainer() != null)
356                                msgs = eBasicRemoveFromContainer(msgs);
357                        if (newEventType__Parameter != null)
358                                msgs = ((InternalEObject)newEventType__Parameter).eInverseAdd(this, RepositoryPackage.EVENT_TYPE__PARAMETER_EVENT_TYPE, EventType.class, msgs);
359                        msgs = basicSetEventType__Parameter(newEventType__Parameter, msgs);
360                        if (msgs != null) msgs.dispatch();
361                }
362                else if (eNotificationRequired())
363                        eNotify(new ENotificationImpl(this, Notification.SET, RepositoryPackage.PARAMETER__EVENT_TYPE_PARAMETER, newEventType__Parameter, newEventType__Parameter));
364        }
365 
366        /**
367         * <!-- begin-user-doc -->
368         * <!-- end-user-doc -->
369         * @generated
370         */
371        @Override
372        public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
373                switch (featureID) {
374                        case RepositoryPackage.PARAMETER__INFRASTRUCTURE_SIGNATURE_PARAMETER:
375                                if (eInternalContainer() != null)
376                                        msgs = eBasicRemoveFromContainer(msgs);
377                                return basicSetInfrastructureSignature__Parameter((InfrastructureSignature)otherEnd, msgs);
378                        case RepositoryPackage.PARAMETER__OPERATION_SIGNATURE_PARAMETER:
379                                if (eInternalContainer() != null)
380                                        msgs = eBasicRemoveFromContainer(msgs);
381                                return basicSetOperationSignature__Parameter((OperationSignature)otherEnd, msgs);
382                        case RepositoryPackage.PARAMETER__EVENT_TYPE_PARAMETER:
383                                if (eInternalContainer() != null)
384                                        msgs = eBasicRemoveFromContainer(msgs);
385                                return basicSetEventType__Parameter((EventType)otherEnd, msgs);
386                        case RepositoryPackage.PARAMETER__RESOURCE_SIGNATURE_PARAMETER:
387                                if (eInternalContainer() != null)
388                                        msgs = eBasicRemoveFromContainer(msgs);
389                                return basicSetResourceSignature__Parameter((ResourceSignature)otherEnd, msgs);
390                }
391                return super.eInverseAdd(otherEnd, featureID, msgs);
392        }
393 
394        /**
395         * <!-- begin-user-doc -->
396         * <!-- end-user-doc -->
397         * @generated
398         */
399        @Override
400        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
401                switch (featureID) {
402                        case RepositoryPackage.PARAMETER__INFRASTRUCTURE_SIGNATURE_PARAMETER:
403                                return basicSetInfrastructureSignature__Parameter(null, msgs);
404                        case RepositoryPackage.PARAMETER__OPERATION_SIGNATURE_PARAMETER:
405                                return basicSetOperationSignature__Parameter(null, msgs);
406                        case RepositoryPackage.PARAMETER__EVENT_TYPE_PARAMETER:
407                                return basicSetEventType__Parameter(null, msgs);
408                        case RepositoryPackage.PARAMETER__RESOURCE_SIGNATURE_PARAMETER:
409                                return basicSetResourceSignature__Parameter(null, msgs);
410                }
411                return super.eInverseRemove(otherEnd, featureID, msgs);
412        }
413 
414        /**
415         * <!-- begin-user-doc -->
416         * <!-- end-user-doc -->
417         * @generated
418         */
419        @Override
420        public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
421                switch (eContainerFeatureID()) {
422                        case RepositoryPackage.PARAMETER__INFRASTRUCTURE_SIGNATURE_PARAMETER:
423                                return eInternalContainer().eInverseRemove(this, RepositoryPackage.INFRASTRUCTURE_SIGNATURE__PARAMETERS_INFRASTRUCTURE_SIGNATURE, InfrastructureSignature.class, msgs);
424                        case RepositoryPackage.PARAMETER__OPERATION_SIGNATURE_PARAMETER:
425                                return eInternalContainer().eInverseRemove(this, RepositoryPackage.OPERATION_SIGNATURE__PARAMETERS_OPERATION_SIGNATURE, OperationSignature.class, msgs);
426                        case RepositoryPackage.PARAMETER__EVENT_TYPE_PARAMETER:
427                                return eInternalContainer().eInverseRemove(this, RepositoryPackage.EVENT_TYPE__PARAMETER_EVENT_TYPE, EventType.class, msgs);
428                        case RepositoryPackage.PARAMETER__RESOURCE_SIGNATURE_PARAMETER:
429                                return eInternalContainer().eInverseRemove(this, ResourcetypePackage.RESOURCE_SIGNATURE__PARAMETER_RESOURCE_SIGNATURE, ResourceSignature.class, msgs);
430                }
431                return super.eBasicRemoveFromContainerFeature(msgs);
432        }
433 
434        /**
435         * <!-- begin-user-doc -->
436         * <!-- end-user-doc -->
437         * @generated
438         */
439        @Override
440        public Object eGet(int featureID, boolean resolve, boolean coreType) {
441                switch (featureID) {
442                        case RepositoryPackage.PARAMETER__DATA_TYPE_PARAMETER:
443                                if (resolve) return getDataType__Parameter();
444                                return basicGetDataType__Parameter();
445                        case RepositoryPackage.PARAMETER__INFRASTRUCTURE_SIGNATURE_PARAMETER:
446                                return getInfrastructureSignature__Parameter();
447                        case RepositoryPackage.PARAMETER__OPERATION_SIGNATURE_PARAMETER:
448                                return getOperationSignature__Parameter();
449                        case RepositoryPackage.PARAMETER__EVENT_TYPE_PARAMETER:
450                                return getEventType__Parameter();
451                        case RepositoryPackage.PARAMETER__PARAMETER_NAME:
452                                return getParameterName();
453                        case RepositoryPackage.PARAMETER__MODIFIER_PARAMETER:
454                                return getModifier__Parameter();
455                        case RepositoryPackage.PARAMETER__RESOURCE_SIGNATURE_PARAMETER:
456                                return getResourceSignature__Parameter();
457                }
458                return super.eGet(featureID, resolve, coreType);
459        }
460 
461        /**
462         * <!-- begin-user-doc -->
463         * <!-- end-user-doc -->
464         * @generated
465         */
466        @Override
467        public void eSet(int featureID, Object newValue) {
468                switch (featureID) {
469                        case RepositoryPackage.PARAMETER__DATA_TYPE_PARAMETER:
470                                setDataType__Parameter((DataType)newValue);
471                                return;
472                        case RepositoryPackage.PARAMETER__INFRASTRUCTURE_SIGNATURE_PARAMETER:
473                                setInfrastructureSignature__Parameter((InfrastructureSignature)newValue);
474                                return;
475                        case RepositoryPackage.PARAMETER__OPERATION_SIGNATURE_PARAMETER:
476                                setOperationSignature__Parameter((OperationSignature)newValue);
477                                return;
478                        case RepositoryPackage.PARAMETER__EVENT_TYPE_PARAMETER:
479                                setEventType__Parameter((EventType)newValue);
480                                return;
481                        case RepositoryPackage.PARAMETER__PARAMETER_NAME:
482                                setParameterName((String)newValue);
483                                return;
484                        case RepositoryPackage.PARAMETER__MODIFIER_PARAMETER:
485                                setModifier__Parameter((ParameterModifier)newValue);
486                                return;
487                        case RepositoryPackage.PARAMETER__RESOURCE_SIGNATURE_PARAMETER:
488                                setResourceSignature__Parameter((ResourceSignature)newValue);
489                                return;
490                }
491                super.eSet(featureID, newValue);
492        }
493 
494        /**
495         * <!-- begin-user-doc -->
496         * <!-- end-user-doc -->
497         * @generated
498         */
499        @Override
500        public void eUnset(int featureID) {
501                switch (featureID) {
502                        case RepositoryPackage.PARAMETER__DATA_TYPE_PARAMETER:
503                                setDataType__Parameter((DataType)null);
504                                return;
505                        case RepositoryPackage.PARAMETER__INFRASTRUCTURE_SIGNATURE_PARAMETER:
506                                setInfrastructureSignature__Parameter((InfrastructureSignature)null);
507                                return;
508                        case RepositoryPackage.PARAMETER__OPERATION_SIGNATURE_PARAMETER:
509                                setOperationSignature__Parameter((OperationSignature)null);
510                                return;
511                        case RepositoryPackage.PARAMETER__EVENT_TYPE_PARAMETER:
512                                setEventType__Parameter((EventType)null);
513                                return;
514                        case RepositoryPackage.PARAMETER__PARAMETER_NAME:
515                                setParameterName(PARAMETER_NAME_EDEFAULT);
516                                return;
517                        case RepositoryPackage.PARAMETER__MODIFIER_PARAMETER:
518                                setModifier__Parameter(MODIFIER_PARAMETER_EDEFAULT);
519                                return;
520                        case RepositoryPackage.PARAMETER__RESOURCE_SIGNATURE_PARAMETER:
521                                setResourceSignature__Parameter((ResourceSignature)null);
522                                return;
523                }
524                super.eUnset(featureID);
525        }
526 
527        /**
528         * <!-- begin-user-doc -->
529         * <!-- end-user-doc -->
530         * @generated
531         */
532        @Override
533        public boolean eIsSet(int featureID) {
534                switch (featureID) {
535                        case RepositoryPackage.PARAMETER__DATA_TYPE_PARAMETER:
536                                return dataType__Parameter != null;
537                        case RepositoryPackage.PARAMETER__INFRASTRUCTURE_SIGNATURE_PARAMETER:
538                                return getInfrastructureSignature__Parameter() != null;
539                        case RepositoryPackage.PARAMETER__OPERATION_SIGNATURE_PARAMETER:
540                                return getOperationSignature__Parameter() != null;
541                        case RepositoryPackage.PARAMETER__EVENT_TYPE_PARAMETER:
542                                return getEventType__Parameter() != null;
543                        case RepositoryPackage.PARAMETER__PARAMETER_NAME:
544                                return PARAMETER_NAME_EDEFAULT == null ? parameterName != null : !PARAMETER_NAME_EDEFAULT.equals(parameterName);
545                        case RepositoryPackage.PARAMETER__MODIFIER_PARAMETER:
546                                return modifier__Parameter != MODIFIER_PARAMETER_EDEFAULT;
547                        case RepositoryPackage.PARAMETER__RESOURCE_SIGNATURE_PARAMETER:
548                                return getResourceSignature__Parameter() != null;
549                }
550                return super.eIsSet(featureID);
551        }
552 
553        /**
554         * <!-- begin-user-doc -->
555         * <!-- end-user-doc -->
556         * @generated
557         */
558        @Override
559        public String toString() {
560                if (eIsProxy()) return super.toString();
561 
562                StringBuffer result = new StringBuffer(super.toString());
563                result.append(" (parameterName: ");
564                result.append(parameterName);
565                result.append(", modifier__Parameter: ");
566                result.append(modifier__Parameter);
567                result.append(')');
568                return result.toString();
569        }
570 
571} //ParameterImpl

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