aboutsummaryrefslogtreecommitdiffstats
path: root/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/ScopeImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/ScopeImpl.java')
-rw-r--r--Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/ScopeImpl.java279
1 files changed, 279 insertions, 0 deletions
diff --git a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/ScopeImpl.java b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/ScopeImpl.java
new file mode 100644
index 00000000..4699aef6
--- /dev/null
+++ b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/ScopeImpl.java
@@ -0,0 +1,279 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.impl;
4
5import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.PartialTypeInterpratation;
6import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.PartialinterpretationPackage;
7import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.Scope;
8
9import org.eclipse.emf.common.notify.Notification;
10
11import org.eclipse.emf.ecore.EClass;
12import org.eclipse.emf.ecore.InternalEObject;
13
14import org.eclipse.emf.ecore.impl.ENotificationImpl;
15import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>Scope</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.impl.ScopeImpl#getMinNewElements <em>Min New Elements</em>}</li>
26 * <li>{@link hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.impl.ScopeImpl#getMaxNewElements <em>Max New Elements</em>}</li>
27 * <li>{@link hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.impl.ScopeImpl#getTargetTypeInterpretation <em>Target Type Interpretation</em>}</li>
28 * </ul>
29 *
30 * @generated
31 */
32public class ScopeImpl extends MinimalEObjectImpl.Container implements Scope {
33 /**
34 * The default value of the '{@link #getMinNewElements() <em>Min New Elements</em>}' attribute.
35 * <!-- begin-user-doc -->
36 * <!-- end-user-doc -->
37 * @see #getMinNewElements()
38 * @generated
39 * @ordered
40 */
41 protected static final int MIN_NEW_ELEMENTS_EDEFAULT = 0;
42
43 /**
44 * The cached value of the '{@link #getMinNewElements() <em>Min New Elements</em>}' attribute.
45 * <!-- begin-user-doc -->
46 * <!-- end-user-doc -->
47 * @see #getMinNewElements()
48 * @generated
49 * @ordered
50 */
51 protected int minNewElements = MIN_NEW_ELEMENTS_EDEFAULT;
52
53 /**
54 * The default value of the '{@link #getMaxNewElements() <em>Max New Elements</em>}' attribute.
55 * <!-- begin-user-doc -->
56 * <!-- end-user-doc -->
57 * @see #getMaxNewElements()
58 * @generated
59 * @ordered
60 */
61 protected static final int MAX_NEW_ELEMENTS_EDEFAULT = -1;
62
63 /**
64 * The cached value of the '{@link #getMaxNewElements() <em>Max New Elements</em>}' attribute.
65 * <!-- begin-user-doc -->
66 * <!-- end-user-doc -->
67 * @see #getMaxNewElements()
68 * @generated
69 * @ordered
70 */
71 protected int maxNewElements = MAX_NEW_ELEMENTS_EDEFAULT;
72
73 /**
74 * The cached value of the '{@link #getTargetTypeInterpretation() <em>Target Type Interpretation</em>}' reference.
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @see #getTargetTypeInterpretation()
78 * @generated
79 * @ordered
80 */
81 protected PartialTypeInterpratation targetTypeInterpretation;
82
83 /**
84 * <!-- begin-user-doc -->
85 * <!-- end-user-doc -->
86 * @generated
87 */
88 protected ScopeImpl() {
89 super();
90 }
91
92 /**
93 * <!-- begin-user-doc -->
94 * <!-- end-user-doc -->
95 * @generated
96 */
97 @Override
98 protected EClass eStaticClass() {
99 return PartialinterpretationPackage.Literals.SCOPE;
100 }
101
102 /**
103 * <!-- begin-user-doc -->
104 * <!-- end-user-doc -->
105 * @generated
106 */
107 public int getMinNewElements() {
108 return minNewElements;
109 }
110
111 /**
112 * <!-- begin-user-doc -->
113 * <!-- end-user-doc -->
114 * @generated
115 */
116 public void setMinNewElements(int newMinNewElements) {
117 int oldMinNewElements = minNewElements;
118 minNewElements = newMinNewElements;
119 if (eNotificationRequired())
120 eNotify(new ENotificationImpl(this, Notification.SET, PartialinterpretationPackage.SCOPE__MIN_NEW_ELEMENTS, oldMinNewElements, minNewElements));
121 }
122
123 /**
124 * <!-- begin-user-doc -->
125 * <!-- end-user-doc -->
126 * @generated
127 */
128 public int getMaxNewElements() {
129 return maxNewElements;
130 }
131
132 /**
133 * <!-- begin-user-doc -->
134 * <!-- end-user-doc -->
135 * @generated
136 */
137 public void setMaxNewElements(int newMaxNewElements) {
138 int oldMaxNewElements = maxNewElements;
139 maxNewElements = newMaxNewElements;
140 if (eNotificationRequired())
141 eNotify(new ENotificationImpl(this, Notification.SET, PartialinterpretationPackage.SCOPE__MAX_NEW_ELEMENTS, oldMaxNewElements, maxNewElements));
142 }
143
144 /**
145 * <!-- begin-user-doc -->
146 * <!-- end-user-doc -->
147 * @generated
148 */
149 public PartialTypeInterpratation getTargetTypeInterpretation() {
150 if (targetTypeInterpretation != null && targetTypeInterpretation.eIsProxy()) {
151 InternalEObject oldTargetTypeInterpretation = (InternalEObject)targetTypeInterpretation;
152 targetTypeInterpretation = (PartialTypeInterpratation)eResolveProxy(oldTargetTypeInterpretation);
153 if (targetTypeInterpretation != oldTargetTypeInterpretation) {
154 if (eNotificationRequired())
155 eNotify(new ENotificationImpl(this, Notification.RESOLVE, PartialinterpretationPackage.SCOPE__TARGET_TYPE_INTERPRETATION, oldTargetTypeInterpretation, targetTypeInterpretation));
156 }
157 }
158 return targetTypeInterpretation;
159 }
160
161 /**
162 * <!-- begin-user-doc -->
163 * <!-- end-user-doc -->
164 * @generated
165 */
166 public PartialTypeInterpratation basicGetTargetTypeInterpretation() {
167 return targetTypeInterpretation;
168 }
169
170 /**
171 * <!-- begin-user-doc -->
172 * <!-- end-user-doc -->
173 * @generated
174 */
175 public void setTargetTypeInterpretation(PartialTypeInterpratation newTargetTypeInterpretation) {
176 PartialTypeInterpratation oldTargetTypeInterpretation = targetTypeInterpretation;
177 targetTypeInterpretation = newTargetTypeInterpretation;
178 if (eNotificationRequired())
179 eNotify(new ENotificationImpl(this, Notification.SET, PartialinterpretationPackage.SCOPE__TARGET_TYPE_INTERPRETATION, oldTargetTypeInterpretation, targetTypeInterpretation));
180 }
181
182 /**
183 * <!-- begin-user-doc -->
184 * <!-- end-user-doc -->
185 * @generated
186 */
187 @Override
188 public Object eGet(int featureID, boolean resolve, boolean coreType) {
189 switch (featureID) {
190 case PartialinterpretationPackage.SCOPE__MIN_NEW_ELEMENTS:
191 return getMinNewElements();
192 case PartialinterpretationPackage.SCOPE__MAX_NEW_ELEMENTS:
193 return getMaxNewElements();
194 case PartialinterpretationPackage.SCOPE__TARGET_TYPE_INTERPRETATION:
195 if (resolve) return getTargetTypeInterpretation();
196 return basicGetTargetTypeInterpretation();
197 }
198 return super.eGet(featureID, resolve, coreType);
199 }
200
201 /**
202 * <!-- begin-user-doc -->
203 * <!-- end-user-doc -->
204 * @generated
205 */
206 @Override
207 public void eSet(int featureID, Object newValue) {
208 switch (featureID) {
209 case PartialinterpretationPackage.SCOPE__MIN_NEW_ELEMENTS:
210 setMinNewElements((Integer)newValue);
211 return;
212 case PartialinterpretationPackage.SCOPE__MAX_NEW_ELEMENTS:
213 setMaxNewElements((Integer)newValue);
214 return;
215 case PartialinterpretationPackage.SCOPE__TARGET_TYPE_INTERPRETATION:
216 setTargetTypeInterpretation((PartialTypeInterpratation)newValue);
217 return;
218 }
219 super.eSet(featureID, newValue);
220 }
221
222 /**
223 * <!-- begin-user-doc -->
224 * <!-- end-user-doc -->
225 * @generated
226 */
227 @Override
228 public void eUnset(int featureID) {
229 switch (featureID) {
230 case PartialinterpretationPackage.SCOPE__MIN_NEW_ELEMENTS:
231 setMinNewElements(MIN_NEW_ELEMENTS_EDEFAULT);
232 return;
233 case PartialinterpretationPackage.SCOPE__MAX_NEW_ELEMENTS:
234 setMaxNewElements(MAX_NEW_ELEMENTS_EDEFAULT);
235 return;
236 case PartialinterpretationPackage.SCOPE__TARGET_TYPE_INTERPRETATION:
237 setTargetTypeInterpretation((PartialTypeInterpratation)null);
238 return;
239 }
240 super.eUnset(featureID);
241 }
242
243 /**
244 * <!-- begin-user-doc -->
245 * <!-- end-user-doc -->
246 * @generated
247 */
248 @Override
249 public boolean eIsSet(int featureID) {
250 switch (featureID) {
251 case PartialinterpretationPackage.SCOPE__MIN_NEW_ELEMENTS:
252 return minNewElements != MIN_NEW_ELEMENTS_EDEFAULT;
253 case PartialinterpretationPackage.SCOPE__MAX_NEW_ELEMENTS:
254 return maxNewElements != MAX_NEW_ELEMENTS_EDEFAULT;
255 case PartialinterpretationPackage.SCOPE__TARGET_TYPE_INTERPRETATION:
256 return targetTypeInterpretation != null;
257 }
258 return super.eIsSet(featureID);
259 }
260
261 /**
262 * <!-- begin-user-doc -->
263 * <!-- end-user-doc -->
264 * @generated
265 */
266 @Override
267 public String toString() {
268 if (eIsProxy()) return super.toString();
269
270 StringBuffer result = new StringBuffer(super.toString());
271 result.append(" (minNewElements: ");
272 result.append(minNewElements);
273 result.append(", maxNewElements: ");
274 result.append(maxNewElements);
275 result.append(')');
276 return result.toString();
277 }
278
279} //ScopeImpl