aboutsummaryrefslogtreecommitdiffstats
path: root/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntervallNumberImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntervallNumberImpl.java')
-rw-r--r--Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntervallNumberImpl.java289
1 files changed, 289 insertions, 0 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntervallNumberImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntervallNumberImpl.java
new file mode 100644
index 00000000..6079cc3a
--- /dev/null
+++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/IntervallNumberImpl.java
@@ -0,0 +1,289 @@
1/**
2 * generated by Xtext 2.10.0
3 */
4package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl;
5
6import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage;
7import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.IntervallNumber;
8
9import org.eclipse.emf.common.notify.Notification;
10
11import org.eclipse.emf.ecore.EClass;
12
13import org.eclipse.emf.ecore.impl.ENotificationImpl;
14
15/**
16 * <!-- begin-user-doc -->
17 * An implementation of the model object '<em><b>Intervall Number</b></em>'.
18 * <!-- end-user-doc -->
19 * <p>
20 * The following features are implemented:
21 * </p>
22 * <ul>
23 * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.IntervallNumberImpl#getMin <em>Min</em>}</li>
24 * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.IntervallNumberImpl#getMaxNumber <em>Max Number</em>}</li>
25 * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.IntervallNumberImpl#isMaxUnlimited <em>Max Unlimited</em>}</li>
26 * </ul>
27 *
28 * @generated
29 */
30public class IntervallNumberImpl extends NumberSpecificationImpl implements IntervallNumber
31{
32 /**
33 * The default value of the '{@link #getMin() <em>Min</em>}' attribute.
34 * <!-- begin-user-doc -->
35 * <!-- end-user-doc -->
36 * @see #getMin()
37 * @generated
38 * @ordered
39 */
40 protected static final int MIN_EDEFAULT = 0;
41
42 /**
43 * The cached value of the '{@link #getMin() <em>Min</em>}' attribute.
44 * <!-- begin-user-doc -->
45 * <!-- end-user-doc -->
46 * @see #getMin()
47 * @generated
48 * @ordered
49 */
50 protected int min = MIN_EDEFAULT;
51
52 /**
53 * The default value of the '{@link #getMaxNumber() <em>Max Number</em>}' attribute.
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @see #getMaxNumber()
57 * @generated
58 * @ordered
59 */
60 protected static final int MAX_NUMBER_EDEFAULT = 0;
61
62 /**
63 * The cached value of the '{@link #getMaxNumber() <em>Max Number</em>}' attribute.
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @see #getMaxNumber()
67 * @generated
68 * @ordered
69 */
70 protected int maxNumber = MAX_NUMBER_EDEFAULT;
71
72 /**
73 * The default value of the '{@link #isMaxUnlimited() <em>Max Unlimited</em>}' attribute.
74 * <!-- begin-user-doc -->
75 * <!-- end-user-doc -->
76 * @see #isMaxUnlimited()
77 * @generated
78 * @ordered
79 */
80 protected static final boolean MAX_UNLIMITED_EDEFAULT = false;
81
82 /**
83 * The cached value of the '{@link #isMaxUnlimited() <em>Max Unlimited</em>}' attribute.
84 * <!-- begin-user-doc -->
85 * <!-- end-user-doc -->
86 * @see #isMaxUnlimited()
87 * @generated
88 * @ordered
89 */
90 protected boolean maxUnlimited = MAX_UNLIMITED_EDEFAULT;
91
92 /**
93 * <!-- begin-user-doc -->
94 * <!-- end-user-doc -->
95 * @generated
96 */
97 protected IntervallNumberImpl()
98 {
99 super();
100 }
101
102 /**
103 * <!-- begin-user-doc -->
104 * <!-- end-user-doc -->
105 * @generated
106 */
107 @Override
108 protected EClass eStaticClass()
109 {
110 return ApplicationConfigurationPackage.Literals.INTERVALL_NUMBER;
111 }
112
113 /**
114 * <!-- begin-user-doc -->
115 * <!-- end-user-doc -->
116 * @generated
117 */
118 public int getMin()
119 {
120 return min;
121 }
122
123 /**
124 * <!-- begin-user-doc -->
125 * <!-- end-user-doc -->
126 * @generated
127 */
128 public void setMin(int newMin)
129 {
130 int oldMin = min;
131 min = newMin;
132 if (eNotificationRequired())
133 eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.INTERVALL_NUMBER__MIN, oldMin, min));
134 }
135
136 /**
137 * <!-- begin-user-doc -->
138 * <!-- end-user-doc -->
139 * @generated
140 */
141 public int getMaxNumber()
142 {
143 return maxNumber;
144 }
145
146 /**
147 * <!-- begin-user-doc -->
148 * <!-- end-user-doc -->
149 * @generated
150 */
151 public void setMaxNumber(int newMaxNumber)
152 {
153 int oldMaxNumber = maxNumber;
154 maxNumber = newMaxNumber;
155 if (eNotificationRequired())
156 eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_NUMBER, oldMaxNumber, maxNumber));
157 }
158
159 /**
160 * <!-- begin-user-doc -->
161 * <!-- end-user-doc -->
162 * @generated
163 */
164 public boolean isMaxUnlimited()
165 {
166 return maxUnlimited;
167 }
168
169 /**
170 * <!-- begin-user-doc -->
171 * <!-- end-user-doc -->
172 * @generated
173 */
174 public void setMaxUnlimited(boolean newMaxUnlimited)
175 {
176 boolean oldMaxUnlimited = maxUnlimited;
177 maxUnlimited = newMaxUnlimited;
178 if (eNotificationRequired())
179 eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_UNLIMITED, oldMaxUnlimited, maxUnlimited));
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 {
190 switch (featureID)
191 {
192 case ApplicationConfigurationPackage.INTERVALL_NUMBER__MIN:
193 return getMin();
194 case ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_NUMBER:
195 return getMaxNumber();
196 case ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_UNLIMITED:
197 return isMaxUnlimited();
198 }
199 return super.eGet(featureID, resolve, coreType);
200 }
201
202 /**
203 * <!-- begin-user-doc -->
204 * <!-- end-user-doc -->
205 * @generated
206 */
207 @Override
208 public void eSet(int featureID, Object newValue)
209 {
210 switch (featureID)
211 {
212 case ApplicationConfigurationPackage.INTERVALL_NUMBER__MIN:
213 setMin((Integer)newValue);
214 return;
215 case ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_NUMBER:
216 setMaxNumber((Integer)newValue);
217 return;
218 case ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_UNLIMITED:
219 setMaxUnlimited((Boolean)newValue);
220 return;
221 }
222 super.eSet(featureID, newValue);
223 }
224
225 /**
226 * <!-- begin-user-doc -->
227 * <!-- end-user-doc -->
228 * @generated
229 */
230 @Override
231 public void eUnset(int featureID)
232 {
233 switch (featureID)
234 {
235 case ApplicationConfigurationPackage.INTERVALL_NUMBER__MIN:
236 setMin(MIN_EDEFAULT);
237 return;
238 case ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_NUMBER:
239 setMaxNumber(MAX_NUMBER_EDEFAULT);
240 return;
241 case ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_UNLIMITED:
242 setMaxUnlimited(MAX_UNLIMITED_EDEFAULT);
243 return;
244 }
245 super.eUnset(featureID);
246 }
247
248 /**
249 * <!-- begin-user-doc -->
250 * <!-- end-user-doc -->
251 * @generated
252 */
253 @Override
254 public boolean eIsSet(int featureID)
255 {
256 switch (featureID)
257 {
258 case ApplicationConfigurationPackage.INTERVALL_NUMBER__MIN:
259 return min != MIN_EDEFAULT;
260 case ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_NUMBER:
261 return maxNumber != MAX_NUMBER_EDEFAULT;
262 case ApplicationConfigurationPackage.INTERVALL_NUMBER__MAX_UNLIMITED:
263 return maxUnlimited != MAX_UNLIMITED_EDEFAULT;
264 }
265 return super.eIsSet(featureID);
266 }
267
268 /**
269 * <!-- begin-user-doc -->
270 * <!-- end-user-doc -->
271 * @generated
272 */
273 @Override
274 public String toString()
275 {
276 if (eIsProxy()) return super.toString();
277
278 StringBuffer result = new StringBuffer(super.toString());
279 result.append(" (min: ");
280 result.append(min);
281 result.append(", maxNumber: ");
282 result.append(maxNumber);
283 result.append(", maxUnlimited: ");
284 result.append(maxUnlimited);
285 result.append(')');
286 return result.toString();
287 }
288
289} //IntervallNumberImpl