diff options
Diffstat (limited to 'Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/ecore2logic/ecore2logicannotations/impl/InverseRelationAssertionImpl.java')
-rw-r--r-- | Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/ecore2logic/ecore2logicannotations/impl/InverseRelationAssertionImpl.java | 216 |
1 files changed, 216 insertions, 0 deletions
diff --git a/Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/ecore2logic/ecore2logicannotations/impl/InverseRelationAssertionImpl.java b/Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/ecore2logic/ecore2logicannotations/impl/InverseRelationAssertionImpl.java new file mode 100644 index 00000000..a2eb9157 --- /dev/null +++ b/Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/ecore2logic/ecore2logicannotations/impl/InverseRelationAssertionImpl.java | |||
@@ -0,0 +1,216 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.Ecore2logicannotationsPackage; | ||
6 | import hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.InverseRelationAssertion; | ||
7 | |||
8 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.Relation; | ||
9 | |||
10 | import hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.impl.AssertionAnnotationImpl; | ||
11 | import org.eclipse.emf.common.notify.Notification; | ||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | |||
14 | import org.eclipse.emf.ecore.InternalEObject; | ||
15 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Inverse Relation Assertion</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.ecore2logic.ecore2logicannotations.impl.InverseRelationAssertionImpl#getInverseA <em>Inverse A</em>}</li> | ||
26 | * <li>{@link hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.impl.InverseRelationAssertionImpl#getInverseB <em>Inverse B</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class InverseRelationAssertionImpl extends AssertionAnnotationImpl implements InverseRelationAssertion { | ||
32 | /** | ||
33 | * The cached value of the '{@link #getInverseA() <em>Inverse A</em>}' reference. | ||
34 | * <!-- begin-user-doc --> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @see #getInverseA() | ||
37 | * @generated | ||
38 | * @ordered | ||
39 | */ | ||
40 | protected Relation inverseA; | ||
41 | /** | ||
42 | * The cached value of the '{@link #getInverseB() <em>Inverse B</em>}' reference. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getInverseB() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected Relation inverseB; | ||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | protected InverseRelationAssertionImpl() { | ||
56 | super(); | ||
57 | } | ||
58 | |||
59 | /** | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @generated | ||
63 | */ | ||
64 | @Override | ||
65 | protected EClass eStaticClass() { | ||
66 | return Ecore2logicannotationsPackage.Literals.INVERSE_RELATION_ASSERTION; | ||
67 | } | ||
68 | |||
69 | /** | ||
70 | * <!-- begin-user-doc --> | ||
71 | * <!-- end-user-doc --> | ||
72 | * @generated | ||
73 | */ | ||
74 | public Relation getInverseA() { | ||
75 | if (inverseA != null && inverseA.eIsProxy()) { | ||
76 | InternalEObject oldInverseA = (InternalEObject)inverseA; | ||
77 | inverseA = (Relation)eResolveProxy(oldInverseA); | ||
78 | if (inverseA != oldInverseA) { | ||
79 | if (eNotificationRequired()) | ||
80 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, Ecore2logicannotationsPackage.INVERSE_RELATION_ASSERTION__INVERSE_A, oldInverseA, inverseA)); | ||
81 | } | ||
82 | } | ||
83 | return inverseA; | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | public Relation basicGetInverseA() { | ||
92 | return inverseA; | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | public void setInverseA(Relation newInverseA) { | ||
101 | Relation oldInverseA = inverseA; | ||
102 | inverseA = newInverseA; | ||
103 | if (eNotificationRequired()) | ||
104 | eNotify(new ENotificationImpl(this, Notification.SET, Ecore2logicannotationsPackage.INVERSE_RELATION_ASSERTION__INVERSE_A, oldInverseA, inverseA)); | ||
105 | } | ||
106 | |||
107 | /** | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | */ | ||
112 | public Relation getInverseB() { | ||
113 | if (inverseB != null && inverseB.eIsProxy()) { | ||
114 | InternalEObject oldInverseB = (InternalEObject)inverseB; | ||
115 | inverseB = (Relation)eResolveProxy(oldInverseB); | ||
116 | if (inverseB != oldInverseB) { | ||
117 | if (eNotificationRequired()) | ||
118 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, Ecore2logicannotationsPackage.INVERSE_RELATION_ASSERTION__INVERSE_B, oldInverseB, inverseB)); | ||
119 | } | ||
120 | } | ||
121 | return inverseB; | ||
122 | } | ||
123 | |||
124 | /** | ||
125 | * <!-- begin-user-doc --> | ||
126 | * <!-- end-user-doc --> | ||
127 | * @generated | ||
128 | */ | ||
129 | public Relation basicGetInverseB() { | ||
130 | return inverseB; | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | public void setInverseB(Relation newInverseB) { | ||
139 | Relation oldInverseB = inverseB; | ||
140 | inverseB = newInverseB; | ||
141 | if (eNotificationRequired()) | ||
142 | eNotify(new ENotificationImpl(this, Notification.SET, Ecore2logicannotationsPackage.INVERSE_RELATION_ASSERTION__INVERSE_B, oldInverseB, inverseB)); | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
152 | switch (featureID) { | ||
153 | case Ecore2logicannotationsPackage.INVERSE_RELATION_ASSERTION__INVERSE_A: | ||
154 | if (resolve) return getInverseA(); | ||
155 | return basicGetInverseA(); | ||
156 | case Ecore2logicannotationsPackage.INVERSE_RELATION_ASSERTION__INVERSE_B: | ||
157 | if (resolve) return getInverseB(); | ||
158 | return basicGetInverseB(); | ||
159 | } | ||
160 | return super.eGet(featureID, resolve, coreType); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @SuppressWarnings("unchecked") | ||
169 | @Override | ||
170 | public void eSet(int featureID, Object newValue) { | ||
171 | switch (featureID) { | ||
172 | case Ecore2logicannotationsPackage.INVERSE_RELATION_ASSERTION__INVERSE_A: | ||
173 | setInverseA((Relation)newValue); | ||
174 | return; | ||
175 | case Ecore2logicannotationsPackage.INVERSE_RELATION_ASSERTION__INVERSE_B: | ||
176 | setInverseB((Relation)newValue); | ||
177 | return; | ||
178 | } | ||
179 | super.eSet(featureID, newValue); | ||
180 | } | ||
181 | |||
182 | /** | ||
183 | * <!-- begin-user-doc --> | ||
184 | * <!-- end-user-doc --> | ||
185 | * @generated | ||
186 | */ | ||
187 | @Override | ||
188 | public void eUnset(int featureID) { | ||
189 | switch (featureID) { | ||
190 | case Ecore2logicannotationsPackage.INVERSE_RELATION_ASSERTION__INVERSE_A: | ||
191 | setInverseA((Relation)null); | ||
192 | return; | ||
193 | case Ecore2logicannotationsPackage.INVERSE_RELATION_ASSERTION__INVERSE_B: | ||
194 | setInverseB((Relation)null); | ||
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 | switch (featureID) { | ||
208 | case Ecore2logicannotationsPackage.INVERSE_RELATION_ASSERTION__INVERSE_A: | ||
209 | return inverseA != null; | ||
210 | case Ecore2logicannotationsPackage.INVERSE_RELATION_ASSERTION__INVERSE_B: | ||
211 | return inverseB != null; | ||
212 | } | ||
213 | return super.eIsSet(featureID); | ||
214 | } | ||
215 | |||
216 | } //InverseRelationAssertionImpl | ||