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

COVERAGE SUMMARY FOR SOURCE FILE [AspectRequirementImpl.java]

nameclass, %method, %block, %line, %
AspectRequirementImpl.java0%   (0/1)0%   (0/10)0%   (0/148)0%   (0/40)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AspectRequirementImpl0%   (0/1)0%   (0/10)0%   (0/148)0%   (0/40)
AspectRequirementImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
basicSetAspectRequirementLiteral (ValueLiteral, NotificationChain): Notificat... 0%   (0/1)0%   (0/29)0%   (0/6)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/11)0%   (0/3)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/13)0%   (0/3)
eIsSet (int): boolean 0%   (0/1)0%   (0/13)0%   (0/3)
eSet (int, Object): void 0%   (0/1)0%   (0/12)0%   (0/5)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/10)0%   (0/5)
getAspectRequirementLiteral (): ValueLiteral 0%   (0/1)0%   (0/3)0%   (0/1)
setAspectRequirementLiteral (ValueLiteral): void 0%   (0/1)0%   (0/52)0%   (0/11)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.dsexplore.qml.contract.QMLContract.impl;
8 
9import de.uka.ipd.sdq.dsexplore.qml.contract.QMLContract.AspectRequirement;
10import de.uka.ipd.sdq.dsexplore.qml.contract.QMLContract.QMLContractPackage;
11import de.uka.ipd.sdq.dsexplore.qml.contract.QMLContract.ValueLiteral;
12 
13import de.uka.ipd.sdq.identifier.impl.IdentifierImpl;
14 
15import org.eclipse.emf.common.notify.Notification;
16import org.eclipse.emf.common.notify.NotificationChain;
17 
18import org.eclipse.emf.ecore.EClass;
19import org.eclipse.emf.ecore.InternalEObject;
20 
21import org.eclipse.emf.ecore.impl.ENotificationImpl;
22 
23/**
24 * <!-- begin-user-doc -->
25 * An implementation of the model object '<em><b>Aspect Requirement</b></em>'.
26 * <!-- end-user-doc -->
27 * <p>
28 * The following features are implemented:
29 * <ul>
30 *   <li>{@link de.uka.ipd.sdq.dsexplore.qml.contract.QMLContract.impl.AspectRequirementImpl#getAspectRequirementLiteral <em>Aspect Requirement Literal</em>}</li>
31 * </ul>
32 * </p>
33 *
34 * @generated
35 */
36public abstract class AspectRequirementImpl extends IdentifierImpl implements AspectRequirement {
37        /**
38         * The cached value of the '{@link #getAspectRequirementLiteral() <em>Aspect Requirement Literal</em>}' containment reference.
39         * <!-- begin-user-doc -->
40         * <!-- end-user-doc -->
41         * @see #getAspectRequirementLiteral()
42         * @generated
43         * @ordered
44         */
45        protected ValueLiteral aspectRequirementLiteral;
46 
47        /**
48         * <!-- begin-user-doc -->
49         * <!-- end-user-doc -->
50         * @generated
51         */
52        protected AspectRequirementImpl() {
53                super();
54        }
55 
56        /**
57         * <!-- begin-user-doc -->
58         * <!-- end-user-doc -->
59         * @generated
60         */
61        @Override
62        protected EClass eStaticClass() {
63                return QMLContractPackage.Literals.ASPECT_REQUIREMENT;
64        }
65 
66        /**
67         * <!-- begin-user-doc -->
68         * <!-- end-user-doc -->
69         * @generated
70         */
71        public ValueLiteral getAspectRequirementLiteral() {
72                return aspectRequirementLiteral;
73        }
74 
75        /**
76         * <!-- begin-user-doc -->
77         * <!-- end-user-doc -->
78         * @generated
79         */
80        public NotificationChain basicSetAspectRequirementLiteral(ValueLiteral newAspectRequirementLiteral, NotificationChain msgs) {
81                ValueLiteral oldAspectRequirementLiteral = aspectRequirementLiteral;
82                aspectRequirementLiteral = newAspectRequirementLiteral;
83                if (eNotificationRequired()) {
84                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, QMLContractPackage.ASPECT_REQUIREMENT__ASPECT_REQUIREMENT_LITERAL, oldAspectRequirementLiteral, newAspectRequirementLiteral);
85                        if (msgs == null) msgs = notification; else msgs.add(notification);
86                }
87                return msgs;
88        }
89 
90        /**
91         * <!-- begin-user-doc -->
92         * <!-- end-user-doc -->
93         * @generated
94         */
95        public void setAspectRequirementLiteral(ValueLiteral newAspectRequirementLiteral) {
96                if (newAspectRequirementLiteral != aspectRequirementLiteral) {
97                        NotificationChain msgs = null;
98                        if (aspectRequirementLiteral != null)
99                                msgs = ((InternalEObject)aspectRequirementLiteral).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - QMLContractPackage.ASPECT_REQUIREMENT__ASPECT_REQUIREMENT_LITERAL, null, msgs);
100                        if (newAspectRequirementLiteral != null)
101                                msgs = ((InternalEObject)newAspectRequirementLiteral).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - QMLContractPackage.ASPECT_REQUIREMENT__ASPECT_REQUIREMENT_LITERAL, null, msgs);
102                        msgs = basicSetAspectRequirementLiteral(newAspectRequirementLiteral, msgs);
103                        if (msgs != null) msgs.dispatch();
104                }
105                else if (eNotificationRequired())
106                        eNotify(new ENotificationImpl(this, Notification.SET, QMLContractPackage.ASPECT_REQUIREMENT__ASPECT_REQUIREMENT_LITERAL, newAspectRequirementLiteral, newAspectRequirementLiteral));
107        }
108 
109        /**
110         * <!-- begin-user-doc -->
111         * <!-- end-user-doc -->
112         * @generated
113         */
114        @Override
115        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
116                switch (featureID) {
117                        case QMLContractPackage.ASPECT_REQUIREMENT__ASPECT_REQUIREMENT_LITERAL:
118                                return basicSetAspectRequirementLiteral(null, msgs);
119                }
120                return super.eInverseRemove(otherEnd, featureID, msgs);
121        }
122 
123        /**
124         * <!-- begin-user-doc -->
125         * <!-- end-user-doc -->
126         * @generated
127         */
128        @Override
129        public Object eGet(int featureID, boolean resolve, boolean coreType) {
130                switch (featureID) {
131                        case QMLContractPackage.ASPECT_REQUIREMENT__ASPECT_REQUIREMENT_LITERAL:
132                                return getAspectRequirementLiteral();
133                }
134                return super.eGet(featureID, resolve, coreType);
135        }
136 
137        /**
138         * <!-- begin-user-doc -->
139         * <!-- end-user-doc -->
140         * @generated
141         */
142        @Override
143        public void eSet(int featureID, Object newValue) {
144                switch (featureID) {
145                        case QMLContractPackage.ASPECT_REQUIREMENT__ASPECT_REQUIREMENT_LITERAL:
146                                setAspectRequirementLiteral((ValueLiteral)newValue);
147                                return;
148                }
149                super.eSet(featureID, newValue);
150        }
151 
152        /**
153         * <!-- begin-user-doc -->
154         * <!-- end-user-doc -->
155         * @generated
156         */
157        @Override
158        public void eUnset(int featureID) {
159                switch (featureID) {
160                        case QMLContractPackage.ASPECT_REQUIREMENT__ASPECT_REQUIREMENT_LITERAL:
161                                setAspectRequirementLiteral((ValueLiteral)null);
162                                return;
163                }
164                super.eUnset(featureID);
165        }
166 
167        /**
168         * <!-- begin-user-doc -->
169         * <!-- end-user-doc -->
170         * @generated
171         */
172        @Override
173        public boolean eIsSet(int featureID) {
174                switch (featureID) {
175                        case QMLContractPackage.ASPECT_REQUIREMENT__ASPECT_REQUIREMENT_LITERAL:
176                                return aspectRequirementLiteral != null;
177                }
178                return super.eIsSet(featureID);
179        }
180 
181} //AspectRequirementImpl

[all classes][de.uka.ipd.sdq.dsexplore.qml.contract.QMLContract.impl]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov