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

COVERAGE SUMMARY FOR SOURCE FILE [EntityImpl.java]

nameclass, %method, %block, %line, %
EntityImpl.java0%   (0/1)0%   (0/11)0%   (0/145)0%   (0/42)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class EntityImpl0%   (0/1)0%   (0/11)0%   (0/145)0%   (0/42)
EntityImpl (): void 0%   (0/1)0%   (0/6)0%   (0/3)
eBaseStructuralFeatureID (int, Class): int 0%   (0/1)0%   (0/14)0%   (0/5)
eDerivedStructuralFeatureID (int, Class): int 0%   (0/1)0%   (0/14)0%   (0/5)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/11)0%   (0/3)
eIsSet (int): boolean 0%   (0/1)0%   (0/24)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)
getEntityName (): String 0%   (0/1)0%   (0/3)0%   (0/1)
setEntityName (String): void 0%   (0/1)0%   (0/21)0%   (0/5)
toString (): String 0%   (0/1)0%   (0/28)0%   (0/6)

1/**
2 * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany
3 *
4 * $Id$
5 */
6package de.uka.ipd.sdq.pcm.core.entity.impl;
7 
8import org.eclipse.emf.common.notify.Notification;
9import org.eclipse.emf.ecore.EClass;
10import org.eclipse.emf.ecore.impl.ENotificationImpl;
11 
12import de.uka.ipd.sdq.identifier.impl.IdentifierImpl;
13import de.uka.ipd.sdq.pcm.core.entity.Entity;
14import de.uka.ipd.sdq.pcm.core.entity.EntityPackage;
15import de.uka.ipd.sdq.pcm.core.entity.NamedElement;
16 
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>Entity</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * <ul>
24 *   <li>{@link de.uka.ipd.sdq.pcm.core.entity.impl.EntityImpl#getEntityName <em>Entity Name</em>}</li>
25 * </ul>
26 * </p>
27 *
28 * @generated
29 */
30public abstract class EntityImpl extends IdentifierImpl implements Entity {
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 #getEntityName() <em>Entity Name</em>}' attribute.
40         * <!-- begin-user-doc -->
41         * <!-- end-user-doc -->
42         * @see #getEntityName()
43         * @generated
44         * @ordered
45         */
46        protected static final String ENTITY_NAME_EDEFAULT = "aName";
47 
48        /**
49         * The cached value of the '{@link #getEntityName() <em>Entity Name</em>}' attribute.
50         * <!-- begin-user-doc -->
51         * <!-- end-user-doc -->
52         * @see #getEntityName()
53         * @generated
54         * @ordered
55         */
56        protected String entityName = ENTITY_NAME_EDEFAULT;
57 
58        /**
59         * <!-- begin-user-doc -->
60         * <!-- end-user-doc -->
61         * @generated
62         */
63        protected EntityImpl() {
64                super();
65        }
66 
67        /**
68         * <!-- begin-user-doc -->
69         * <!-- end-user-doc -->
70         * @generated
71         */
72        @Override
73        protected EClass eStaticClass() {
74                return EntityPackage.Literals.ENTITY;
75        }
76 
77        /**
78         * <!-- begin-user-doc -->
79         * <!-- end-user-doc -->
80         * @generated
81         */
82        public String getEntityName() {
83                return entityName;
84        }
85 
86        /**
87         * <!-- begin-user-doc -->
88         * <!-- end-user-doc -->
89         * @generated
90         */
91        public void setEntityName(String newEntityName) {
92                String oldEntityName = entityName;
93                entityName = newEntityName;
94                if (eNotificationRequired())
95                        eNotify(new ENotificationImpl(this, Notification.SET, EntityPackage.ENTITY__ENTITY_NAME, oldEntityName, entityName));
96        }
97 
98        /**
99         * <!-- begin-user-doc -->
100         * <!-- end-user-doc -->
101         * @generated
102         */
103        @Override
104        public Object eGet(int featureID, boolean resolve, boolean coreType) {
105                switch (featureID) {
106                        case EntityPackage.ENTITY__ENTITY_NAME:
107                                return getEntityName();
108                }
109                return super.eGet(featureID, resolve, coreType);
110        }
111 
112        /**
113         * <!-- begin-user-doc -->
114         * <!-- end-user-doc -->
115         * @generated
116         */
117        @Override
118        public void eSet(int featureID, Object newValue) {
119                switch (featureID) {
120                        case EntityPackage.ENTITY__ENTITY_NAME:
121                                setEntityName((String)newValue);
122                                return;
123                }
124                super.eSet(featureID, newValue);
125        }
126 
127        /**
128         * <!-- begin-user-doc -->
129         * <!-- end-user-doc -->
130         * @generated
131         */
132        @Override
133        public void eUnset(int featureID) {
134                switch (featureID) {
135                        case EntityPackage.ENTITY__ENTITY_NAME:
136                                setEntityName(ENTITY_NAME_EDEFAULT);
137                                return;
138                }
139                super.eUnset(featureID);
140        }
141 
142        /**
143         * <!-- begin-user-doc -->
144         * <!-- end-user-doc -->
145         * @generated
146         */
147        @Override
148        public boolean eIsSet(int featureID) {
149                switch (featureID) {
150                        case EntityPackage.ENTITY__ENTITY_NAME:
151                                return ENTITY_NAME_EDEFAULT == null ? entityName != null : !ENTITY_NAME_EDEFAULT.equals(entityName);
152                }
153                return super.eIsSet(featureID);
154        }
155 
156        /**
157         * <!-- begin-user-doc -->
158         * <!-- end-user-doc -->
159         * @generated
160         */
161        @Override
162        public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
163                if (baseClass == NamedElement.class) {
164                        switch (derivedFeatureID) {
165                                case EntityPackage.ENTITY__ENTITY_NAME: return EntityPackage.NAMED_ELEMENT__ENTITY_NAME;
166                                default: return -1;
167                        }
168                }
169                return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
170        }
171 
172        /**
173         * <!-- begin-user-doc -->
174         * <!-- end-user-doc -->
175         * @generated
176         */
177        @Override
178        public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
179                if (baseClass == NamedElement.class) {
180                        switch (baseFeatureID) {
181                                case EntityPackage.NAMED_ELEMENT__ENTITY_NAME: return EntityPackage.ENTITY__ENTITY_NAME;
182                                default: return -1;
183                        }
184                }
185                return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
186        }
187 
188        /**
189         * <!-- begin-user-doc -->
190         * <!-- end-user-doc -->
191         * @generated
192         */
193        @Override
194        public String toString() {
195                if (eIsProxy()) return super.toString();
196 
197                StringBuffer result = new StringBuffer(super.toString());
198                result.append(" (entityName: ");
199                result.append(entityName);
200                result.append(')');
201                return result.toString();
202        }
203 
204} //EntityImpl

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