diff options
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.alloyexamples/src/hu/bme/mit/inf/dslreasoner/domains/alloyexamples/Filesystem/impl/FilesystemPackageImpl.java')
-rw-r--r-- | Domains/hu.bme.mit.inf.dslreasoner.domains.alloyexamples/src/hu/bme/mit/inf/dslreasoner/domains/alloyexamples/Filesystem/impl/FilesystemPackageImpl.java | 36 |
1 files changed, 12 insertions, 24 deletions
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.alloyexamples/src/hu/bme/mit/inf/dslreasoner/domains/alloyexamples/Filesystem/impl/FilesystemPackageImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.alloyexamples/src/hu/bme/mit/inf/dslreasoner/domains/alloyexamples/Filesystem/impl/FilesystemPackageImpl.java index 4c0ca4c5..87390fee 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.alloyexamples/src/hu/bme/mit/inf/dslreasoner/domains/alloyexamples/Filesystem/impl/FilesystemPackageImpl.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.alloyexamples/src/hu/bme/mit/inf/dslreasoner/domains/alloyexamples/Filesystem/impl/FilesystemPackageImpl.java | |||
@@ -86,7 +86,7 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
86 | 86 | ||
87 | /** | 87 | /** |
88 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | 88 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. |
89 | * | 89 | * |
90 | * <p>This method is used to initialize {@link FilesystemPackage#eINSTANCE} when that field is accessed. | 90 | * <p>This method is used to initialize {@link FilesystemPackage#eINSTANCE} when that field is accessed. |
91 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | 91 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. |
92 | * <!-- begin-user-doc --> | 92 | * <!-- begin-user-doc --> |
@@ -100,8 +100,7 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
100 | if (isInited) return (FilesystemPackage)EPackage.Registry.INSTANCE.getEPackage(FilesystemPackage.eNS_URI); | 100 | if (isInited) return (FilesystemPackage)EPackage.Registry.INSTANCE.getEPackage(FilesystemPackage.eNS_URI); |
101 | 101 | ||
102 | // Obtain or create and register package | 102 | // Obtain or create and register package |
103 | Object registeredFilesystemPackage = EPackage.Registry.INSTANCE.get(eNS_URI); | 103 | FilesystemPackageImpl theFilesystemPackage = (FilesystemPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof FilesystemPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new FilesystemPackageImpl()); |
104 | FilesystemPackageImpl theFilesystemPackage = registeredFilesystemPackage instanceof FilesystemPackageImpl ? (FilesystemPackageImpl)registeredFilesystemPackage : new FilesystemPackageImpl(); | ||
105 | 104 | ||
106 | isInited = true; | 105 | isInited = true; |
107 | 106 | ||
@@ -114,6 +113,7 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
114 | // Mark meta-data to indicate it can't be changed | 113 | // Mark meta-data to indicate it can't be changed |
115 | theFilesystemPackage.freeze(); | 114 | theFilesystemPackage.freeze(); |
116 | 115 | ||
116 | |||
117 | // Update the registry and return the package | 117 | // Update the registry and return the package |
118 | EPackage.Registry.INSTANCE.put(FilesystemPackage.eNS_URI, theFilesystemPackage); | 118 | EPackage.Registry.INSTANCE.put(FilesystemPackage.eNS_URI, theFilesystemPackage); |
119 | return theFilesystemPackage; | 119 | return theFilesystemPackage; |
@@ -124,7 +124,6 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
124 | * <!-- end-user-doc --> | 124 | * <!-- end-user-doc --> |
125 | * @generated | 125 | * @generated |
126 | */ | 126 | */ |
127 | @Override | ||
128 | public EClass getFileSystem() { | 127 | public EClass getFileSystem() { |
129 | return fileSystemEClass; | 128 | return fileSystemEClass; |
130 | } | 129 | } |
@@ -134,7 +133,6 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
134 | * <!-- end-user-doc --> | 133 | * <!-- end-user-doc --> |
135 | * @generated | 134 | * @generated |
136 | */ | 135 | */ |
137 | @Override | ||
138 | public EReference getFileSystem_Root() { | 136 | public EReference getFileSystem_Root() { |
139 | return (EReference)fileSystemEClass.getEStructuralFeatures().get(0); | 137 | return (EReference)fileSystemEClass.getEStructuralFeatures().get(0); |
140 | } | 138 | } |
@@ -144,7 +142,6 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
144 | * <!-- end-user-doc --> | 142 | * <!-- end-user-doc --> |
145 | * @generated | 143 | * @generated |
146 | */ | 144 | */ |
147 | @Override | ||
148 | public EReference getFileSystem_Live() { | 145 | public EReference getFileSystem_Live() { |
149 | return (EReference)fileSystemEClass.getEStructuralFeatures().get(1); | 146 | return (EReference)fileSystemEClass.getEStructuralFeatures().get(1); |
150 | } | 147 | } |
@@ -154,7 +151,6 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
154 | * <!-- end-user-doc --> | 151 | * <!-- end-user-doc --> |
155 | * @generated | 152 | * @generated |
156 | */ | 153 | */ |
157 | @Override | ||
158 | public EClass getFSObject() { | 154 | public EClass getFSObject() { |
159 | return fsObjectEClass; | 155 | return fsObjectEClass; |
160 | } | 156 | } |
@@ -164,7 +160,6 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
164 | * <!-- end-user-doc --> | 160 | * <!-- end-user-doc --> |
165 | * @generated | 161 | * @generated |
166 | */ | 162 | */ |
167 | @Override | ||
168 | public EReference getFSObject_Parent() { | 163 | public EReference getFSObject_Parent() { |
169 | return (EReference)fsObjectEClass.getEStructuralFeatures().get(0); | 164 | return (EReference)fsObjectEClass.getEStructuralFeatures().get(0); |
170 | } | 165 | } |
@@ -174,7 +169,6 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
174 | * <!-- end-user-doc --> | 169 | * <!-- end-user-doc --> |
175 | * @generated | 170 | * @generated |
176 | */ | 171 | */ |
177 | @Override | ||
178 | public EClass getDir() { | 172 | public EClass getDir() { |
179 | return dirEClass; | 173 | return dirEClass; |
180 | } | 174 | } |
@@ -184,7 +178,6 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
184 | * <!-- end-user-doc --> | 178 | * <!-- end-user-doc --> |
185 | * @generated | 179 | * @generated |
186 | */ | 180 | */ |
187 | @Override | ||
188 | public EReference getDir_Contents() { | 181 | public EReference getDir_Contents() { |
189 | return (EReference)dirEClass.getEStructuralFeatures().get(0); | 182 | return (EReference)dirEClass.getEStructuralFeatures().get(0); |
190 | } | 183 | } |
@@ -194,7 +187,6 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
194 | * <!-- end-user-doc --> | 187 | * <!-- end-user-doc --> |
195 | * @generated | 188 | * @generated |
196 | */ | 189 | */ |
197 | @Override | ||
198 | public EClass getFile() { | 190 | public EClass getFile() { |
199 | return fileEClass; | 191 | return fileEClass; |
200 | } | 192 | } |
@@ -204,7 +196,6 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
204 | * <!-- end-user-doc --> | 196 | * <!-- end-user-doc --> |
205 | * @generated | 197 | * @generated |
206 | */ | 198 | */ |
207 | @Override | ||
208 | public EClass getModel() { | 199 | public EClass getModel() { |
209 | return modelEClass; | 200 | return modelEClass; |
210 | } | 201 | } |
@@ -214,7 +205,6 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
214 | * <!-- end-user-doc --> | 205 | * <!-- end-user-doc --> |
215 | * @generated | 206 | * @generated |
216 | */ | 207 | */ |
217 | @Override | ||
218 | public EReference getModel_Filesystems() { | 208 | public EReference getModel_Filesystems() { |
219 | return (EReference)modelEClass.getEStructuralFeatures().get(0); | 209 | return (EReference)modelEClass.getEStructuralFeatures().get(0); |
220 | } | 210 | } |
@@ -224,7 +214,6 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
224 | * <!-- end-user-doc --> | 214 | * <!-- end-user-doc --> |
225 | * @generated | 215 | * @generated |
226 | */ | 216 | */ |
227 | @Override | ||
228 | public EReference getModel_OtherFSObjects() { | 217 | public EReference getModel_OtherFSObjects() { |
229 | return (EReference)modelEClass.getEStructuralFeatures().get(1); | 218 | return (EReference)modelEClass.getEStructuralFeatures().get(1); |
230 | } | 219 | } |
@@ -234,7 +223,6 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
234 | * <!-- end-user-doc --> | 223 | * <!-- end-user-doc --> |
235 | * @generated | 224 | * @generated |
236 | */ | 225 | */ |
237 | @Override | ||
238 | public FilesystemFactory getFilesystemFactory() { | 226 | public FilesystemFactory getFilesystemFactory() { |
239 | return (FilesystemFactory)getEFactoryInstance(); | 227 | return (FilesystemFactory)getEFactoryInstance(); |
240 | } | 228 | } |
@@ -308,7 +296,7 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
308 | 296 | ||
309 | // Initialize classes, features, and operations; add parameters | 297 | // Initialize classes, features, and operations; add parameters |
310 | initEClass(fileSystemEClass, FileSystem.class, "FileSystem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 298 | initEClass(fileSystemEClass, FileSystem.class, "FileSystem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
311 | initEReference(getFileSystem_Root(), this.getFSObject(), null, "root", null, 1, 1, FileSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 299 | initEReference(getFileSystem_Root(), this.getDir(), null, "root", null, 1, 1, FileSystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
312 | initEReference(getFileSystem_Live(), this.getFSObject(), null, "live", null, 0, -1, FileSystem.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); | 300 | initEReference(getFileSystem_Live(), this.getFSObject(), null, "live", null, 0, -1, FileSystem.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); |
313 | 301 | ||
314 | initEClass(fsObjectEClass, FSObject.class, "FSObject", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 302 | initEClass(fsObjectEClass, FSObject.class, "FSObject", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
@@ -340,12 +328,12 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
340 | * @generated | 328 | * @generated |
341 | */ | 329 | */ |
342 | protected void createEcoreAnnotations() { | 330 | protected void createEcoreAnnotations() { |
343 | String source = "http://www.eclipse.org/emf/2002/Ecore"; | 331 | String source = "http://www.eclipse.org/emf/2002/Ecore"; |
344 | addAnnotation | 332 | addAnnotation |
345 | (this, | 333 | (this, |
346 | source, | 334 | source, |
347 | new String[] { | 335 | new String[] { |
348 | "settingDelegates", "org.eclipse.viatra.query.querybasedfeature" | 336 | "settingDelegates", "org.eclipse.viatra.query.querybasedfeature" |
349 | }); | 337 | }); |
350 | } | 338 | } |
351 | 339 | ||
@@ -356,12 +344,12 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
356 | * @generated | 344 | * @generated |
357 | */ | 345 | */ |
358 | protected void createOrgAnnotations() { | 346 | protected void createOrgAnnotations() { |
359 | String source = "org.eclipse.viatra.query.querybasedfeature"; | 347 | String source = "org.eclipse.viatra.query.querybasedfeature"; |
360 | addAnnotation | 348 | addAnnotation |
361 | (getFileSystem_Live(), | 349 | (getFileSystem_Live(), |
362 | source, | 350 | source, |
363 | new String[] { | 351 | new String[] { |
364 | "patternFQN", "hu.bme.mit.inf.dslreasoner.domains.alloyexamples.live" | 352 | "patternFQN", "hu.bme.mit.inf.dslreasoner.domains.alloyexamples.live" |
365 | }); | 353 | }); |
366 | } | 354 | } |
367 | 355 | ||