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

nameclass, %method, %block, %line, %
NamedElementImpl.java0%   (0/1)0%   (0/9)0%   (0/117)0%   (0/32)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class NamedElementImpl0%   (0/1)0%   (0/9)0%   (0/117)0%   (0/32)
NamedElementImpl (): 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/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;
11import org.eclipse.emf.ecore.impl.EObjectImpl;
12 
13import de.uka.ipd.sdq.pcm.core.entity.EntityPackage;
14import de.uka.ipd.sdq.pcm.core.entity.NamedElement;
15 
16/**
17 * <!-- begin-user-doc -->
18 * An implementation of the model object '<em><b>Named Element</b></em>'.
19 * <!-- end-user-doc -->
20 * <p>
21 * The following features are implemented:
22 * <ul>
23 *   <li>{@link de.uka.ipd.sdq.pcm.core.entity.impl.NamedElementImpl#getEntityName <em>Entity Name</em>}</li>
24 * </ul>
25 * </p>
26 *
27 * @generated
28 */
29public abstract class NamedElementImpl extends EObjectImpl implements NamedElement {
30        /**
31         * <!-- begin-user-doc -->
32         * <!-- end-user-doc -->
33         * @generated
34         */
35        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
36 
37        /**
38         * The default value of the '{@link #getEntityName() <em>Entity Name</em>}' attribute.
39         * <!-- begin-user-doc -->
40         * <!-- end-user-doc -->
41         * @see #getEntityName()
42         * @generated
43         * @ordered
44         */
45        protected static final String ENTITY_NAME_EDEFAULT = "aName";
46 
47        /**
48         * The cached value of the '{@link #getEntityName() <em>Entity Name</em>}' attribute.
49         * <!-- begin-user-doc -->
50         * <!-- end-user-doc -->
51         * @see #getEntityName()
52         * @generated
53         * @ordered
54         */
55        protected String entityName = ENTITY_NAME_EDEFAULT;
56 
57        /**
58         * <!-- begin-user-doc -->
59         * <!-- end-user-doc -->
60         * @generated
61         */
62        protected NamedElementImpl() {
63                super();
64        }
65 
66        /**
67         * <!-- begin-user-doc -->
68         * <!-- end-user-doc -->
69         * @generated
70         */
71        @Override
72        protected EClass eStaticClass() {
73                return EntityPackage.Literals.NAMED_ELEMENT;
74        }
75 
76        /**
77         * <!-- begin-user-doc -->
78         * <!-- end-user-doc -->
79         * @generated
80         */
81        public String getEntityName() {
82                return entityName;
83        }
84 
85        /**
86         * <!-- begin-user-doc -->
87         * <!-- end-user-doc -->
88         * @generated
89         */
90        public void setEntityName(String newEntityName) {
91                String oldEntityName = entityName;
92                entityName = newEntityName;
93                if (eNotificationRequired())
94                        eNotify(new ENotificationImpl(this, Notification.SET, EntityPackage.NAMED_ELEMENT__ENTITY_NAME, oldEntityName, entityName));
95        }
96 
97        /**
98         * <!-- begin-user-doc -->
99         * <!-- end-user-doc -->
100         * @generated
101         */
102        @Override
103        public Object eGet(int featureID, boolean resolve, boolean coreType) {
104                switch (featureID) {
105                        case EntityPackage.NAMED_ELEMENT__ENTITY_NAME:
106                                return getEntityName();
107                }
108                return super.eGet(featureID, resolve, coreType);
109        }
110 
111        /**
112         * <!-- begin-user-doc -->
113         * <!-- end-user-doc -->
114         * @generated
115         */
116        @Override
117        public void eSet(int featureID, Object newValue) {
118                switch (featureID) {
119                        case EntityPackage.NAMED_ELEMENT__ENTITY_NAME:
120                                setEntityName((String)newValue);
121                                return;
122                }
123                super.eSet(featureID, newValue);
124        }
125 
126        /**
127         * <!-- begin-user-doc -->
128         * <!-- end-user-doc -->
129         * @generated
130         */
131        @Override
132        public void eUnset(int featureID) {
133                switch (featureID) {
134                        case EntityPackage.NAMED_ELEMENT__ENTITY_NAME:
135                                setEntityName(ENTITY_NAME_EDEFAULT);
136                                return;
137                }
138                super.eUnset(featureID);
139        }
140 
141        /**
142         * <!-- begin-user-doc -->
143         * <!-- end-user-doc -->
144         * @generated
145         */
146        @Override
147        public boolean eIsSet(int featureID) {
148                switch (featureID) {
149                        case EntityPackage.NAMED_ELEMENT__ENTITY_NAME:
150                                return ENTITY_NAME_EDEFAULT == null ? entityName != null : !ENTITY_NAME_EDEFAULT.equals(entityName);
151                }
152                return super.eIsSet(featureID);
153        }
154 
155        /**
156         * <!-- begin-user-doc -->
157         * <!-- end-user-doc -->
158         * @generated
159         */
160        @Override
161        public String toString() {
162                if (eIsProxy()) return super.toString();
163 
164                StringBuffer result = new StringBuffer(super.toString());
165                result.append(" (entityName: ");
166                result.append(entityName);
167                result.append(')');
168                return result.toString();
169        }
170 
171} //NamedElementImpl

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