diff options
author | 2020-06-25 19:55:10 +0200 | |
---|---|---|
committer | 2020-06-25 19:55:10 +0200 | |
commit | c3a6d4b9cf3657070d180aa65ddbf0459e880329 (patch) | |
tree | 780c4fc61578dcb309af53fb0c164c7627e51676 /Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ExactNumberImpl.java | |
parent | New configuration language parser WIP (diff) | |
parent | Scope unsat benchmarks (diff) | |
download | VIATRA-Generator-c3a6d4b9cf3657070d180aa65ddbf0459e880329.tar.gz VIATRA-Generator-c3a6d4b9cf3657070d180aa65ddbf0459e880329.tar.zst VIATRA-Generator-c3a6d4b9cf3657070d180aa65ddbf0459e880329.zip |
Merge branch 'kris'
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 | 470 |
1 files changed, 237 insertions, 233 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 dcd48fa2..4c9a9f4e 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,233 +1,237 @@ | |||
1 | /** | 1 | /** |
2 | * generated by Xtext 2.12.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 | public int getExactNumber() | 97 | @Override |
98 | { | 98 | public int getExactNumber() |
99 | return exactNumber; | 99 | { |
100 | } | 100 | return exactNumber; |
101 | 101 | } | |
102 | /** | 102 | |
103 | * <!-- begin-user-doc --> | 103 | /** |
104 | * <!-- end-user-doc --> | 104 | * <!-- begin-user-doc --> |
105 | * @generated | 105 | * <!-- end-user-doc --> |
106 | */ | 106 | * @generated |
107 | public void setExactNumber(int newExactNumber) | 107 | */ |
108 | { | 108 | @Override |
109 | int oldExactNumber = exactNumber; | 109 | public void setExactNumber(int newExactNumber) |
110 | exactNumber = newExactNumber; | 110 | { |
111 | if (eNotificationRequired()) | 111 | int oldExactNumber = exactNumber; |
112 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER, oldExactNumber, exactNumber)); | 112 | exactNumber = newExactNumber; |
113 | } | 113 | if (eNotificationRequired()) |
114 | 114 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER, oldExactNumber, exactNumber)); | |
115 | /** | 115 | } |
116 | * <!-- begin-user-doc --> | 116 | |
117 | * <!-- end-user-doc --> | 117 | /** |
118 | * @generated | 118 | * <!-- begin-user-doc --> |
119 | */ | 119 | * <!-- end-user-doc --> |
120 | public boolean isExactUnlimited() | 120 | * @generated |
121 | { | 121 | */ |
122 | return exactUnlimited; | 122 | @Override |
123 | } | 123 | public boolean isExactUnlimited() |
124 | 124 | { | |
125 | /** | 125 | return exactUnlimited; |
126 | * <!-- begin-user-doc --> | 126 | } |
127 | * <!-- end-user-doc --> | 127 | |
128 | * @generated | 128 | /** |
129 | */ | 129 | * <!-- begin-user-doc --> |
130 | public void setExactUnlimited(boolean newExactUnlimited) | 130 | * <!-- end-user-doc --> |
131 | { | 131 | * @generated |
132 | boolean oldExactUnlimited = exactUnlimited; | 132 | */ |
133 | exactUnlimited = newExactUnlimited; | 133 | @Override |
134 | if (eNotificationRequired()) | 134 | public void setExactUnlimited(boolean newExactUnlimited) |
135 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED, oldExactUnlimited, exactUnlimited)); | 135 | { |
136 | } | 136 | boolean oldExactUnlimited = exactUnlimited; |
137 | 137 | exactUnlimited = newExactUnlimited; | |
138 | /** | 138 | if (eNotificationRequired()) |
139 | * <!-- begin-user-doc --> | 139 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED, oldExactUnlimited, exactUnlimited)); |
140 | * <!-- end-user-doc --> | 140 | } |
141 | * @generated | 141 | |
142 | */ | 142 | /** |
143 | @Override | 143 | * <!-- begin-user-doc --> |
144 | public Object eGet(int featureID, boolean resolve, boolean coreType) | 144 | * <!-- end-user-doc --> |
145 | { | 145 | * @generated |
146 | switch (featureID) | 146 | */ |
147 | { | 147 | @Override |
148 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: | 148 | public Object eGet(int featureID, boolean resolve, boolean coreType) |
149 | return getExactNumber(); | 149 | { |
150 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: | 150 | switch (featureID) |
151 | return isExactUnlimited(); | 151 | { |
152 | } | 152 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: |
153 | return super.eGet(featureID, resolve, coreType); | 153 | return getExactNumber(); |
154 | } | 154 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: |
155 | 155 | return isExactUnlimited(); | |
156 | /** | 156 | } |
157 | * <!-- begin-user-doc --> | 157 | return super.eGet(featureID, resolve, coreType); |
158 | * <!-- end-user-doc --> | 158 | } |
159 | * @generated | 159 | |
160 | */ | 160 | /** |
161 | @Override | 161 | * <!-- begin-user-doc --> |
162 | public void eSet(int featureID, Object newValue) | 162 | * <!-- end-user-doc --> |
163 | { | 163 | * @generated |
164 | switch (featureID) | 164 | */ |
165 | { | 165 | @Override |
166 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: | 166 | public void eSet(int featureID, Object newValue) |
167 | setExactNumber((Integer)newValue); | 167 | { |
168 | return; | 168 | switch (featureID) |
169 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: | 169 | { |
170 | setExactUnlimited((Boolean)newValue); | 170 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: |
171 | return; | 171 | setExactNumber((Integer)newValue); |
172 | } | 172 | return; |
173 | super.eSet(featureID, newValue); | 173 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: |
174 | } | 174 | setExactUnlimited((Boolean)newValue); |
175 | 175 | return; | |
176 | /** | 176 | } |
177 | * <!-- begin-user-doc --> | 177 | super.eSet(featureID, newValue); |
178 | * <!-- end-user-doc --> | 178 | } |
179 | * @generated | 179 | |
180 | */ | 180 | /** |
181 | @Override | 181 | * <!-- begin-user-doc --> |
182 | public void eUnset(int featureID) | 182 | * <!-- end-user-doc --> |
183 | { | 183 | * @generated |
184 | switch (featureID) | 184 | */ |
185 | { | 185 | @Override |
186 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: | 186 | public void eUnset(int featureID) |
187 | setExactNumber(EXACT_NUMBER_EDEFAULT); | 187 | { |
188 | return; | 188 | switch (featureID) |
189 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: | 189 | { |
190 | setExactUnlimited(EXACT_UNLIMITED_EDEFAULT); | 190 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: |
191 | return; | 191 | setExactNumber(EXACT_NUMBER_EDEFAULT); |
192 | } | 192 | return; |
193 | super.eUnset(featureID); | 193 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: |
194 | } | 194 | setExactUnlimited(EXACT_UNLIMITED_EDEFAULT); |
195 | 195 | return; | |
196 | /** | 196 | } |
197 | * <!-- begin-user-doc --> | 197 | super.eUnset(featureID); |
198 | * <!-- end-user-doc --> | 198 | } |
199 | * @generated | 199 | |
200 | */ | 200 | /** |
201 | @Override | 201 | * <!-- begin-user-doc --> |
202 | public boolean eIsSet(int featureID) | 202 | * <!-- end-user-doc --> |
203 | { | 203 | * @generated |
204 | switch (featureID) | 204 | */ |
205 | { | 205 | @Override |
206 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: | 206 | public boolean eIsSet(int featureID) |
207 | return exactNumber != EXACT_NUMBER_EDEFAULT; | 207 | { |
208 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: | 208 | switch (featureID) |
209 | return exactUnlimited != EXACT_UNLIMITED_EDEFAULT; | 209 | { |
210 | } | 210 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: |
211 | return super.eIsSet(featureID); | 211 | return exactNumber != EXACT_NUMBER_EDEFAULT; |
212 | } | 212 | case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: |
213 | 213 | return exactUnlimited != EXACT_UNLIMITED_EDEFAULT; | |
214 | /** | 214 | } |
215 | * <!-- begin-user-doc --> | 215 | return super.eIsSet(featureID); |
216 | * <!-- end-user-doc --> | 216 | } |
217 | * @generated | 217 | |
218 | */ | 218 | /** |
219 | @Override | 219 | * <!-- begin-user-doc --> |
220 | public String toString() | 220 | * <!-- end-user-doc --> |
221 | { | 221 | * @generated |
222 | if (eIsProxy()) return super.toString(); | 222 | */ |
223 | 223 | @Override | |
224 | StringBuffer result = new StringBuffer(super.toString()); | 224 | public String toString() |
225 | result.append(" (exactNumber: "); | 225 | { |
226 | result.append(exactNumber); | 226 | if (eIsProxy()) return super.toString(); |
227 | result.append(", exactUnlimited: "); | 227 | |
228 | result.append(exactUnlimited); | 228 | StringBuilder result = new StringBuilder(super.toString()); |
229 | result.append(')'); | 229 | result.append(" (exactNumber: "); |
230 | return result.toString(); | 230 | result.append(exactNumber); |
231 | } | 231 | result.append(", exactUnlimited: "); |
232 | 232 | result.append(exactUnlimited); | |
233 | } //ExactNumberImpl | 233 | result.append(')'); |
234 | return result.toString(); | ||
235 | } | ||
236 | |||
237 | } //ExactNumberImpl | ||