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

nameclass, %method, %block, %line, %
SignatureImpl.java0%   (0/1)0%   (0/9)0%   (0/131)0%   (0/36)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SignatureImpl0%   (0/1)0%   (0/9)0%   (0/131)0%   (0/36)
SignatureImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/14)0%   (0/4)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/15)0%   (0/3)
eIsSet (int): boolean 0%   (0/1)0%   (0/28)0%   (0/4)
eSet (int, Object): void 0%   (0/1)0%   (0/27)0%   (0/9)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/14)0%   (0/7)
getExceptions__Signature (): EList 0%   (0/1)0%   (0/14)0%   (0/3)
getFailureType (): EList 0%   (0/1)0%   (0/14)0%   (0/3)

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 java.util.Collection;
9 
10import org.eclipse.emf.common.notify.NotificationChain;
11import org.eclipse.emf.common.util.EList;
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14import org.eclipse.emf.ecore.util.EObjectContainmentEList;
15import org.eclipse.emf.ecore.util.EObjectResolvingEList;
16import org.eclipse.emf.ecore.util.InternalEList;
17 
18import de.uka.ipd.sdq.pcm.core.entity.impl.EntityImpl;
19import de.uka.ipd.sdq.pcm.reliability.FailureType;
20import de.uka.ipd.sdq.pcm.repository.ExceptionType;
21import de.uka.ipd.sdq.pcm.repository.RepositoryPackage;
22import de.uka.ipd.sdq.pcm.repository.Signature;
23 
24/**
25 * <!-- begin-user-doc -->
26 * An implementation of the model object '<em><b>Signature</b></em>'.
27 * <!-- end-user-doc -->
28 * <p>
29 * The following features are implemented:
30 * <ul>
31 *   <li>{@link de.uka.ipd.sdq.pcm.repository.impl.SignatureImpl#getExceptions__Signature <em>Exceptions Signature</em>}</li>
32 *   <li>{@link de.uka.ipd.sdq.pcm.repository.impl.SignatureImpl#getFailureType <em>Failure Type</em>}</li>
33 * </ul>
34 * </p>
35 *
36 * @generated
37 */
38public abstract class SignatureImpl extends EntityImpl implements Signature {
39        /**
40         * <!-- begin-user-doc -->
41         * <!-- end-user-doc -->
42         * @generated
43         */
44        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
45 
46        /**
47         * The cached value of the '{@link #getExceptions__Signature() <em>Exceptions Signature</em>}' containment reference list.
48         * <!-- begin-user-doc -->
49         * <!-- end-user-doc -->
50         * @see #getExceptions__Signature()
51         * @generated
52         * @ordered
53         */
54        protected EList<ExceptionType> exceptions__Signature;
55 
56        /**
57         * The cached value of the '{@link #getFailureType() <em>Failure Type</em>}' reference list.
58         * <!-- begin-user-doc -->
59         * <!-- end-user-doc -->
60         * @see #getFailureType()
61         * @generated
62         * @ordered
63         */
64        protected EList<FailureType> failureType;
65 
66        /**
67         * <!-- begin-user-doc -->
68         * <!-- end-user-doc -->
69         * @generated
70         */
71        protected SignatureImpl() {
72                super();
73        }
74 
75        /**
76         * <!-- begin-user-doc -->
77         * <!-- end-user-doc -->
78         * @generated
79         */
80        @Override
81        protected EClass eStaticClass() {
82                return RepositoryPackage.Literals.SIGNATURE;
83        }
84 
85        /**
86         * <!-- begin-user-doc -->
87         * <!-- end-user-doc -->
88         * @generated
89         */
90        public EList<ExceptionType> getExceptions__Signature() {
91                if (exceptions__Signature == null) {
92                        exceptions__Signature = new EObjectContainmentEList<ExceptionType>(ExceptionType.class, this, RepositoryPackage.SIGNATURE__EXCEPTIONS_SIGNATURE);
93                }
94                return exceptions__Signature;
95        }
96 
97        /**
98         * <!-- begin-user-doc -->
99         * <!-- end-user-doc -->
100         * @generated
101         */
102        public EList<FailureType> getFailureType() {
103                if (failureType == null) {
104                        failureType = new EObjectResolvingEList<FailureType>(FailureType.class, this, RepositoryPackage.SIGNATURE__FAILURE_TYPE);
105                }
106                return failureType;
107        }
108 
109        /**
110         * <!-- begin-user-doc -->
111         * <!-- end-user-doc -->
112         * @generated
113         */
114        @Override
115        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
116                switch (featureID) {
117                        case RepositoryPackage.SIGNATURE__EXCEPTIONS_SIGNATURE:
118                                return ((InternalEList<?>)getExceptions__Signature()).basicRemove(otherEnd, msgs);
119                }
120                return super.eInverseRemove(otherEnd, featureID, msgs);
121        }
122 
123        /**
124         * <!-- begin-user-doc -->
125         * <!-- end-user-doc -->
126         * @generated
127         */
128        @Override
129        public Object eGet(int featureID, boolean resolve, boolean coreType) {
130                switch (featureID) {
131                        case RepositoryPackage.SIGNATURE__EXCEPTIONS_SIGNATURE:
132                                return getExceptions__Signature();
133                        case RepositoryPackage.SIGNATURE__FAILURE_TYPE:
134                                return getFailureType();
135                }
136                return super.eGet(featureID, resolve, coreType);
137        }
138 
139        /**
140         * <!-- begin-user-doc -->
141         * <!-- end-user-doc -->
142         * @generated
143         */
144        @SuppressWarnings("unchecked")
145        @Override
146        public void eSet(int featureID, Object newValue) {
147                switch (featureID) {
148                        case RepositoryPackage.SIGNATURE__EXCEPTIONS_SIGNATURE:
149                                getExceptions__Signature().clear();
150                                getExceptions__Signature().addAll((Collection<? extends ExceptionType>)newValue);
151                                return;
152                        case RepositoryPackage.SIGNATURE__FAILURE_TYPE:
153                                getFailureType().clear();
154                                getFailureType().addAll((Collection<? extends FailureType>)newValue);
155                                return;
156                }
157                super.eSet(featureID, newValue);
158        }
159 
160        /**
161         * <!-- begin-user-doc -->
162         * <!-- end-user-doc -->
163         * @generated
164         */
165        @Override
166        public void eUnset(int featureID) {
167                switch (featureID) {
168                        case RepositoryPackage.SIGNATURE__EXCEPTIONS_SIGNATURE:
169                                getExceptions__Signature().clear();
170                                return;
171                        case RepositoryPackage.SIGNATURE__FAILURE_TYPE:
172                                getFailureType().clear();
173                                return;
174                }
175                super.eUnset(featureID);
176        }
177 
178        /**
179         * <!-- begin-user-doc -->
180         * <!-- end-user-doc -->
181         * @generated
182         */
183        @Override
184        public boolean eIsSet(int featureID) {
185                switch (featureID) {
186                        case RepositoryPackage.SIGNATURE__EXCEPTIONS_SIGNATURE:
187                                return exceptions__Signature != null && !exceptions__Signature.isEmpty();
188                        case RepositoryPackage.SIGNATURE__FAILURE_TYPE:
189                                return failureType != null && !failureType.isEmpty();
190                }
191                return super.eIsSet(featureID);
192        }
193 
194} //SignatureImpl

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