diff options
Diffstat (limited to 'Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BoundedScopeDefinitionImpl.java')
-rw-r--r-- | Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BoundedScopeDefinitionImpl.java | 221 |
1 files changed, 0 insertions, 221 deletions
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BoundedScopeDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BoundedScopeDefinitionImpl.java deleted file mode 100644 index 7d3a981e..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BoundedScopeDefinitionImpl.java +++ /dev/null | |||
@@ -1,221 +0,0 @@ | |||
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 | * The default value of the '{@link #getLowerBound() <em>Lower Bound</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getLowerBound() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final int LOWER_BOUND_EDEFAULT = 0; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #getLowerBound() <em>Lower Bound</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getLowerBound() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected int lowerBound = LOWER_BOUND_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * The default value of the '{@link #getUpperBound() <em>Upper Bound</em>}' attribute. | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @see #getUpperBound() | ||
55 | * @generated | ||
56 | * @ordered | ||
57 | */ | ||
58 | protected static final int UPPER_BOUND_EDEFAULT = 0; | ||
59 | |||
60 | /** | ||
61 | * The cached value of the '{@link #getUpperBound() <em>Upper Bound</em>}' attribute. | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @see #getUpperBound() | ||
65 | * @generated | ||
66 | * @ordered | ||
67 | */ | ||
68 | protected int upperBound = UPPER_BOUND_EDEFAULT; | ||
69 | |||
70 | /** | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | protected BoundedScopeDefinitionImpl() { | ||
76 | super(); | ||
77 | } | ||
78 | |||
79 | /** | ||
80 | * <!-- begin-user-doc --> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @generated | ||
83 | */ | ||
84 | @Override | ||
85 | protected EClass eStaticClass() { | ||
86 | return SolverLanguagePackage.Literals.BOUNDED_SCOPE_DEFINITION; | ||
87 | } | ||
88 | |||
89 | /** | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | */ | ||
94 | @Override | ||
95 | public int getLowerBound() { | ||
96 | return lowerBound; | ||
97 | } | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | @Override | ||
105 | public void setLowerBound(int newLowerBound) { | ||
106 | int oldLowerBound = lowerBound; | ||
107 | lowerBound = newLowerBound; | ||
108 | if (eNotificationRequired()) | ||
109 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__LOWER_BOUND, oldLowerBound, lowerBound)); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public int getUpperBound() { | ||
119 | return upperBound; | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | @Override | ||
128 | public void setUpperBound(int newUpperBound) { | ||
129 | int oldUpperBound = upperBound; | ||
130 | upperBound = newUpperBound; | ||
131 | if (eNotificationRequired()) | ||
132 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__UPPER_BOUND, oldUpperBound, upperBound)); | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | @Override | ||
141 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
142 | switch (featureID) { | ||
143 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__LOWER_BOUND: | ||
144 | return getLowerBound(); | ||
145 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__UPPER_BOUND: | ||
146 | return getUpperBound(); | ||
147 | } | ||
148 | return super.eGet(featureID, resolve, coreType); | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | @Override | ||
157 | public void eSet(int featureID, Object newValue) { | ||
158 | switch (featureID) { | ||
159 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__LOWER_BOUND: | ||
160 | setLowerBound((Integer)newValue); | ||
161 | return; | ||
162 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__UPPER_BOUND: | ||
163 | setUpperBound((Integer)newValue); | ||
164 | return; | ||
165 | } | ||
166 | super.eSet(featureID, newValue); | ||
167 | } | ||
168 | |||
169 | /** | ||
170 | * <!-- begin-user-doc --> | ||
171 | * <!-- end-user-doc --> | ||
172 | * @generated | ||
173 | */ | ||
174 | @Override | ||
175 | public void eUnset(int featureID) { | ||
176 | switch (featureID) { | ||
177 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__LOWER_BOUND: | ||
178 | setLowerBound(LOWER_BOUND_EDEFAULT); | ||
179 | return; | ||
180 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__UPPER_BOUND: | ||
181 | setUpperBound(UPPER_BOUND_EDEFAULT); | ||
182 | return; | ||
183 | } | ||
184 | super.eUnset(featureID); | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @generated | ||
191 | */ | ||
192 | @Override | ||
193 | public boolean eIsSet(int featureID) { | ||
194 | switch (featureID) { | ||
195 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__LOWER_BOUND: | ||
196 | return lowerBound != LOWER_BOUND_EDEFAULT; | ||
197 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__UPPER_BOUND: | ||
198 | return upperBound != UPPER_BOUND_EDEFAULT; | ||
199 | } | ||
200 | return super.eIsSet(featureID); | ||
201 | } | ||
202 | |||
203 | /** | ||
204 | * <!-- begin-user-doc --> | ||
205 | * <!-- end-user-doc --> | ||
206 | * @generated | ||
207 | */ | ||
208 | @Override | ||
209 | public String toString() { | ||
210 | if (eIsProxy()) return super.toString(); | ||
211 | |||
212 | StringBuilder result = new StringBuilder(super.toString()); | ||
213 | result.append(" (lowerBound: "); | ||
214 | result.append(lowerBound); | ||
215 | result.append(", upperBound: "); | ||
216 | result.append(upperBound); | ||
217 | result.append(')'); | ||
218 | return result.toString(); | ||
219 | } | ||
220 | |||
221 | } //BoundedScopeDefinitionImpl | ||