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