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