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 [ExceptionTypeImpl.java]

nameclass, %method, %block, %line, %
ExceptionTypeImpl.java0%   (0/1)0%   (0/12)0%   (0/188)0%   (0/50)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ExceptionTypeImpl0%   (0/1)0%   (0/12)0%   (0/188)0%   (0/50)
<static initializer> 0%   (0/1)0%   (0/5)0%   (0/3)
ExceptionTypeImpl (): void 0%   (0/1)0%   (0/9)0%   (0/4)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/14)0%   (0/4)
eIsSet (int): boolean 0%   (0/1)0%   (0/42)0%   (0/4)
eSet (int, Object): void 0%   (0/1)0%   (0/17)0%   (0/7)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/14)0%   (0/7)
getExceptionMessage (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getExceptionName (): String 0%   (0/1)0%   (0/3)0%   (0/1)
setExceptionMessage (String): void 0%   (0/1)0%   (0/21)0%   (0/5)
setExceptionName (String): void 0%   (0/1)0%   (0/21)0%   (0/5)
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.ecore.EClass;
10import org.eclipse.emf.ecore.impl.ENotificationImpl;
11import org.eclipse.emf.ecore.impl.EObjectImpl;
12 
13import de.uka.ipd.sdq.pcm.repository.ExceptionType;
14import de.uka.ipd.sdq.pcm.repository.RepositoryPackage;
15 
16/**
17 * <!-- begin-user-doc -->
18 * An implementation of the model object '<em><b>Exception Type</b></em>'.
19 * <!-- end-user-doc -->
20 * <p>
21 * The following features are implemented:
22 * <ul>
23 *   <li>{@link de.uka.ipd.sdq.pcm.repository.impl.ExceptionTypeImpl#getExceptionName <em>Exception Name</em>}</li>
24 *   <li>{@link de.uka.ipd.sdq.pcm.repository.impl.ExceptionTypeImpl#getExceptionMessage <em>Exception Message</em>}</li>
25 * </ul>
26 * </p>
27 *
28 * @generated
29 */
30public class ExceptionTypeImpl extends EObjectImpl implements ExceptionType {
31        /**
32         * <!-- begin-user-doc -->
33         * <!-- end-user-doc -->
34         * @generated
35         */
36        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
37 
38        /**
39         * The default value of the '{@link #getExceptionName() <em>Exception Name</em>}' attribute.
40         * <!-- begin-user-doc -->
41         * <!-- end-user-doc -->
42         * @see #getExceptionName()
43         * @generated
44         * @ordered
45         */
46        protected static final String EXCEPTION_NAME_EDEFAULT = null;
47 
48        /**
49         * The cached value of the '{@link #getExceptionName() <em>Exception Name</em>}' attribute.
50         * <!-- begin-user-doc -->
51         * <!-- end-user-doc -->
52         * @see #getExceptionName()
53         * @generated
54         * @ordered
55         */
56        protected String exceptionName = EXCEPTION_NAME_EDEFAULT;
57 
58        /**
59         * The default value of the '{@link #getExceptionMessage() <em>Exception Message</em>}' attribute.
60         * <!-- begin-user-doc -->
61         * <!-- end-user-doc -->
62         * @see #getExceptionMessage()
63         * @generated
64         * @ordered
65         */
66        protected static final String EXCEPTION_MESSAGE_EDEFAULT = null;
67 
68        /**
69         * The cached value of the '{@link #getExceptionMessage() <em>Exception Message</em>}' attribute.
70         * <!-- begin-user-doc -->
71         * <!-- end-user-doc -->
72         * @see #getExceptionMessage()
73         * @generated
74         * @ordered
75         */
76        protected String exceptionMessage = EXCEPTION_MESSAGE_EDEFAULT;
77 
78        /**
79         * <!-- begin-user-doc -->
80         * <!-- end-user-doc -->
81         * @generated
82         */
83        protected ExceptionTypeImpl() {
84                super();
85        }
86 
87        /**
88         * <!-- begin-user-doc -->
89         * <!-- end-user-doc -->
90         * @generated
91         */
92        @Override
93        protected EClass eStaticClass() {
94                return RepositoryPackage.Literals.EXCEPTION_TYPE;
95        }
96 
97        /**
98         * <!-- begin-user-doc -->
99         * <!-- end-user-doc -->
100         * @generated
101         */
102        public String getExceptionName() {
103                return exceptionName;
104        }
105 
106        /**
107         * <!-- begin-user-doc -->
108         * <!-- end-user-doc -->
109         * @generated
110         */
111        public void setExceptionName(String newExceptionName) {
112                String oldExceptionName = exceptionName;
113                exceptionName = newExceptionName;
114                if (eNotificationRequired())
115                        eNotify(new ENotificationImpl(this, Notification.SET, RepositoryPackage.EXCEPTION_TYPE__EXCEPTION_NAME, oldExceptionName, exceptionName));
116        }
117 
118        /**
119         * <!-- begin-user-doc -->
120         * <!-- end-user-doc -->
121         * @generated
122         */
123        public String getExceptionMessage() {
124                return exceptionMessage;
125        }
126 
127        /**
128         * <!-- begin-user-doc -->
129         * <!-- end-user-doc -->
130         * @generated
131         */
132        public void setExceptionMessage(String newExceptionMessage) {
133                String oldExceptionMessage = exceptionMessage;
134                exceptionMessage = newExceptionMessage;
135                if (eNotificationRequired())
136                        eNotify(new ENotificationImpl(this, Notification.SET, RepositoryPackage.EXCEPTION_TYPE__EXCEPTION_MESSAGE, oldExceptionMessage, exceptionMessage));
137        }
138 
139        /**
140         * <!-- begin-user-doc -->
141         * <!-- end-user-doc -->
142         * @generated
143         */
144        @Override
145        public Object eGet(int featureID, boolean resolve, boolean coreType) {
146                switch (featureID) {
147                        case RepositoryPackage.EXCEPTION_TYPE__EXCEPTION_NAME:
148                                return getExceptionName();
149                        case RepositoryPackage.EXCEPTION_TYPE__EXCEPTION_MESSAGE:
150                                return getExceptionMessage();
151                }
152                return super.eGet(featureID, resolve, coreType);
153        }
154 
155        /**
156         * <!-- begin-user-doc -->
157         * <!-- end-user-doc -->
158         * @generated
159         */
160        @Override
161        public void eSet(int featureID, Object newValue) {
162                switch (featureID) {
163                        case RepositoryPackage.EXCEPTION_TYPE__EXCEPTION_NAME:
164                                setExceptionName((String)newValue);
165                                return;
166                        case RepositoryPackage.EXCEPTION_TYPE__EXCEPTION_MESSAGE:
167                                setExceptionMessage((String)newValue);
168                                return;
169                }
170                super.eSet(featureID, newValue);
171        }
172 
173        /**
174         * <!-- begin-user-doc -->
175         * <!-- end-user-doc -->
176         * @generated
177         */
178        @Override
179        public void eUnset(int featureID) {
180                switch (featureID) {
181                        case RepositoryPackage.EXCEPTION_TYPE__EXCEPTION_NAME:
182                                setExceptionName(EXCEPTION_NAME_EDEFAULT);
183                                return;
184                        case RepositoryPackage.EXCEPTION_TYPE__EXCEPTION_MESSAGE:
185                                setExceptionMessage(EXCEPTION_MESSAGE_EDEFAULT);
186                                return;
187                }
188                super.eUnset(featureID);
189        }
190 
191        /**
192         * <!-- begin-user-doc -->
193         * <!-- end-user-doc -->
194         * @generated
195         */
196        @Override
197        public boolean eIsSet(int featureID) {
198                switch (featureID) {
199                        case RepositoryPackage.EXCEPTION_TYPE__EXCEPTION_NAME:
200                                return EXCEPTION_NAME_EDEFAULT == null ? exceptionName != null : !EXCEPTION_NAME_EDEFAULT.equals(exceptionName);
201                        case RepositoryPackage.EXCEPTION_TYPE__EXCEPTION_MESSAGE:
202                                return EXCEPTION_MESSAGE_EDEFAULT == null ? exceptionMessage != null : !EXCEPTION_MESSAGE_EDEFAULT.equals(exceptionMessage);
203                }
204                return super.eIsSet(featureID);
205        }
206 
207        /**
208         * <!-- begin-user-doc -->
209         * <!-- end-user-doc -->
210         * @generated
211         */
212        @Override
213        public String toString() {
214                if (eIsProxy()) return super.toString();
215 
216                StringBuffer result = new StringBuffer(super.toString());
217                result.append(" (exceptionName: ");
218                result.append(exceptionName);
219                result.append(", exceptionMessage: ");
220                result.append(exceptionMessage);
221                result.append(')');
222                return result.toString();
223        }
224 
225} //ExceptionTypeImpl

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