diff options
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ExactNumberImpl.java')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ExactNumberImpl.java | 474 |
1 files changed, 237 insertions, 237 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ExactNumberImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ExactNumberImpl.java index 4c9a9f4e..bf33c471 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ExactNumberImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ExactNumberImpl.java | |||
@@ -1,237 +1,237 @@ | |||
1 | /** | 1 | /** |
2 | * generated by Xtext 2.21.0 | 2 | * generated by Xtext 2.21.0 |
3 | */ | 3 | */ |
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | 4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; |
5 | 5 | ||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | 6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; |
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ExactNumber; | 7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ExactNumber; |
8 | 8 | ||
9 | import org.eclipse.emf.common.notify.Notification; | 9 | import org.eclipse.emf.common.notify.Notification; |
10 | 10 | ||
11 | import org.eclipse.emf.ecore.EClass; | 11 | import org.eclipse.emf.ecore.EClass; |
12 | 12 | ||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | 13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
14 | 14 | ||
15 | /** | 15 | /** |
16 | * <!-- begin-user-doc --> | 16 | * <!-- begin-user-doc --> |
17 | * An implementation of the model object '<em><b>Exact Number</b></em>'. | 17 | * An implementation of the model object '<em><b>Exact Number</b></em>'. |
18 | * <!-- end-user-doc --> | 18 | * <!-- end-user-doc --> |
19 | * <p> | 19 | * <p> |
20 | * The following features are implemented: | 20 | * The following features are implemented: |
21 | * </p> | 21 | * </p> |
22 | * <ul> | 22 | * <ul> |
23 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ExactNumberImpl#getExactNumber <em>Exact Number</em>}</li> | 23 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ExactNumberImpl#getExactNumber <em>Exact Number</em>}</li> |
24 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ExactNumberImpl#isExactUnlimited <em>Exact Unlimited</em>}</li> | 24 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ExactNumberImpl#isExactUnlimited <em>Exact Unlimited</em>}</li> |
25 | * </ul> | 25 | * </ul> |
26 | * | 26 | * |
27 | * @generated | 27 | * @generated |
28 | */ | 28 | */ |
29 | public class ExactNumberImpl extends NumberSpecificationImpl implements ExactNumber | 29 | public class ExactNumberImpl extends NumberSpecificationImpl implements ExactNumber |
30 | { | 30 | { |
31 | /** | 31 | /** |
32 | * The default value of the '{@link #getExactNumber() <em>Exact Number</em>}' attribute. | 32 | * The default value of the '{@link #getExactNumber() <em>Exact Number</em>}' attribute. |
33 | * <!-- begin-user-doc --> | 33 | * <!-- begin-user-doc --> |
34 | * <!-- end-user-doc --> | 34 | * <!-- end-user-doc --> |
35 | * @see #getExactNumber() | 35 | * @see #getExactNumber() |
36 | * @generated | 36 | * @generated |
37 | * @ordered | 37 | * @ordered |
38 | */ | 38 | */ |
39 | protected static final int EXACT_NUMBER_EDEFAULT = 0; | 39 | protected static final int EXACT_NUMBER_EDEFAULT = 0; |
40 | 40 | ||
41 | /** | 41 | /** |
42 | * The cached value of the '{@link #getExactNumber() <em>Exact Number</em>}' attribute. | 42 | * The cached value of the '{@link #getExactNumber() <em>Exact Number</em>}' attribute. |
43 | * <!-- begin-user-doc --> | 43 | * <!-- begin-user-doc --> |
44 | * <!-- end-user-doc --> | 44 | * <!-- end-user-doc --> |
45 | * @see #getExactNumber() | 45 | * @see #getExactNumber() |
46 | * @generated | 46 | * @generated |
47 | * @ordered | 47 | * @ordered |
48 | */ | 48 | */ |
49 | protected int exactNumber = EXACT_NUMBER_EDEFAULT; | 49 | protected int exactNumber = EXACT_NUMBER_EDEFAULT; |
50 | 50 | ||
51 | /** | 51 | /** |
52 | * The default value of the '{@link #isExactUnlimited() <em>Exact Unlimited</em>}' attribute. | 52 | * The default value of the '{@link #isExactUnlimited() <em>Exact Unlimited</em>}' attribute. |
53 | * <!-- begin-user-doc --> | 53 | * <!-- begin-user-doc --> |
54 | * <!-- end-user-doc --> | 54 | * <!-- end-user-doc --> |
55 | * @see #isExactUnlimited() | 55 | * @see #isExactUnlimited() |
56 | * @generated | 56 | * @generated |
57 | * @ordered | 57 | * @ordered |
58 | */ | 58 | */ |
59 | protected static final boolean EXACT_UNLIMITED_EDEFAULT = false; | 59 | protected static final boolean EXACT_UNLIMITED_EDEFAULT = false; |
60 | 60 | ||
61 | /** | 61 | /** |
62 | * The cached value of the '{@link #isExactUnlimited() <em>Exact Unlimited</em>}' attribute. | 62 | * The cached value of the '{@link #isExactUnlimited() <em>Exact Unlimited</em>}' attribute. |
63 | * <!-- begin-user-doc --> | 63 | * <!-- begin-user-doc --> |
64 | * <!-- end-user-doc --> | 64 | * <!-- end-user-doc --> |
65 | * @see #isExactUnlimited() | 65 | * @see #isExactUnlimited() |
66 | * @generated | 66 | * @generated |
67 | * @ordered | 67 | * @ordered |
68 | */ | 68 | */ |
69 | protected boolean exactUnlimited = EXACT_UNLIMITED_EDEFAULT; | 69 | protected boolean exactUnlimited = EXACT_UNLIMITED_EDEFAULT; |
70 | 70 | ||
71 | /** | 71 | /** |
72 | * <!-- begin-user-doc --> | 72 | * <!-- begin-user-doc --> |
73 | * <!-- end-user-doc --> | 73 | * <!-- end-user-doc --> |
74 | * @generated | 74 | * @generated |
75 | */ | 75 | */ |
76 | protected ExactNumberImpl() | 76 | protected ExactNumberImpl() |
77 | { | 77 | { |
78 | super(); | 78 | super(); |
79 | } | 79 | } |
80 | 80 | ||
81 | /** | 81 | /** |
82 | * <!-- begin-user-doc --> | 82 | * <!-- begin-user-doc --> |
83 | * <!-- end-user-doc --> | 83 | * <!-- end-user-doc --> |
84 | * @generated | 84 | * @generated |
85 | */ | 85 | */ |
86 | @Override | 86 | @Override |
87 | protected EClass eStaticClass() | 87 | protected EClass eStaticClass() |
88 | { | 88 | { |
89 | return ApplicationConfigurationPackage.Literals.EXACT_NUMBER; | 89 | return ApplicationConfigurationPackage.Literals.EXACT_NUMBER; |
90 | } | 90 | } |
91 | 91 | ||
92 | /** | 92 | /** |
93 | * <!-- begin-user-doc --> | 93 | * <!-- begin-user-doc --> |
94 | * <!-- end-user-doc --> | 94 | * <!-- end-user-doc --> |
95 | * @generated | 95 | * @generated |
96 | */ | 96 | */ |
97 | @Override | 97 | @Override |
98 | public int getExactNumber() | 98 | public int getExactNumber() |
99 | { | 99 | { |
100 | return exactNumber; | 100 | return exactNumber; |
101 | } | 101 | } |
102 | 102 | ||
103 | /** | 103 | /** |
104 | * <!-- begin-user-doc --> | 104 | * <!-- begin-user-doc --> |
105 | * <!-- end-user-doc --> | 105 | * <!-- end-user-doc --> |
106 | * @generated | 106 | * @generated |
107 | */ | 107 | */ |
108 | @Override | 108 | @Override |
109 | public void setExactNumber(int newExactNumber) | 109 | public void setExactNumber(int newExactNumber) |
110 | { | 110 | { |
111 | int oldExactNumber = exactNumber; | 111 | int oldExactNumber = exactNumber; |
112 | exactNumber = newExactNumber; | 112 | exactNumber = newExactNumber; |
113 | if (eNotificationRequired()) | 113 | if (eNotificationRequired()) |
114 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER, oldExactNumber, exactNumber)); | 114 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER, oldExactNumber, exactNumber)); |
115 | } | 115 | } |
116 | 116 | ||
117 | /** | 117 | /** |
118 | * <!-- begin-user-doc --> | 118 | * <!-- begin-user-doc --> |
119 | * <!-- end-user-doc --> | 119 | * <!-- end-user-doc --> |
120 | * @generated | 120 | * @generated |
121 | */ | 121 | */ |
122 | @Override | 122 | @Override |
123 | public boolean isExactUnlimited() | 123 | public boolean isExactUnlimited() |
124 | { | 124 | { |
125 | return exactUnlimited; | 125 | return exactUnlimited; |
126 | } | 126 | } |
127 | 127 | ||
128 | /** | 128 | /** |
129 | * <!-- begin-user-doc --> | 129 | * <!-- begin-user-doc --> |
130 | * <!-- end-user-doc --> | 130 | * <!-- end-user-doc --> |
131 | * @generated | 131 | * @generated |
132 | */ | 132 | */ |
133 | @Override | 133 | @Override |
134 | public void setExactUnlimited(boolean newExactUnlimited) | 134 | public void setExactUnlimited(boolean newExactUnlimited) |
135 | { | 135 | { |
136 | boolean oldExactUnlimited = exactUnlimited; | 136 | boolean oldExactUnlimited = exactUnlimited; |
137 | exactUnlimited = newExactUnlimited; | 137 | exactUnlimited = newExactUnlimited; |
138 | if (eNotificationRequired()) | 138 | if (eNotificationRequired()) |
139 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED, oldExactUnlimited, exactUnlimited)); | 139 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED, oldExactUnlimited, exactUnlimited)); |
140 | } | 140 | } |
141 | 141 | ||
142 | /** | 142 | /** |
143 | * <!-- begin-user-doc --> | 143 | * <!-- begin-user-doc --> |
144 | * <!-- end-user-doc --> | 144 | * <!-- end-user-doc --> |
145 | * @generated | 145 | * @generated |
146 | */ | 146 | */ |
147 | @Override | 147 | @Override |
148 | public Object eGet(int featureID, boolean resolve, boolean coreType) | 148 | public Object eGet(int featureID, boolean resolve, boolean coreType) |
149 | { | 149 | { |
150 | switch (featureID) | 150 | switch (featureID) |
151 | { | 151 | { |
152 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: | 152 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: |
153 | return getExactNumber(); | 153 | return getExactNumber(); |
154 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: | 154 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: |
155 | return isExactUnlimited(); | 155 | return isExactUnlimited(); |
156 | } | 156 | } |
157 | return super.eGet(featureID, resolve, coreType); | 157 | return super.eGet(featureID, resolve, coreType); |
158 | } | 158 | } |
159 | 159 | ||
160 | /** | 160 | /** |
161 | * <!-- begin-user-doc --> | 161 | * <!-- begin-user-doc --> |
162 | * <!-- end-user-doc --> | 162 | * <!-- end-user-doc --> |
163 | * @generated | 163 | * @generated |
164 | */ | 164 | */ |
165 | @Override | 165 | @Override |
166 | public void eSet(int featureID, Object newValue) | 166 | public void eSet(int featureID, Object newValue) |
167 | { | 167 | { |
168 | switch (featureID) | 168 | switch (featureID) |
169 | { | 169 | { |
170 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: | 170 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: |
171 | setExactNumber((Integer)newValue); | 171 | setExactNumber((Integer)newValue); |
172 | return; | 172 | return; |
173 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: | 173 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: |
174 | setExactUnlimited((Boolean)newValue); | 174 | setExactUnlimited((Boolean)newValue); |
175 | return; | 175 | return; |
176 | } | 176 | } |
177 | super.eSet(featureID, newValue); | 177 | super.eSet(featureID, newValue); |
178 | } | 178 | } |
179 | 179 | ||
180 | /** | 180 | /** |
181 | * <!-- begin-user-doc --> | 181 | * <!-- begin-user-doc --> |
182 | * <!-- end-user-doc --> | 182 | * <!-- end-user-doc --> |
183 | * @generated | 183 | * @generated |
184 | */ | 184 | */ |
185 | @Override | 185 | @Override |
186 | public void eUnset(int featureID) | 186 | public void eUnset(int featureID) |
187 | { | 187 | { |
188 | switch (featureID) | 188 | switch (featureID) |
189 | { | 189 | { |
190 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: | 190 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: |
191 | setExactNumber(EXACT_NUMBER_EDEFAULT); | 191 | setExactNumber(EXACT_NUMBER_EDEFAULT); |
192 | return; | 192 | return; |
193 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: | 193 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: |
194 | setExactUnlimited(EXACT_UNLIMITED_EDEFAULT); | 194 | setExactUnlimited(EXACT_UNLIMITED_EDEFAULT); |
195 | return; | 195 | return; |
196 | } | 196 | } |
197 | super.eUnset(featureID); | 197 | super.eUnset(featureID); |
198 | } | 198 | } |
199 | 199 | ||
200 | /** | 200 | /** |
201 | * <!-- begin-user-doc --> | 201 | * <!-- begin-user-doc --> |
202 | * <!-- end-user-doc --> | 202 | * <!-- end-user-doc --> |
203 | * @generated | 203 | * @generated |
204 | */ | 204 | */ |
205 | @Override | 205 | @Override |
206 | public boolean eIsSet(int featureID) | 206 | public boolean eIsSet(int featureID) |
207 | { | 207 | { |
208 | switch (featureID) | 208 | switch (featureID) |
209 | { | 209 | { |
210 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: | 210 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: |
211 | return exactNumber != EXACT_NUMBER_EDEFAULT; | 211 | return exactNumber != EXACT_NUMBER_EDEFAULT; |
212 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: | 212 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: |
213 | return exactUnlimited != EXACT_UNLIMITED_EDEFAULT; | 213 | return exactUnlimited != EXACT_UNLIMITED_EDEFAULT; |
214 | } | 214 | } |
215 | return super.eIsSet(featureID); | 215 | return super.eIsSet(featureID); |
216 | } | 216 | } |
217 | 217 | ||
218 | /** | 218 | /** |
219 | * <!-- begin-user-doc --> | 219 | * <!-- begin-user-doc --> |
220 | * <!-- end-user-doc --> | 220 | * <!-- end-user-doc --> |
221 | * @generated | 221 | * @generated |
222 | */ | 222 | */ |
223 | @Override | 223 | @Override |
224 | public String toString() | 224 | public String toString() |
225 | { | 225 | { |
226 | if (eIsProxy()) return super.toString(); | 226 | if (eIsProxy()) return super.toString(); |
227 | 227 | ||
228 | StringBuilder result = new StringBuilder(super.toString()); | 228 | StringBuilder result = new StringBuilder(super.toString()); |
229 | result.append(" (exactNumber: "); | 229 | result.append(" (exactNumber: "); |
230 | result.append(exactNumber); | 230 | result.append(exactNumber); |
231 | result.append(", exactUnlimited: "); | 231 | result.append(", exactUnlimited: "); |
232 | result.append(exactUnlimited); | 232 | result.append(exactUnlimited); |
233 | result.append(')'); | 233 | result.append(')'); |
234 | return result.toString(); | 234 | return result.toString(); |
235 | } | 235 | } |
236 | 236 | ||
237 | } //ExactNumberImpl | 237 | } //ExactNumberImpl |