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

COVERAGE SUMMARY FOR SOURCE FILE [SetLiteralImpl.java]

nameclass, %method, %block, %line, %
SetLiteralImpl.java0%   (0/1)0%   (0/7)0%   (0/74)0%   (0/23)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SetLiteralImpl0%   (0/1)0%   (0/7)0%   (0/74)0%   (0/23)
SetLiteralImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/11)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)
getValues (): EList 0%   (0/1)0%   (0/14)0%   (0/3)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.dsexplore.qml.contract.QMLContract.impl;
8 
9import de.uka.ipd.sdq.dsexplore.qml.contract.QMLContract.QMLContractPackage;
10import de.uka.ipd.sdq.dsexplore.qml.contract.QMLContract.SetLiteral;
11 
12import de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.Element;
13 
14import java.util.Collection;
15 
16import org.eclipse.emf.common.util.EList;
17 
18import org.eclipse.emf.ecore.EClass;
19 
20import org.eclipse.emf.ecore.util.EObjectResolvingEList;
21 
22/**
23 * <!-- begin-user-doc -->
24 * An implementation of the model object '<em><b>Set Literal</b></em>'.
25 * <!-- end-user-doc -->
26 * <p>
27 * The following features are implemented:
28 * <ul>
29 *   <li>{@link de.uka.ipd.sdq.dsexplore.qml.contract.QMLContract.impl.SetLiteralImpl#getValues <em>Values</em>}</li>
30 * </ul>
31 * </p>
32 *
33 * @generated
34 */
35public class SetLiteralImpl extends ValueLiteralImpl implements SetLiteral {
36        /**
37         * The cached value of the '{@link #getValues() <em>Values</em>}' reference list.
38         * <!-- begin-user-doc -->
39         * <!-- end-user-doc -->
40         * @see #getValues()
41         * @generated
42         * @ordered
43         */
44        protected EList<Element> values;
45 
46        /**
47         * <!-- begin-user-doc -->
48         * <!-- end-user-doc -->
49         * @generated
50         */
51        protected SetLiteralImpl() {
52                super();
53        }
54 
55        /**
56         * <!-- begin-user-doc -->
57         * <!-- end-user-doc -->
58         * @generated
59         */
60        @Override
61        protected EClass eStaticClass() {
62                return QMLContractPackage.Literals.SET_LITERAL;
63        }
64 
65        /**
66         * <!-- begin-user-doc -->
67         * <!-- end-user-doc -->
68         * @generated
69         */
70        public EList<Element> getValues() {
71                if (values == null) {
72                        values = new EObjectResolvingEList<Element>(Element.class, this, QMLContractPackage.SET_LITERAL__VALUES);
73                }
74                return values;
75        }
76 
77        /**
78         * <!-- begin-user-doc -->
79         * <!-- end-user-doc -->
80         * @generated
81         */
82        @Override
83        public Object eGet(int featureID, boolean resolve, boolean coreType) {
84                switch (featureID) {
85                        case QMLContractPackage.SET_LITERAL__VALUES:
86                                return getValues();
87                }
88                return super.eGet(featureID, resolve, coreType);
89        }
90 
91        /**
92         * <!-- begin-user-doc -->
93         * <!-- end-user-doc -->
94         * @generated
95         */
96        @SuppressWarnings("unchecked")
97        @Override
98        public void eSet(int featureID, Object newValue) {
99                switch (featureID) {
100                        case QMLContractPackage.SET_LITERAL__VALUES:
101                                getValues().clear();
102                                getValues().addAll((Collection<? extends Element>)newValue);
103                                return;
104                }
105                super.eSet(featureID, newValue);
106        }
107 
108        /**
109         * <!-- begin-user-doc -->
110         * <!-- end-user-doc -->
111         * @generated
112         */
113        @Override
114        public void eUnset(int featureID) {
115                switch (featureID) {
116                        case QMLContractPackage.SET_LITERAL__VALUES:
117                                getValues().clear();
118                                return;
119                }
120                super.eUnset(featureID);
121        }
122 
123        /**
124         * <!-- begin-user-doc -->
125         * <!-- end-user-doc -->
126         * @generated
127         */
128        @Override
129        public boolean eIsSet(int featureID) {
130                switch (featureID) {
131                        case QMLContractPackage.SET_LITERAL__VALUES:
132                                return values != null && !values.isEmpty();
133                }
134                return super.eIsSet(featureID);
135        }
136 
137} //SetLiteralImpl

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