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

nameclass, %method, %block, %line, %
NamespaceReferenceImpl.java0%   (0/1)0%   (0/10)0%   (0/148)0%   (0/40)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class NamespaceReferenceImpl0%   (0/1)0%   (0/10)0%   (0/148)0%   (0/40)
NamespaceReferenceImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
basicSetInnerReference_NamespaceReference (AbstractNamedReference, Notificati... 0%   (0/1)0%   (0/29)0%   (0/6)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/11)0%   (0/3)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/13)0%   (0/3)
eIsSet (int): boolean 0%   (0/1)0%   (0/13)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)
getInnerReference_NamespaceReference (): AbstractNamedReference 0%   (0/1)0%   (0/3)0%   (0/1)
setInnerReference_NamespaceReference (AbstractNamedReference): void 0%   (0/1)0%   (0/52)0%   (0/11)

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.common.notify.NotificationChain;
11import org.eclipse.emf.ecore.EClass;
12import org.eclipse.emf.ecore.InternalEObject;
13import org.eclipse.emf.ecore.impl.ENotificationImpl;
14 
15import de.uka.ipd.sdq.stoex.AbstractNamedReference;
16import de.uka.ipd.sdq.stoex.NamespaceReference;
17import de.uka.ipd.sdq.stoex.StoexPackage;
18 
19/**
20 * <!-- begin-user-doc -->
21 * An implementation of the model object '<em><b>Namespace Reference</b></em>'.
22 * <!-- end-user-doc -->
23 * <p>
24 * The following features are implemented:
25 * <ul>
26 *   <li>{@link de.uka.ipd.sdq.stoex.impl.NamespaceReferenceImpl#getInnerReference_NamespaceReference <em>Inner Reference Namespace Reference</em>}</li>
27 * </ul>
28 * </p>
29 *
30 * @generated
31 */
32public class NamespaceReferenceImpl extends AbstractNamedReferenceImpl implements NamespaceReference {
33        /**
34         * <!-- begin-user-doc -->
35         * <!-- end-user-doc -->
36         * @generated
37         */
38        public static final String copyright = "Copyright 2007-2009, SDQ, IPD, U Karlsruhe";
39        /**
40         * The cached value of the '{@link #getInnerReference_NamespaceReference() <em>Inner Reference Namespace Reference</em>}' containment reference.
41         * <!-- begin-user-doc -->
42         * <!-- end-user-doc -->
43         * @see #getInnerReference_NamespaceReference()
44         * @generated
45         * @ordered
46         */
47        protected AbstractNamedReference innerReference_NamespaceReference;
48 
49        /**
50         * <!-- begin-user-doc -->
51         * <!-- end-user-doc -->
52         * @generated
53         */
54        protected NamespaceReferenceImpl() {
55                super();
56        }
57 
58        /**
59         * <!-- begin-user-doc -->
60         * <!-- end-user-doc -->
61         * @generated
62         */
63        @Override
64        protected EClass eStaticClass() {
65                return StoexPackage.Literals.NAMESPACE_REFERENCE;
66        }
67 
68        /**
69         * <!-- begin-user-doc -->
70         * <!-- end-user-doc -->
71         * @generated
72         */
73        public AbstractNamedReference getInnerReference_NamespaceReference() {
74                return innerReference_NamespaceReference;
75        }
76 
77        /**
78         * <!-- begin-user-doc -->
79         * <!-- end-user-doc -->
80         * @generated
81         */
82        public NotificationChain basicSetInnerReference_NamespaceReference(AbstractNamedReference newInnerReference_NamespaceReference, NotificationChain msgs) {
83                AbstractNamedReference oldInnerReference_NamespaceReference = innerReference_NamespaceReference;
84                innerReference_NamespaceReference = newInnerReference_NamespaceReference;
85                if (eNotificationRequired()) {
86                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, StoexPackage.NAMESPACE_REFERENCE__INNER_REFERENCE_NAMESPACE_REFERENCE, oldInnerReference_NamespaceReference, newInnerReference_NamespaceReference);
87                        if (msgs == null) msgs = notification; else msgs.add(notification);
88                }
89                return msgs;
90        }
91 
92        /**
93         * <!-- begin-user-doc -->
94         * <!-- end-user-doc -->
95         * @generated
96         */
97        public void setInnerReference_NamespaceReference(AbstractNamedReference newInnerReference_NamespaceReference) {
98                if (newInnerReference_NamespaceReference != innerReference_NamespaceReference) {
99                        NotificationChain msgs = null;
100                        if (innerReference_NamespaceReference != null)
101                                msgs = ((InternalEObject)innerReference_NamespaceReference).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - StoexPackage.NAMESPACE_REFERENCE__INNER_REFERENCE_NAMESPACE_REFERENCE, null, msgs);
102                        if (newInnerReference_NamespaceReference != null)
103                                msgs = ((InternalEObject)newInnerReference_NamespaceReference).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - StoexPackage.NAMESPACE_REFERENCE__INNER_REFERENCE_NAMESPACE_REFERENCE, null, msgs);
104                        msgs = basicSetInnerReference_NamespaceReference(newInnerReference_NamespaceReference, msgs);
105                        if (msgs != null) msgs.dispatch();
106                }
107                else if (eNotificationRequired())
108                        eNotify(new ENotificationImpl(this, Notification.SET, StoexPackage.NAMESPACE_REFERENCE__INNER_REFERENCE_NAMESPACE_REFERENCE, newInnerReference_NamespaceReference, newInnerReference_NamespaceReference));
109        }
110 
111        /**
112         * <!-- begin-user-doc -->
113         * <!-- end-user-doc -->
114         * @generated
115         */
116        @Override
117        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
118                switch (featureID) {
119                        case StoexPackage.NAMESPACE_REFERENCE__INNER_REFERENCE_NAMESPACE_REFERENCE:
120                                return basicSetInnerReference_NamespaceReference(null, msgs);
121                }
122                return super.eInverseRemove(otherEnd, featureID, msgs);
123        }
124 
125        /**
126         * <!-- begin-user-doc -->
127         * <!-- end-user-doc -->
128         * @generated
129         */
130        @Override
131        public Object eGet(int featureID, boolean resolve, boolean coreType) {
132                switch (featureID) {
133                        case StoexPackage.NAMESPACE_REFERENCE__INNER_REFERENCE_NAMESPACE_REFERENCE:
134                                return getInnerReference_NamespaceReference();
135                }
136                return super.eGet(featureID, resolve, coreType);
137        }
138 
139        /**
140         * <!-- begin-user-doc -->
141         * <!-- end-user-doc -->
142         * @generated
143         */
144        @Override
145        public void eSet(int featureID, Object newValue) {
146                switch (featureID) {
147                        case StoexPackage.NAMESPACE_REFERENCE__INNER_REFERENCE_NAMESPACE_REFERENCE:
148                                setInnerReference_NamespaceReference((AbstractNamedReference)newValue);
149                                return;
150                }
151                super.eSet(featureID, newValue);
152        }
153 
154        /**
155         * <!-- begin-user-doc -->
156         * <!-- end-user-doc -->
157         * @generated
158         */
159        @Override
160        public void eUnset(int featureID) {
161                switch (featureID) {
162                        case StoexPackage.NAMESPACE_REFERENCE__INNER_REFERENCE_NAMESPACE_REFERENCE:
163                                setInnerReference_NamespaceReference((AbstractNamedReference)null);
164                                return;
165                }
166                super.eUnset(featureID);
167        }
168 
169        /**
170         * <!-- begin-user-doc -->
171         * <!-- end-user-doc -->
172         * @generated
173         */
174        @Override
175        public boolean eIsSet(int featureID) {
176                switch (featureID) {
177                        case StoexPackage.NAMESPACE_REFERENCE__INNER_REFERENCE_NAMESPACE_REFERENCE:
178                                return innerReference_NamespaceReference != null;
179                }
180                return super.eIsSet(featureID);
181        }
182 
183} //NamespaceReferenceImpl

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