diff options
Diffstat (limited to 'Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/NaryRelationLinkElementImpl.java')
1 files changed, 62 insertions, 0 deletions
diff --git a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/NaryRelationLinkElementImpl.java b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/NaryRelationLinkElementImpl.java index 40e6549d..749a03c5 100644 --- a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/NaryRelationLinkElementImpl.java +++ b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/NaryRelationLinkElementImpl.java | |||
@@ -2,6 +2,7 @@ | |||
2 | */ | 2 | */ |
3 | package hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.impl; | 3 | package hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.impl; |
4 | 4 | ||
5 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.DefinedElement; | ||
5 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.NaryRelationLinkElement; | 6 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.NaryRelationLinkElement; |
6 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.PartialinterpretationPackage; | 7 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.PartialinterpretationPackage; |
7 | 8 | ||
@@ -9,6 +10,7 @@ import org.eclipse.emf.common.notify.Notification; | |||
9 | 10 | ||
10 | import org.eclipse.emf.ecore.EClass; | 11 | import org.eclipse.emf.ecore.EClass; |
11 | 12 | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | 14 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
13 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | 15 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; |
14 | 16 | ||
@@ -21,6 +23,7 @@ import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | |||
21 | * </p> | 23 | * </p> |
22 | * <ul> | 24 | * <ul> |
23 | * <li>{@link hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.impl.NaryRelationLinkElementImpl#getIndex <em>Index</em>}</li> | 25 | * <li>{@link hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.impl.NaryRelationLinkElementImpl#getIndex <em>Index</em>}</li> |
26 | * <li>{@link hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.impl.NaryRelationLinkElementImpl#getParam <em>Param</em>}</li> | ||
24 | * </ul> | 27 | * </ul> |
25 | * | 28 | * |
26 | * @generated | 29 | * @generated |
@@ -47,6 +50,16 @@ public class NaryRelationLinkElementImpl extends MinimalEObjectImpl.Container im | |||
47 | protected int index = INDEX_EDEFAULT; | 50 | protected int index = INDEX_EDEFAULT; |
48 | 51 | ||
49 | /** | 52 | /** |
53 | * The cached value of the '{@link #getParam() <em>Param</em>}' reference. | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @see #getParam() | ||
57 | * @generated | ||
58 | * @ordered | ||
59 | */ | ||
60 | protected DefinedElement param; | ||
61 | |||
62 | /** | ||
50 | * <!-- begin-user-doc --> | 63 | * <!-- begin-user-doc --> |
51 | * <!-- end-user-doc --> | 64 | * <!-- end-user-doc --> |
52 | * @generated | 65 | * @generated |
@@ -91,11 +104,52 @@ public class NaryRelationLinkElementImpl extends MinimalEObjectImpl.Container im | |||
91 | * <!-- end-user-doc --> | 104 | * <!-- end-user-doc --> |
92 | * @generated | 105 | * @generated |
93 | */ | 106 | */ |
107 | public DefinedElement getParam() { | ||
108 | if (param != null && param.eIsProxy()) { | ||
109 | InternalEObject oldParam = (InternalEObject)param; | ||
110 | param = (DefinedElement)eResolveProxy(oldParam); | ||
111 | if (param != oldParam) { | ||
112 | if (eNotificationRequired()) | ||
113 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, PartialinterpretationPackage.NARY_RELATION_LINK_ELEMENT__PARAM, oldParam, param)); | ||
114 | } | ||
115 | } | ||
116 | return param; | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | public DefinedElement basicGetParam() { | ||
125 | return param; | ||
126 | } | ||
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | public void setParam(DefinedElement newParam) { | ||
134 | DefinedElement oldParam = param; | ||
135 | param = newParam; | ||
136 | if (eNotificationRequired()) | ||
137 | eNotify(new ENotificationImpl(this, Notification.SET, PartialinterpretationPackage.NARY_RELATION_LINK_ELEMENT__PARAM, oldParam, param)); | ||
138 | } | ||
139 | |||
140 | /** | ||
141 | * <!-- begin-user-doc --> | ||
142 | * <!-- end-user-doc --> | ||
143 | * @generated | ||
144 | */ | ||
94 | @Override | 145 | @Override |
95 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | 146 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
96 | switch (featureID) { | 147 | switch (featureID) { |
97 | case PartialinterpretationPackage.NARY_RELATION_LINK_ELEMENT__INDEX: | 148 | case PartialinterpretationPackage.NARY_RELATION_LINK_ELEMENT__INDEX: |
98 | return getIndex(); | 149 | return getIndex(); |
150 | case PartialinterpretationPackage.NARY_RELATION_LINK_ELEMENT__PARAM: | ||
151 | if (resolve) return getParam(); | ||
152 | return basicGetParam(); | ||
99 | } | 153 | } |
100 | return super.eGet(featureID, resolve, coreType); | 154 | return super.eGet(featureID, resolve, coreType); |
101 | } | 155 | } |
@@ -111,6 +165,9 @@ public class NaryRelationLinkElementImpl extends MinimalEObjectImpl.Container im | |||
111 | case PartialinterpretationPackage.NARY_RELATION_LINK_ELEMENT__INDEX: | 165 | case PartialinterpretationPackage.NARY_RELATION_LINK_ELEMENT__INDEX: |
112 | setIndex((Integer)newValue); | 166 | setIndex((Integer)newValue); |
113 | return; | 167 | return; |
168 | case PartialinterpretationPackage.NARY_RELATION_LINK_ELEMENT__PARAM: | ||
169 | setParam((DefinedElement)newValue); | ||
170 | return; | ||
114 | } | 171 | } |
115 | super.eSet(featureID, newValue); | 172 | super.eSet(featureID, newValue); |
116 | } | 173 | } |
@@ -126,6 +183,9 @@ public class NaryRelationLinkElementImpl extends MinimalEObjectImpl.Container im | |||
126 | case PartialinterpretationPackage.NARY_RELATION_LINK_ELEMENT__INDEX: | 183 | case PartialinterpretationPackage.NARY_RELATION_LINK_ELEMENT__INDEX: |
127 | setIndex(INDEX_EDEFAULT); | 184 | setIndex(INDEX_EDEFAULT); |
128 | return; | 185 | return; |
186 | case PartialinterpretationPackage.NARY_RELATION_LINK_ELEMENT__PARAM: | ||
187 | setParam((DefinedElement)null); | ||
188 | return; | ||
129 | } | 189 | } |
130 | super.eUnset(featureID); | 190 | super.eUnset(featureID); |
131 | } | 191 | } |
@@ -140,6 +200,8 @@ public class NaryRelationLinkElementImpl extends MinimalEObjectImpl.Container im | |||
140 | switch (featureID) { | 200 | switch (featureID) { |
141 | case PartialinterpretationPackage.NARY_RELATION_LINK_ELEMENT__INDEX: | 201 | case PartialinterpretationPackage.NARY_RELATION_LINK_ELEMENT__INDEX: |
142 | return index != INDEX_EDEFAULT; | 202 | return index != INDEX_EDEFAULT; |
203 | case PartialinterpretationPackage.NARY_RELATION_LINK_ELEMENT__PARAM: | ||
204 | return param != null; | ||
143 | } | 205 | } |
144 | return super.eIsSet(featureID); | 206 | return super.eIsSet(featureID); |
145 | } | 207 | } |