aboutsummaryrefslogtreecommitdiffstats
path: root/Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/SymbolicValueImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/SymbolicValueImpl.java')
-rw-r--r--Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/SymbolicValueImpl.java214
1 files changed, 214 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/SymbolicValueImpl.java b/Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/SymbolicValueImpl.java
new file mode 100644
index 00000000..59e1a7d3
--- /dev/null
+++ b/Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/SymbolicValueImpl.java
@@ -0,0 +1,214 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.LogiclanguagePackage;
6import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.SymbolicDeclaration;
7import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.SymbolicValue;
8import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.Term;
9
10import java.util.Collection;
11
12import org.eclipse.emf.common.notify.Notification;
13import org.eclipse.emf.common.notify.NotificationChain;
14
15import org.eclipse.emf.common.util.EList;
16
17import org.eclipse.emf.ecore.EClass;
18import org.eclipse.emf.ecore.InternalEObject;
19
20import org.eclipse.emf.ecore.impl.ENotificationImpl;
21
22import org.eclipse.emf.ecore.util.EObjectContainmentEList;
23import org.eclipse.emf.ecore.util.InternalEList;
24
25/**
26 * <!-- begin-user-doc -->
27 * An implementation of the model object '<em><b>Symbolic Value</b></em>'.
28 * <!-- end-user-doc -->
29 * <p>
30 * The following features are implemented:
31 * </p>
32 * <ul>
33 * <li>{@link hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.impl.SymbolicValueImpl#getSymbolicReference <em>Symbolic Reference</em>}</li>
34 * <li>{@link hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.impl.SymbolicValueImpl#getParameterSubstitutions <em>Parameter Substitutions</em>}</li>
35 * </ul>
36 *
37 * @generated
38 */
39public class SymbolicValueImpl extends TermImpl implements SymbolicValue {
40 /**
41 * The cached value of the '{@link #getSymbolicReference() <em>Symbolic Reference</em>}' reference.
42 * <!-- begin-user-doc -->
43 * <!-- end-user-doc -->
44 * @see #getSymbolicReference()
45 * @generated
46 * @ordered
47 */
48 protected SymbolicDeclaration symbolicReference;
49
50 /**
51 * The cached value of the '{@link #getParameterSubstitutions() <em>Parameter Substitutions</em>}' containment reference list.
52 * <!-- begin-user-doc -->
53 * <!-- end-user-doc -->
54 * @see #getParameterSubstitutions()
55 * @generated
56 * @ordered
57 */
58 protected EList<Term> parameterSubstitutions;
59
60 /**
61 * <!-- begin-user-doc -->
62 * <!-- end-user-doc -->
63 * @generated
64 */
65 protected SymbolicValueImpl() {
66 super();
67 }
68
69 /**
70 * <!-- begin-user-doc -->
71 * <!-- end-user-doc -->
72 * @generated
73 */
74 @Override
75 protected EClass eStaticClass() {
76 return LogiclanguagePackage.Literals.SYMBOLIC_VALUE;
77 }
78
79 /**
80 * <!-- begin-user-doc -->
81 * <!-- end-user-doc -->
82 * @generated
83 */
84 public SymbolicDeclaration getSymbolicReference() {
85 if (symbolicReference != null && symbolicReference.eIsProxy()) {
86 InternalEObject oldSymbolicReference = (InternalEObject)symbolicReference;
87 symbolicReference = (SymbolicDeclaration)eResolveProxy(oldSymbolicReference);
88 if (symbolicReference != oldSymbolicReference) {
89 if (eNotificationRequired())
90 eNotify(new ENotificationImpl(this, Notification.RESOLVE, LogiclanguagePackage.SYMBOLIC_VALUE__SYMBOLIC_REFERENCE, oldSymbolicReference, symbolicReference));
91 }
92 }
93 return symbolicReference;
94 }
95
96 /**
97 * <!-- begin-user-doc -->
98 * <!-- end-user-doc -->
99 * @generated
100 */
101 public SymbolicDeclaration basicGetSymbolicReference() {
102 return symbolicReference;
103 }
104
105 /**
106 * <!-- begin-user-doc -->
107 * <!-- end-user-doc -->
108 * @generated
109 */
110 public void setSymbolicReference(SymbolicDeclaration newSymbolicReference) {
111 SymbolicDeclaration oldSymbolicReference = symbolicReference;
112 symbolicReference = newSymbolicReference;
113 if (eNotificationRequired())
114 eNotify(new ENotificationImpl(this, Notification.SET, LogiclanguagePackage.SYMBOLIC_VALUE__SYMBOLIC_REFERENCE, oldSymbolicReference, symbolicReference));
115 }
116
117 /**
118 * <!-- begin-user-doc -->
119 * <!-- end-user-doc -->
120 * @generated
121 */
122 public EList<Term> getParameterSubstitutions() {
123 if (parameterSubstitutions == null) {
124 parameterSubstitutions = new EObjectContainmentEList<Term>(Term.class, this, LogiclanguagePackage.SYMBOLIC_VALUE__PARAMETER_SUBSTITUTIONS);
125 }
126 return parameterSubstitutions;
127 }
128
129 /**
130 * <!-- begin-user-doc -->
131 * <!-- end-user-doc -->
132 * @generated
133 */
134 @Override
135 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
136 switch (featureID) {
137 case LogiclanguagePackage.SYMBOLIC_VALUE__PARAMETER_SUBSTITUTIONS:
138 return ((InternalEList<?>)getParameterSubstitutions()).basicRemove(otherEnd, msgs);
139 }
140 return super.eInverseRemove(otherEnd, featureID, msgs);
141 }
142
143 /**
144 * <!-- begin-user-doc -->
145 * <!-- end-user-doc -->
146 * @generated
147 */
148 @Override
149 public Object eGet(int featureID, boolean resolve, boolean coreType) {
150 switch (featureID) {
151 case LogiclanguagePackage.SYMBOLIC_VALUE__SYMBOLIC_REFERENCE:
152 if (resolve) return getSymbolicReference();
153 return basicGetSymbolicReference();
154 case LogiclanguagePackage.SYMBOLIC_VALUE__PARAMETER_SUBSTITUTIONS:
155 return getParameterSubstitutions();
156 }
157 return super.eGet(featureID, resolve, coreType);
158 }
159
160 /**
161 * <!-- begin-user-doc -->
162 * <!-- end-user-doc -->
163 * @generated
164 */
165 @SuppressWarnings("unchecked")
166 @Override
167 public void eSet(int featureID, Object newValue) {
168 switch (featureID) {
169 case LogiclanguagePackage.SYMBOLIC_VALUE__SYMBOLIC_REFERENCE:
170 setSymbolicReference((SymbolicDeclaration)newValue);
171 return;
172 case LogiclanguagePackage.SYMBOLIC_VALUE__PARAMETER_SUBSTITUTIONS:
173 getParameterSubstitutions().clear();
174 getParameterSubstitutions().addAll((Collection<? extends Term>)newValue);
175 return;
176 }
177 super.eSet(featureID, newValue);
178 }
179
180 /**
181 * <!-- begin-user-doc -->
182 * <!-- end-user-doc -->
183 * @generated
184 */
185 @Override
186 public void eUnset(int featureID) {
187 switch (featureID) {
188 case LogiclanguagePackage.SYMBOLIC_VALUE__SYMBOLIC_REFERENCE:
189 setSymbolicReference((SymbolicDeclaration)null);
190 return;
191 case LogiclanguagePackage.SYMBOLIC_VALUE__PARAMETER_SUBSTITUTIONS:
192 getParameterSubstitutions().clear();
193 return;
194 }
195 super.eUnset(featureID);
196 }
197
198 /**
199 * <!-- begin-user-doc -->
200 * <!-- end-user-doc -->
201 * @generated
202 */
203 @Override
204 public boolean eIsSet(int featureID) {
205 switch (featureID) {
206 case LogiclanguagePackage.SYMBOLIC_VALUE__SYMBOLIC_REFERENCE:
207 return symbolicReference != null;
208 case LogiclanguagePackage.SYMBOLIC_VALUE__PARAMETER_SUBSTITUTIONS:
209 return parameterSubstitutions != null && !parameterSubstitutions.isEmpty();
210 }
211 return super.eIsSet(featureID);
212 }
213
214} //SymbolicValueImpl