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

COVERAGE SUMMARY FOR SOURCE FILE [SetVariableActionImpl.java]

nameclass, %method, %block, %line, %
SetVariableActionImpl.java0%   (0/1)0%   (0/9)0%   (0/105)0%   (0/29)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SetVariableActionImpl0%   (0/1)0%   (0/9)0%   (0/105)0%   (0/29)
SetVariableActionImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/11)0%   (0/3)
eInverseAdd (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/15)0%   (0/3)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/15)0%   (0/3)
eIsSet (int): boolean 0%   (0/1)0%   (0/17)0%   (0/3)
eSet (int, Object): void 0%   (0/1)0%   (0/17)0%   (0/6)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/10)0%   (0/5)
getLocalVariableUsages_SetVariableAction (): EList 0%   (0/1)0%   (0/15)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.seff.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.EObjectContainmentWithInverseEList;
15import org.eclipse.emf.ecore.util.InternalEList;
16 
17import de.uka.ipd.sdq.pcm.parameter.ParameterPackage;
18import de.uka.ipd.sdq.pcm.parameter.VariableUsage;
19import de.uka.ipd.sdq.pcm.seff.SeffPackage;
20import de.uka.ipd.sdq.pcm.seff.SetVariableAction;
21 
22/**
23 * <!-- begin-user-doc -->
24 * An implementation of the model object '<em><b>Set Variable Action</b></em>'.
25 * <!-- end-user-doc -->
26 * <p>
27 * The following features are implemented:
28 * <ul>
29 *   <li>{@link de.uka.ipd.sdq.pcm.seff.impl.SetVariableActionImpl#getLocalVariableUsages_SetVariableAction <em>Local Variable Usages Set Variable Action</em>}</li>
30 * </ul>
31 * </p>
32 *
33 * @generated
34 */
35public class SetVariableActionImpl extends AbstractInternalControlFlowActionImpl implements SetVariableAction {
36        /**
37         * <!-- begin-user-doc -->
38         * <!-- end-user-doc -->
39         * @generated
40         */
41        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
42 
43        /**
44         * The cached value of the '{@link #getLocalVariableUsages_SetVariableAction() <em>Local Variable Usages Set Variable Action</em>}' containment reference list.
45         * <!-- begin-user-doc -->
46         * <!-- end-user-doc -->
47         * @see #getLocalVariableUsages_SetVariableAction()
48         * @generated
49         * @ordered
50         */
51        protected EList<VariableUsage> localVariableUsages_SetVariableAction;
52 
53        /**
54         * <!-- begin-user-doc -->
55         * <!-- end-user-doc -->
56         * @generated
57         */
58        protected SetVariableActionImpl() {
59                super();
60        }
61 
62        /**
63         * <!-- begin-user-doc -->
64         * <!-- end-user-doc -->
65         * @generated
66         */
67        @Override
68        protected EClass eStaticClass() {
69                return SeffPackage.Literals.SET_VARIABLE_ACTION;
70        }
71 
72        /**
73         * <!-- begin-user-doc -->
74         * <!-- end-user-doc -->
75         * @generated
76         */
77        public EList<VariableUsage> getLocalVariableUsages_SetVariableAction() {
78                if (localVariableUsages_SetVariableAction == null) {
79                        localVariableUsages_SetVariableAction = new EObjectContainmentWithInverseEList<VariableUsage>(VariableUsage.class, this, SeffPackage.SET_VARIABLE_ACTION__LOCAL_VARIABLE_USAGES_SET_VARIABLE_ACTION, ParameterPackage.VARIABLE_USAGE__SET_VARIABLE_ACTION_VARIABLE_USAGE);
80                }
81                return localVariableUsages_SetVariableAction;
82        }
83 
84        /**
85         * <!-- begin-user-doc -->
86         * <!-- end-user-doc -->
87         * @generated
88         */
89        @SuppressWarnings("unchecked")
90        @Override
91        public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
92                switch (featureID) {
93                        case SeffPackage.SET_VARIABLE_ACTION__LOCAL_VARIABLE_USAGES_SET_VARIABLE_ACTION:
94                                return ((InternalEList<InternalEObject>)(InternalEList<?>)getLocalVariableUsages_SetVariableAction()).basicAdd(otherEnd, msgs);
95                }
96                return super.eInverseAdd(otherEnd, featureID, msgs);
97        }
98 
99        /**
100         * <!-- begin-user-doc -->
101         * <!-- end-user-doc -->
102         * @generated
103         */
104        @Override
105        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
106                switch (featureID) {
107                        case SeffPackage.SET_VARIABLE_ACTION__LOCAL_VARIABLE_USAGES_SET_VARIABLE_ACTION:
108                                return ((InternalEList<?>)getLocalVariableUsages_SetVariableAction()).basicRemove(otherEnd, msgs);
109                }
110                return super.eInverseRemove(otherEnd, featureID, msgs);
111        }
112 
113        /**
114         * <!-- begin-user-doc -->
115         * <!-- end-user-doc -->
116         * @generated
117         */
118        @Override
119        public Object eGet(int featureID, boolean resolve, boolean coreType) {
120                switch (featureID) {
121                        case SeffPackage.SET_VARIABLE_ACTION__LOCAL_VARIABLE_USAGES_SET_VARIABLE_ACTION:
122                                return getLocalVariableUsages_SetVariableAction();
123                }
124                return super.eGet(featureID, resolve, coreType);
125        }
126 
127        /**
128         * <!-- begin-user-doc -->
129         * <!-- end-user-doc -->
130         * @generated
131         */
132        @SuppressWarnings("unchecked")
133        @Override
134        public void eSet(int featureID, Object newValue) {
135                switch (featureID) {
136                        case SeffPackage.SET_VARIABLE_ACTION__LOCAL_VARIABLE_USAGES_SET_VARIABLE_ACTION:
137                                getLocalVariableUsages_SetVariableAction().clear();
138                                getLocalVariableUsages_SetVariableAction().addAll((Collection<? extends VariableUsage>)newValue);
139                                return;
140                }
141                super.eSet(featureID, newValue);
142        }
143 
144        /**
145         * <!-- begin-user-doc -->
146         * <!-- end-user-doc -->
147         * @generated
148         */
149        @Override
150        public void eUnset(int featureID) {
151                switch (featureID) {
152                        case SeffPackage.SET_VARIABLE_ACTION__LOCAL_VARIABLE_USAGES_SET_VARIABLE_ACTION:
153                                getLocalVariableUsages_SetVariableAction().clear();
154                                return;
155                }
156                super.eUnset(featureID);
157        }
158 
159        /**
160         * <!-- begin-user-doc -->
161         * <!-- end-user-doc -->
162         * @generated
163         */
164        @Override
165        public boolean eIsSet(int featureID) {
166                switch (featureID) {
167                        case SeffPackage.SET_VARIABLE_ACTION__LOCAL_VARIABLE_USAGES_SET_VARIABLE_ACTION:
168                                return localVariableUsages_SetVariableAction != null && !localVariableUsages_SetVariableAction.isEmpty();
169                }
170                return super.eIsSet(featureID);
171        }
172 
173} //SetVariableActionImpl

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