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

COVERAGE SUMMARY FOR SOURCE FILE [AbstractNamedReferenceImpl.java]

nameclass, %method, %block, %line, %
AbstractNamedReferenceImpl.java0%   (0/1)0%   (0/10)0%   (0/120)0%   (0/34)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AbstractNamedReferenceImpl0%   (0/1)0%   (0/10)0%   (0/120)0%   (0/34)
<static initializer> 0%   (0/1)0%   (0/3)0%   (0/2)
AbstractNamedReferenceImpl (): 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)
getReferenceName (): String 0%   (0/1)0%   (0/3)0%   (0/1)
setReferenceName (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>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.stoex.impl;
8 
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.ecore.EClass;
11import org.eclipse.emf.ecore.impl.ENotificationImpl;
12import org.eclipse.emf.ecore.impl.EObjectImpl;
13 
14import de.uka.ipd.sdq.stoex.AbstractNamedReference;
15import de.uka.ipd.sdq.stoex.StoexPackage;
16 
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>Abstract Named Reference</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * <ul>
24 *   <li>{@link de.uka.ipd.sdq.stoex.impl.AbstractNamedReferenceImpl#getReferenceName <em>Reference Name</em>}</li>
25 * </ul>
26 * </p>
27 *
28 * @generated
29 */
30public abstract class AbstractNamedReferenceImpl extends EObjectImpl implements AbstractNamedReference {
31        /**
32         * <!-- begin-user-doc -->
33         * <!-- end-user-doc -->
34         * @generated
35         */
36        public static final String copyright = "Copyright 2007-2009, SDQ, IPD, U Karlsruhe";
37 
38        /**
39         * The default value of the '{@link #getReferenceName() <em>Reference Name</em>}' attribute.
40         * <!-- begin-user-doc -->
41         * <!-- end-user-doc -->
42         * @see #getReferenceName()
43         * @generated
44         * @ordered
45         */
46        protected static final String REFERENCE_NAME_EDEFAULT = null;
47 
48        /**
49         * The cached value of the '{@link #getReferenceName() <em>Reference Name</em>}' attribute.
50         * <!-- begin-user-doc -->
51         * <!-- end-user-doc -->
52         * @see #getReferenceName()
53         * @generated
54         * @ordered
55         */
56        protected String referenceName = REFERENCE_NAME_EDEFAULT;
57 
58        /**
59         * <!-- begin-user-doc -->
60         * <!-- end-user-doc -->
61         * @generated
62         */
63        protected AbstractNamedReferenceImpl() {
64                super();
65        }
66 
67        /**
68         * <!-- begin-user-doc -->
69         * <!-- end-user-doc -->
70         * @generated
71         */
72        @Override
73        protected EClass eStaticClass() {
74                return StoexPackage.Literals.ABSTRACT_NAMED_REFERENCE;
75        }
76 
77        /**
78         * <!-- begin-user-doc -->
79         * <!-- end-user-doc -->
80         * @generated
81         */
82        public String getReferenceName() {
83                return referenceName;
84        }
85 
86        /**
87         * <!-- begin-user-doc -->
88         * <!-- end-user-doc -->
89         * @generated
90         */
91        public void setReferenceName(String newReferenceName) {
92                String oldReferenceName = referenceName;
93                referenceName = newReferenceName;
94                if (eNotificationRequired())
95                        eNotify(new ENotificationImpl(this, Notification.SET, StoexPackage.ABSTRACT_NAMED_REFERENCE__REFERENCE_NAME, oldReferenceName, referenceName));
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 StoexPackage.ABSTRACT_NAMED_REFERENCE__REFERENCE_NAME:
107                                return getReferenceName();
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 StoexPackage.ABSTRACT_NAMED_REFERENCE__REFERENCE_NAME:
121                                setReferenceName((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 StoexPackage.ABSTRACT_NAMED_REFERENCE__REFERENCE_NAME:
136                                setReferenceName(REFERENCE_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 StoexPackage.ABSTRACT_NAMED_REFERENCE__REFERENCE_NAME:
151                                return REFERENCE_NAME_EDEFAULT == null ? referenceName != null : !REFERENCE_NAME_EDEFAULT.equals(referenceName);
152                }
153                return super.eIsSet(featureID);
154        }
155 
156        /**
157         * <!-- begin-user-doc -->
158         * <!-- end-user-doc -->
159         * @generated
160         */
161        @Override
162        public String toString() {
163                if (eIsProxy()) return super.toString();
164 
165                StringBuffer result = new StringBuffer(super.toString());
166                result.append(" (referenceName: ");
167                result.append(referenceName);
168                result.append(')');
169                return result.toString();
170        }
171 
172} //AbstractNamedReferenceImpl

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