EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][LqnCore.impl]

COVERAGE SUMMARY FOR SOURCE FILE [BindTypeImpl.java]

nameclass, %method, %block, %line, %
BindTypeImpl.java0%   (0/1)0%   (0/10)0%   (0/187)0%   (0/48)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class BindTypeImpl0%   (0/1)0%   (0/10)0%   (0/187)0%   (0/48)
BindTypeImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/17)0%   (0/5)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/29)0%   (0/5)
eIsSet (int): boolean 0%   (0/1)0%   (0/39)0%   (0/5)
eSet (int, Object): void 0%   (0/1)0%   (0/37)0%   (0/12)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/18)0%   (0/9)
getParameter (): EList 0%   (0/1)0%   (0/14)0%   (0/3)
getPortBinding (): EList 0%   (0/1)0%   (0/14)0%   (0/3)
getProcessorBinding (): EList 0%   (0/1)0%   (0/14)0%   (0/3)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package LqnCore.impl;
8 
9import LqnCore.BindType;
10import LqnCore.LqnCorePackage;
11import LqnCore.ParameterType;
12import LqnCore.PortBindingType;
13import LqnCore.ProcessorBindingType;
14 
15import java.util.Collection;
16 
17import org.eclipse.emf.common.notify.NotificationChain;
18 
19import org.eclipse.emf.common.util.EList;
20 
21import org.eclipse.emf.ecore.EClass;
22import org.eclipse.emf.ecore.InternalEObject;
23 
24import org.eclipse.emf.ecore.impl.EObjectImpl;
25 
26import org.eclipse.emf.ecore.util.EObjectContainmentEList;
27import org.eclipse.emf.ecore.util.InternalEList;
28 
29/**
30 * <!-- begin-user-doc -->
31 * An implementation of the model object '<em><b>Bind Type</b></em>'.
32 * <!-- end-user-doc -->
33 * <p>
34 * The following features are implemented:
35 * <ul>
36 *   <li>{@link LqnCore.impl.BindTypeImpl#getParameter <em>Parameter</em>}</li>
37 *   <li>{@link LqnCore.impl.BindTypeImpl#getProcessorBinding <em>Processor Binding</em>}</li>
38 *   <li>{@link LqnCore.impl.BindTypeImpl#getPortBinding <em>Port Binding</em>}</li>
39 * </ul>
40 * </p>
41 *
42 * @generated
43 */
44public class BindTypeImpl extends EObjectImpl implements BindType {
45        /**
46         * The cached value of the '{@link #getParameter() <em>Parameter</em>}' containment reference list.
47         * <!-- begin-user-doc -->
48         * <!-- end-user-doc -->
49         * @see #getParameter()
50         * @generated
51         * @ordered
52         */
53        protected EList<ParameterType> parameter;
54 
55        /**
56         * The cached value of the '{@link #getProcessorBinding() <em>Processor Binding</em>}' containment reference list.
57         * <!-- begin-user-doc -->
58         * <!-- end-user-doc -->
59         * @see #getProcessorBinding()
60         * @generated
61         * @ordered
62         */
63        protected EList<ProcessorBindingType> processorBinding;
64 
65        /**
66         * The cached value of the '{@link #getPortBinding() <em>Port Binding</em>}' containment reference list.
67         * <!-- begin-user-doc -->
68         * <!-- end-user-doc -->
69         * @see #getPortBinding()
70         * @generated
71         * @ordered
72         */
73        protected EList<PortBindingType> portBinding;
74 
75        /**
76         * <!-- begin-user-doc -->
77         * <!-- end-user-doc -->
78         * @generated
79         */
80        protected BindTypeImpl() {
81                super();
82        }
83 
84        /**
85         * <!-- begin-user-doc -->
86         * <!-- end-user-doc -->
87         * @generated
88         */
89        @Override
90        protected EClass eStaticClass() {
91                return LqnCorePackage.Literals.BIND_TYPE;
92        }
93 
94        /**
95         * <!-- begin-user-doc -->
96         * <!-- end-user-doc -->
97         * @generated
98         */
99        public EList<ParameterType> getParameter() {
100                if (parameter == null) {
101                        parameter = new EObjectContainmentEList<ParameterType>(ParameterType.class, this, LqnCorePackage.BIND_TYPE__PARAMETER);
102                }
103                return parameter;
104        }
105 
106        /**
107         * <!-- begin-user-doc -->
108         * <!-- end-user-doc -->
109         * @generated
110         */
111        public EList<ProcessorBindingType> getProcessorBinding() {
112                if (processorBinding == null) {
113                        processorBinding = new EObjectContainmentEList<ProcessorBindingType>(ProcessorBindingType.class, this, LqnCorePackage.BIND_TYPE__PROCESSOR_BINDING);
114                }
115                return processorBinding;
116        }
117 
118        /**
119         * <!-- begin-user-doc -->
120         * <!-- end-user-doc -->
121         * @generated
122         */
123        public EList<PortBindingType> getPortBinding() {
124                if (portBinding == null) {
125                        portBinding = new EObjectContainmentEList<PortBindingType>(PortBindingType.class, this, LqnCorePackage.BIND_TYPE__PORT_BINDING);
126                }
127                return portBinding;
128        }
129 
130        /**
131         * <!-- begin-user-doc -->
132         * <!-- end-user-doc -->
133         * @generated
134         */
135        @Override
136        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
137                switch (featureID) {
138                        case LqnCorePackage.BIND_TYPE__PARAMETER:
139                                return ((InternalEList<?>)getParameter()).basicRemove(otherEnd, msgs);
140                        case LqnCorePackage.BIND_TYPE__PROCESSOR_BINDING:
141                                return ((InternalEList<?>)getProcessorBinding()).basicRemove(otherEnd, msgs);
142                        case LqnCorePackage.BIND_TYPE__PORT_BINDING:
143                                return ((InternalEList<?>)getPortBinding()).basicRemove(otherEnd, msgs);
144                }
145                return super.eInverseRemove(otherEnd, featureID, msgs);
146        }
147 
148        /**
149         * <!-- begin-user-doc -->
150         * <!-- end-user-doc -->
151         * @generated
152         */
153        @Override
154        public Object eGet(int featureID, boolean resolve, boolean coreType) {
155                switch (featureID) {
156                        case LqnCorePackage.BIND_TYPE__PARAMETER:
157                                return getParameter();
158                        case LqnCorePackage.BIND_TYPE__PROCESSOR_BINDING:
159                                return getProcessorBinding();
160                        case LqnCorePackage.BIND_TYPE__PORT_BINDING:
161                                return getPortBinding();
162                }
163                return super.eGet(featureID, resolve, coreType);
164        }
165 
166        /**
167         * <!-- begin-user-doc -->
168         * <!-- end-user-doc -->
169         * @generated
170         */
171        @SuppressWarnings("unchecked")
172        @Override
173        public void eSet(int featureID, Object newValue) {
174                switch (featureID) {
175                        case LqnCorePackage.BIND_TYPE__PARAMETER:
176                                getParameter().clear();
177                                getParameter().addAll((Collection<? extends ParameterType>)newValue);
178                                return;
179                        case LqnCorePackage.BIND_TYPE__PROCESSOR_BINDING:
180                                getProcessorBinding().clear();
181                                getProcessorBinding().addAll((Collection<? extends ProcessorBindingType>)newValue);
182                                return;
183                        case LqnCorePackage.BIND_TYPE__PORT_BINDING:
184                                getPortBinding().clear();
185                                getPortBinding().addAll((Collection<? extends PortBindingType>)newValue);
186                                return;
187                }
188                super.eSet(featureID, newValue);
189        }
190 
191        /**
192         * <!-- begin-user-doc -->
193         * <!-- end-user-doc -->
194         * @generated
195         */
196        @Override
197        public void eUnset(int featureID) {
198                switch (featureID) {
199                        case LqnCorePackage.BIND_TYPE__PARAMETER:
200                                getParameter().clear();
201                                return;
202                        case LqnCorePackage.BIND_TYPE__PROCESSOR_BINDING:
203                                getProcessorBinding().clear();
204                                return;
205                        case LqnCorePackage.BIND_TYPE__PORT_BINDING:
206                                getPortBinding().clear();
207                                return;
208                }
209                super.eUnset(featureID);
210        }
211 
212        /**
213         * <!-- begin-user-doc -->
214         * <!-- end-user-doc -->
215         * @generated
216         */
217        @Override
218        public boolean eIsSet(int featureID) {
219                switch (featureID) {
220                        case LqnCorePackage.BIND_TYPE__PARAMETER:
221                                return parameter != null && !parameter.isEmpty();
222                        case LqnCorePackage.BIND_TYPE__PROCESSOR_BINDING:
223                                return processorBinding != null && !processorBinding.isEmpty();
224                        case LqnCorePackage.BIND_TYPE__PORT_BINDING:
225                                return portBinding != null && !portBinding.isEmpty();
226                }
227                return super.eIsSet(featureID);
228        }
229 
230} //BindTypeImpl

[all classes][LqnCore.impl]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov