diff options
author | 2017-06-10 19:05:05 +0200 | |
---|---|---|
committer | 2017-06-10 19:05:05 +0200 | |
commit | 60f01f46ba232ed6416054f0a6115cb2a9b70b4e (patch) | |
tree | 5edf8aeb07abc51f3fec63bbd15c926e1de09552 /Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/LessThanImpl.java | |
parent | Initial commit, migrating from SVN (diff) | |
download | VIATRA-Generator-60f01f46ba232ed6416054f0a6115cb2a9b70b4e.tar.gz VIATRA-Generator-60f01f46ba232ed6416054f0a6115cb2a9b70b4e.tar.zst VIATRA-Generator-60f01f46ba232ed6416054f0a6115cb2a9b70b4e.zip |
Migrating Additional projects
Diffstat (limited to 'Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/LessThanImpl.java')
-rw-r--r-- | Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/LessThanImpl.java | 241 |
1 files changed, 241 insertions, 0 deletions
diff --git a/Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/LessThanImpl.java b/Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/LessThanImpl.java new file mode 100644 index 00000000..8a36abdd --- /dev/null +++ b/Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/LessThanImpl.java | |||
@@ -0,0 +1,241 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.LessThan; | ||
6 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.LogiclanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.Term; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | import org.eclipse.emf.common.notify.NotificationChain; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Less Than</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.impl.LessThanImpl#getLeftOperand <em>Left Operand</em>}</li> | ||
26 | * <li>{@link hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.impl.LessThanImpl#getRightOperand <em>Right Operand</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class LessThanImpl extends PrimitiveRelationImpl implements LessThan { | ||
32 | /** | ||
33 | * The cached value of the '{@link #getLeftOperand() <em>Left Operand</em>}' containment reference. | ||
34 | * <!-- begin-user-doc --> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @see #getLeftOperand() | ||
37 | * @generated | ||
38 | * @ordered | ||
39 | */ | ||
40 | protected Term leftOperand; | ||
41 | |||
42 | /** | ||
43 | * The cached value of the '{@link #getRightOperand() <em>Right Operand</em>}' containment reference. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @see #getRightOperand() | ||
47 | * @generated | ||
48 | * @ordered | ||
49 | */ | ||
50 | protected Term rightOperand; | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | protected LessThanImpl() { | ||
58 | super(); | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected EClass eStaticClass() { | ||
68 | return LogiclanguagePackage.Literals.LESS_THAN; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | public Term getLeftOperand() { | ||
77 | return leftOperand; | ||
78 | } | ||
79 | |||
80 | /** | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @generated | ||
84 | */ | ||
85 | public NotificationChain basicSetLeftOperand(Term newLeftOperand, NotificationChain msgs) { | ||
86 | Term oldLeftOperand = leftOperand; | ||
87 | leftOperand = newLeftOperand; | ||
88 | if (eNotificationRequired()) { | ||
89 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, LogiclanguagePackage.LESS_THAN__LEFT_OPERAND, oldLeftOperand, newLeftOperand); | ||
90 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
91 | } | ||
92 | return msgs; | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | public void setLeftOperand(Term newLeftOperand) { | ||
101 | if (newLeftOperand != leftOperand) { | ||
102 | NotificationChain msgs = null; | ||
103 | if (leftOperand != null) | ||
104 | msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LogiclanguagePackage.LESS_THAN__LEFT_OPERAND, null, msgs); | ||
105 | if (newLeftOperand != null) | ||
106 | msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LogiclanguagePackage.LESS_THAN__LEFT_OPERAND, null, msgs); | ||
107 | msgs = basicSetLeftOperand(newLeftOperand, msgs); | ||
108 | if (msgs != null) msgs.dispatch(); | ||
109 | } | ||
110 | else if (eNotificationRequired()) | ||
111 | eNotify(new ENotificationImpl(this, Notification.SET, LogiclanguagePackage.LESS_THAN__LEFT_OPERAND, newLeftOperand, newLeftOperand)); | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | public Term getRightOperand() { | ||
120 | return rightOperand; | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | public NotificationChain basicSetRightOperand(Term newRightOperand, NotificationChain msgs) { | ||
129 | Term oldRightOperand = rightOperand; | ||
130 | rightOperand = newRightOperand; | ||
131 | if (eNotificationRequired()) { | ||
132 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, LogiclanguagePackage.LESS_THAN__RIGHT_OPERAND, oldRightOperand, newRightOperand); | ||
133 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
134 | } | ||
135 | return msgs; | ||
136 | } | ||
137 | |||
138 | /** | ||
139 | * <!-- begin-user-doc --> | ||
140 | * <!-- end-user-doc --> | ||
141 | * @generated | ||
142 | */ | ||
143 | public void setRightOperand(Term newRightOperand) { | ||
144 | if (newRightOperand != rightOperand) { | ||
145 | NotificationChain msgs = null; | ||
146 | if (rightOperand != null) | ||
147 | msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LogiclanguagePackage.LESS_THAN__RIGHT_OPERAND, null, msgs); | ||
148 | if (newRightOperand != null) | ||
149 | msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LogiclanguagePackage.LESS_THAN__RIGHT_OPERAND, null, msgs); | ||
150 | msgs = basicSetRightOperand(newRightOperand, msgs); | ||
151 | if (msgs != null) msgs.dispatch(); | ||
152 | } | ||
153 | else if (eNotificationRequired()) | ||
154 | eNotify(new ENotificationImpl(this, Notification.SET, LogiclanguagePackage.LESS_THAN__RIGHT_OPERAND, newRightOperand, newRightOperand)); | ||
155 | } | ||
156 | |||
157 | /** | ||
158 | * <!-- begin-user-doc --> | ||
159 | * <!-- end-user-doc --> | ||
160 | * @generated | ||
161 | */ | ||
162 | @Override | ||
163 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
164 | switch (featureID) { | ||
165 | case LogiclanguagePackage.LESS_THAN__LEFT_OPERAND: | ||
166 | return basicSetLeftOperand(null, msgs); | ||
167 | case LogiclanguagePackage.LESS_THAN__RIGHT_OPERAND: | ||
168 | return basicSetRightOperand(null, msgs); | ||
169 | } | ||
170 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
171 | } | ||
172 | |||
173 | /** | ||
174 | * <!-- begin-user-doc --> | ||
175 | * <!-- end-user-doc --> | ||
176 | * @generated | ||
177 | */ | ||
178 | @Override | ||
179 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
180 | switch (featureID) { | ||
181 | case LogiclanguagePackage.LESS_THAN__LEFT_OPERAND: | ||
182 | return getLeftOperand(); | ||
183 | case LogiclanguagePackage.LESS_THAN__RIGHT_OPERAND: | ||
184 | return getRightOperand(); | ||
185 | } | ||
186 | return super.eGet(featureID, resolve, coreType); | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public void eSet(int featureID, Object newValue) { | ||
196 | switch (featureID) { | ||
197 | case LogiclanguagePackage.LESS_THAN__LEFT_OPERAND: | ||
198 | setLeftOperand((Term)newValue); | ||
199 | return; | ||
200 | case LogiclanguagePackage.LESS_THAN__RIGHT_OPERAND: | ||
201 | setRightOperand((Term)newValue); | ||
202 | return; | ||
203 | } | ||
204 | super.eSet(featureID, newValue); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public void eUnset(int featureID) { | ||
214 | switch (featureID) { | ||
215 | case LogiclanguagePackage.LESS_THAN__LEFT_OPERAND: | ||
216 | setLeftOperand((Term)null); | ||
217 | return; | ||
218 | case LogiclanguagePackage.LESS_THAN__RIGHT_OPERAND: | ||
219 | setRightOperand((Term)null); | ||
220 | return; | ||
221 | } | ||
222 | super.eUnset(featureID); | ||
223 | } | ||
224 | |||
225 | /** | ||
226 | * <!-- begin-user-doc --> | ||
227 | * <!-- end-user-doc --> | ||
228 | * @generated | ||
229 | */ | ||
230 | @Override | ||
231 | public boolean eIsSet(int featureID) { | ||
232 | switch (featureID) { | ||
233 | case LogiclanguagePackage.LESS_THAN__LEFT_OPERAND: | ||
234 | return leftOperand != null; | ||
235 | case LogiclanguagePackage.LESS_THAN__RIGHT_OPERAND: | ||
236 | return rightOperand != null; | ||
237 | } | ||
238 | return super.eIsSet(featureID); | ||
239 | } | ||
240 | |||
241 | } //LessThanImpl | ||