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