diff options
Diffstat (limited to 'Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternPredicateDefinitionImpl.java')
-rw-r--r-- | Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternPredicateDefinitionImpl.java | 248 |
1 files changed, 0 insertions, 248 deletions
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternPredicateDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternPredicateDefinitionImpl.java deleted file mode 100644 index e59fa4e3..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternPredicateDefinitionImpl.java +++ /dev/null | |||
@@ -1,248 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.ArgumentList; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.ExternPredicateDefinition; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Extern Predicate Definition</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ExternPredicateDefinitionImpl#getName <em>Name</em>}</li> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ExternPredicateDefinitionImpl#getArgumentList <em>Argument List</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class ExternPredicateDefinitionImpl extends StatementImpl implements ExternPredicateDefinition { | ||
33 | /** | ||
34 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getName() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected static final String NAME_EDEFAULT = null; | ||
42 | |||
43 | /** | ||
44 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @see #getName() | ||
48 | * @generated | ||
49 | * @ordered | ||
50 | */ | ||
51 | protected String name = NAME_EDEFAULT; | ||
52 | |||
53 | /** | ||
54 | * The cached value of the '{@link #getArgumentList() <em>Argument List</em>}' containment reference. | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @see #getArgumentList() | ||
58 | * @generated | ||
59 | * @ordered | ||
60 | */ | ||
61 | protected ArgumentList argumentList; | ||
62 | |||
63 | /** | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @generated | ||
67 | */ | ||
68 | protected ExternPredicateDefinitionImpl() { | ||
69 | super(); | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | protected EClass eStaticClass() { | ||
79 | return SolverLanguagePackage.Literals.EXTERN_PREDICATE_DEFINITION; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public String getName() { | ||
89 | return name; | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | @Override | ||
98 | public void setName(String newName) { | ||
99 | String oldName = name; | ||
100 | name = newName; | ||
101 | if (eNotificationRequired()) | ||
102 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__NAME, oldName, name)); | ||
103 | } | ||
104 | |||
105 | /** | ||
106 | * <!-- begin-user-doc --> | ||
107 | * <!-- end-user-doc --> | ||
108 | * @generated | ||
109 | */ | ||
110 | @Override | ||
111 | public ArgumentList getArgumentList() { | ||
112 | return argumentList; | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | public NotificationChain basicSetArgumentList(ArgumentList newArgumentList, NotificationChain msgs) { | ||
121 | ArgumentList oldArgumentList = argumentList; | ||
122 | argumentList = newArgumentList; | ||
123 | if (eNotificationRequired()) { | ||
124 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__ARGUMENT_LIST, oldArgumentList, newArgumentList); | ||
125 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
126 | } | ||
127 | return msgs; | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public void setArgumentList(ArgumentList newArgumentList) { | ||
137 | if (newArgumentList != argumentList) { | ||
138 | NotificationChain msgs = null; | ||
139 | if (argumentList != null) | ||
140 | msgs = ((InternalEObject)argumentList).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__ARGUMENT_LIST, null, msgs); | ||
141 | if (newArgumentList != null) | ||
142 | msgs = ((InternalEObject)newArgumentList).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__ARGUMENT_LIST, null, msgs); | ||
143 | msgs = basicSetArgumentList(newArgumentList, msgs); | ||
144 | if (msgs != null) msgs.dispatch(); | ||
145 | } | ||
146 | else if (eNotificationRequired()) | ||
147 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__ARGUMENT_LIST, newArgumentList, newArgumentList)); | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | @Override | ||
156 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
157 | switch (featureID) { | ||
158 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__ARGUMENT_LIST: | ||
159 | return basicSetArgumentList(null, msgs); | ||
160 | } | ||
161 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
162 | } | ||
163 | |||
164 | /** | ||
165 | * <!-- begin-user-doc --> | ||
166 | * <!-- end-user-doc --> | ||
167 | * @generated | ||
168 | */ | ||
169 | @Override | ||
170 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
171 | switch (featureID) { | ||
172 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__NAME: | ||
173 | return getName(); | ||
174 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__ARGUMENT_LIST: | ||
175 | return getArgumentList(); | ||
176 | } | ||
177 | return super.eGet(featureID, resolve, coreType); | ||
178 | } | ||
179 | |||
180 | /** | ||
181 | * <!-- begin-user-doc --> | ||
182 | * <!-- end-user-doc --> | ||
183 | * @generated | ||
184 | */ | ||
185 | @Override | ||
186 | public void eSet(int featureID, Object newValue) { | ||
187 | switch (featureID) { | ||
188 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__NAME: | ||
189 | setName((String)newValue); | ||
190 | return; | ||
191 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__ARGUMENT_LIST: | ||
192 | setArgumentList((ArgumentList)newValue); | ||
193 | return; | ||
194 | } | ||
195 | super.eSet(featureID, newValue); | ||
196 | } | ||
197 | |||
198 | /** | ||
199 | * <!-- begin-user-doc --> | ||
200 | * <!-- end-user-doc --> | ||
201 | * @generated | ||
202 | */ | ||
203 | @Override | ||
204 | public void eUnset(int featureID) { | ||
205 | switch (featureID) { | ||
206 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__NAME: | ||
207 | setName(NAME_EDEFAULT); | ||
208 | return; | ||
209 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__ARGUMENT_LIST: | ||
210 | setArgumentList((ArgumentList)null); | ||
211 | return; | ||
212 | } | ||
213 | super.eUnset(featureID); | ||
214 | } | ||
215 | |||
216 | /** | ||
217 | * <!-- begin-user-doc --> | ||
218 | * <!-- end-user-doc --> | ||
219 | * @generated | ||
220 | */ | ||
221 | @Override | ||
222 | public boolean eIsSet(int featureID) { | ||
223 | switch (featureID) { | ||
224 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__NAME: | ||
225 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
226 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__ARGUMENT_LIST: | ||
227 | return argumentList != null; | ||
228 | } | ||
229 | return super.eIsSet(featureID); | ||
230 | } | ||
231 | |||
232 | /** | ||
233 | * <!-- begin-user-doc --> | ||
234 | * <!-- end-user-doc --> | ||
235 | * @generated | ||
236 | */ | ||
237 | @Override | ||
238 | public String toString() { | ||
239 | if (eIsProxy()) return super.toString(); | ||
240 | |||
241 | StringBuilder result = new StringBuilder(super.toString()); | ||
242 | result.append(" (name: "); | ||
243 | result.append(name); | ||
244 | result.append(')'); | ||
245 | return result.toString(); | ||
246 | } | ||
247 | |||
248 | } //ExternPredicateDefinitionImpl | ||