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