1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package de.uka.ipd.sdq.pcm.designdecision.QualityProperties.impl; |
8 | |
9 | |
10 | import de.uka.ipd.sdq.pcm.designdecision.QualityProperties.QualityPropertiesPackage; |
11 | import de.uka.ipd.sdq.pcm.designdecision.QualityProperties.QualityProperty; |
12 | |
13 | import org.eclipse.emf.common.notify.Notification; |
14 | |
15 | import org.eclipse.emf.ecore.EClass; |
16 | import org.eclipse.emf.ecore.InternalEObject; |
17 | |
18 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
19 | import org.eclipse.emf.ecore.impl.EObjectImpl; |
20 | |
21 | /** |
22 | * <!-- begin-user-doc --> |
23 | * An implementation of the model object '<em><b>Quality Property</b></em>'. |
24 | * <!-- end-user-doc --> |
25 | * <p> |
26 | * The following features are implemented: |
27 | * <ul> |
28 | * <li>{@link de.uka.ipd.sdq.pcm.designdecision.QualityProperties.impl.QualityPropertyImpl#getQualityValue <em>Quality Value</em>}</li> |
29 | * </ul> |
30 | * </p> |
31 | * |
32 | * @generated |
33 | */ |
34 | public abstract class QualityPropertyImpl extends EObjectImpl implements QualityProperty { |
35 | /** |
36 | * The default value of the '{@link #getQualityValue() <em>Quality Value</em>}' attribute. |
37 | * <!-- begin-user-doc --> |
38 | * <!-- end-user-doc --> |
39 | * @see #getQualityValue() |
40 | * @generated |
41 | * @ordered |
42 | */ |
43 | protected static final Object QUALITY_VALUE_EDEFAULT = null; |
44 | |
45 | /** |
46 | * <!-- begin-user-doc --> |
47 | * <!-- end-user-doc --> |
48 | * @generated |
49 | */ |
50 | protected QualityPropertyImpl() { |
51 | super(); |
52 | } |
53 | |
54 | /** |
55 | * <!-- begin-user-doc --> |
56 | * <!-- end-user-doc --> |
57 | * @generated |
58 | */ |
59 | @Override |
60 | protected EClass eStaticClass() { |
61 | return QualityPropertiesPackage.Literals.QUALITY_PROPERTY; |
62 | } |
63 | |
64 | /** |
65 | * <!-- begin-user-doc --> |
66 | * <!-- end-user-doc --> |
67 | * @generated |
68 | */ |
69 | public Object getQualityValue() { |
70 | // TODO: implement this method to return the 'Quality Value' attribute |
71 | // Ensure that you remove @generated or mark it @generated NOT |
72 | throw new UnsupportedOperationException(); |
73 | } |
74 | |
75 | /** |
76 | * <!-- begin-user-doc --> |
77 | * <!-- end-user-doc --> |
78 | * @generated |
79 | */ |
80 | public void setQualityValue(Object newQualityValue) { |
81 | // TODO: implement this method to set the 'Quality Value' attribute |
82 | // Ensure that you remove @generated or mark it @generated NOT |
83 | throw new UnsupportedOperationException(); |
84 | } |
85 | |
86 | /** |
87 | * <!-- begin-user-doc --> |
88 | * <!-- end-user-doc --> |
89 | * @generated |
90 | */ |
91 | @Override |
92 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
93 | switch (featureID) { |
94 | case QualityPropertiesPackage.QUALITY_PROPERTY__QUALITY_VALUE: |
95 | return getQualityValue(); |
96 | } |
97 | return super.eGet(featureID, resolve, coreType); |
98 | } |
99 | |
100 | /** |
101 | * <!-- begin-user-doc --> |
102 | * <!-- end-user-doc --> |
103 | * @generated |
104 | */ |
105 | @Override |
106 | public void eSet(int featureID, Object newValue) { |
107 | switch (featureID) { |
108 | case QualityPropertiesPackage.QUALITY_PROPERTY__QUALITY_VALUE: |
109 | setQualityValue(newValue); |
110 | return; |
111 | } |
112 | super.eSet(featureID, newValue); |
113 | } |
114 | |
115 | /** |
116 | * <!-- begin-user-doc --> |
117 | * <!-- end-user-doc --> |
118 | * @generated |
119 | */ |
120 | @Override |
121 | public void eUnset(int featureID) { |
122 | switch (featureID) { |
123 | case QualityPropertiesPackage.QUALITY_PROPERTY__QUALITY_VALUE: |
124 | setQualityValue(QUALITY_VALUE_EDEFAULT); |
125 | return; |
126 | } |
127 | super.eUnset(featureID); |
128 | } |
129 | |
130 | /** |
131 | * <!-- begin-user-doc --> |
132 | * <!-- end-user-doc --> |
133 | * @generated |
134 | */ |
135 | @Override |
136 | public boolean eIsSet(int featureID) { |
137 | switch (featureID) { |
138 | case QualityPropertiesPackage.QUALITY_PROPERTY__QUALITY_VALUE: |
139 | return QUALITY_VALUE_EDEFAULT == null ? getQualityValue() != null : !QUALITY_VALUE_EDEFAULT.equals(getQualityValue()); |
140 | } |
141 | return super.eIsSet(featureID); |
142 | } |
143 | |
144 | } //QualityPropertyImpl |