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

COVERAGE SUMMARY FOR SOURCE FILE [RelationSemanticsImpl.java]

nameclass, %method, %block, %line, %
RelationSemanticsImpl.java0%   (0/1)0%   (0/10)0%   (0/114)0%   (0/34)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class RelationSemanticsImpl0%   (0/1)0%   (0/10)0%   (0/114)0%   (0/34)
<static initializer> 0%   (0/1)0%   (0/3)0%   (0/2)
RelationSemanticsImpl (): void 0%   (0/1)0%   (0/6)0%   (0/3)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/11)0%   (0/3)
eIsSet (int): boolean 0%   (0/1)0%   (0/14)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)
getRelSem (): EnumRelationSemantics 0%   (0/1)0%   (0/3)0%   (0/1)
setRelSem (EnumRelationSemantics): void 0%   (0/1)0%   (0/25)0%   (0/5)
toString (): String 0%   (0/1)0%   (0/28)0%   (0/6)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.impl;
8 
9import de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.EnumRelationSemantics;
10import de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.QMLContractTypePackage;
11import de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.RelationSemantics;
12 
13import de.uka.ipd.sdq.identifier.impl.IdentifierImpl;
14 
15import org.eclipse.emf.common.notify.Notification;
16 
17import org.eclipse.emf.ecore.EClass;
18 
19import org.eclipse.emf.ecore.impl.ENotificationImpl;
20 
21/**
22 * <!-- begin-user-doc -->
23 * An implementation of the model object '<em><b>Relation Semantics</b></em>'.
24 * <!-- end-user-doc -->
25 * <p>
26 * The following features are implemented:
27 * <ul>
28 *   <li>{@link de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.impl.RelationSemanticsImpl#getRelSem <em>Rel Sem</em>}</li>
29 * </ul>
30 * </p>
31 *
32 * @generated
33 */
34public class RelationSemanticsImpl extends IdentifierImpl implements RelationSemantics {
35        /**
36         * The default value of the '{@link #getRelSem() <em>Rel Sem</em>}' attribute.
37         * <!-- begin-user-doc -->
38         * <!-- end-user-doc -->
39         * @see #getRelSem()
40         * @generated
41         * @ordered
42         */
43        protected static final EnumRelationSemantics REL_SEM_EDEFAULT = EnumRelationSemantics.DECREASING;
44 
45        /**
46         * The cached value of the '{@link #getRelSem() <em>Rel Sem</em>}' attribute.
47         * <!-- begin-user-doc -->
48         * <!-- end-user-doc -->
49         * @see #getRelSem()
50         * @generated
51         * @ordered
52         */
53        protected EnumRelationSemantics relSem = REL_SEM_EDEFAULT;
54 
55        /**
56         * <!-- begin-user-doc -->
57         * <!-- end-user-doc -->
58         * @generated
59         */
60        protected RelationSemanticsImpl() {
61                super();
62        }
63 
64        /**
65         * <!-- begin-user-doc -->
66         * <!-- end-user-doc -->
67         * @generated
68         */
69        @Override
70        protected EClass eStaticClass() {
71                return QMLContractTypePackage.Literals.RELATION_SEMANTICS;
72        }
73 
74        /**
75         * <!-- begin-user-doc -->
76         * <!-- end-user-doc -->
77         * @generated
78         */
79        public EnumRelationSemantics getRelSem() {
80                return relSem;
81        }
82 
83        /**
84         * <!-- begin-user-doc -->
85         * <!-- end-user-doc -->
86         * @generated
87         */
88        public void setRelSem(EnumRelationSemantics newRelSem) {
89                EnumRelationSemantics oldRelSem = relSem;
90                relSem = newRelSem == null ? REL_SEM_EDEFAULT : newRelSem;
91                if (eNotificationRequired())
92                        eNotify(new ENotificationImpl(this, Notification.SET, QMLContractTypePackage.RELATION_SEMANTICS__REL_SEM, oldRelSem, relSem));
93        }
94 
95        /**
96         * <!-- begin-user-doc -->
97         * <!-- end-user-doc -->
98         * @generated
99         */
100        @Override
101        public Object eGet(int featureID, boolean resolve, boolean coreType) {
102                switch (featureID) {
103                        case QMLContractTypePackage.RELATION_SEMANTICS__REL_SEM:
104                                return getRelSem();
105                }
106                return super.eGet(featureID, resolve, coreType);
107        }
108 
109        /**
110         * <!-- begin-user-doc -->
111         * <!-- end-user-doc -->
112         * @generated
113         */
114        @Override
115        public void eSet(int featureID, Object newValue) {
116                switch (featureID) {
117                        case QMLContractTypePackage.RELATION_SEMANTICS__REL_SEM:
118                                setRelSem((EnumRelationSemantics)newValue);
119                                return;
120                }
121                super.eSet(featureID, newValue);
122        }
123 
124        /**
125         * <!-- begin-user-doc -->
126         * <!-- end-user-doc -->
127         * @generated
128         */
129        @Override
130        public void eUnset(int featureID) {
131                switch (featureID) {
132                        case QMLContractTypePackage.RELATION_SEMANTICS__REL_SEM:
133                                setRelSem(REL_SEM_EDEFAULT);
134                                return;
135                }
136                super.eUnset(featureID);
137        }
138 
139        /**
140         * <!-- begin-user-doc -->
141         * <!-- end-user-doc -->
142         * @generated
143         */
144        @Override
145        public boolean eIsSet(int featureID) {
146                switch (featureID) {
147                        case QMLContractTypePackage.RELATION_SEMANTICS__REL_SEM:
148                                return relSem != REL_SEM_EDEFAULT;
149                }
150                return super.eIsSet(featureID);
151        }
152 
153        /**
154         * <!-- begin-user-doc -->
155         * <!-- end-user-doc -->
156         * @generated
157         */
158        @Override
159        public String toString() {
160                if (eIsProxy()) return super.toString();
161 
162                StringBuffer result = new StringBuffer(super.toString());
163                result.append(" (relSem: ");
164                result.append(relSem);
165                result.append(')');
166                return result.toString();
167        }
168 
169} //RelationSemanticsImpl

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