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, 24 insertions, 12 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 87390fee..4c0ca4c5 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,7 +100,8 @@ 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 | FilesystemPackageImpl theFilesystemPackage = (FilesystemPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof FilesystemPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new FilesystemPackageImpl()); | 103 | Object registeredFilesystemPackage = EPackage.Registry.INSTANCE.get(eNS_URI); |
104 | FilesystemPackageImpl theFilesystemPackage = registeredFilesystemPackage instanceof FilesystemPackageImpl ? (FilesystemPackageImpl)registeredFilesystemPackage : new FilesystemPackageImpl(); | ||
104 | 105 | ||
105 | isInited = true; | 106 | isInited = true; |
106 | 107 | ||
@@ -113,7 +114,6 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
113 | // Mark meta-data to indicate it can't be changed | 114 | // Mark meta-data to indicate it can't be changed |
114 | theFilesystemPackage.freeze(); | 115 | theFilesystemPackage.freeze(); |
115 | 116 | ||
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,6 +124,7 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
124 | * <!-- end-user-doc --> | 124 | * <!-- end-user-doc --> |
125 | * @generated | 125 | * @generated |
126 | */ | 126 | */ |
127 | @Override | ||
127 | public EClass getFileSystem() { | 128 | public EClass getFileSystem() { |
128 | return fileSystemEClass; | 129 | return fileSystemEClass; |
129 | } | 130 | } |
@@ -133,6 +134,7 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
133 | * <!-- end-user-doc --> | 134 | * <!-- end-user-doc --> |
134 | * @generated | 135 | * @generated |
135 | */ | 136 | */ |
137 | @Override | ||
136 | public EReference getFileSystem_Root() { | 138 | public EReference getFileSystem_Root() { |
137 | return (EReference)fileSystemEClass.getEStructuralFeatures().get(0); | 139 | return (EReference)fileSystemEClass.getEStructuralFeatures().get(0); |
138 | } | 140 | } |
@@ -142,6 +144,7 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
142 | * <!-- end-user-doc --> | 144 | * <!-- end-user-doc --> |
143 | * @generated | 145 | * @generated |
144 | */ | 146 | */ |
147 | @Override | ||
145 | public EReference getFileSystem_Live() { | 148 | public EReference getFileSystem_Live() { |
146 | return (EReference)fileSystemEClass.getEStructuralFeatures().get(1); | 149 | return (EReference)fileSystemEClass.getEStructuralFeatures().get(1); |
147 | } | 150 | } |
@@ -151,6 +154,7 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
151 | * <!-- end-user-doc --> | 154 | * <!-- end-user-doc --> |
152 | * @generated | 155 | * @generated |
153 | */ | 156 | */ |
157 | @Override | ||
154 | public EClass getFSObject() { | 158 | public EClass getFSObject() { |
155 | return fsObjectEClass; | 159 | return fsObjectEClass; |
156 | } | 160 | } |
@@ -160,6 +164,7 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
160 | * <!-- end-user-doc --> | 164 | * <!-- end-user-doc --> |
161 | * @generated | 165 | * @generated |
162 | */ | 166 | */ |
167 | @Override | ||
163 | public EReference getFSObject_Parent() { | 168 | public EReference getFSObject_Parent() { |
164 | return (EReference)fsObjectEClass.getEStructuralFeatures().get(0); | 169 | return (EReference)fsObjectEClass.getEStructuralFeatures().get(0); |
165 | } | 170 | } |
@@ -169,6 +174,7 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
169 | * <!-- end-user-doc --> | 174 | * <!-- end-user-doc --> |
170 | * @generated | 175 | * @generated |
171 | */ | 176 | */ |
177 | @Override | ||
172 | public EClass getDir() { | 178 | public EClass getDir() { |
173 | return dirEClass; | 179 | return dirEClass; |
174 | } | 180 | } |
@@ -178,6 +184,7 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
178 | * <!-- end-user-doc --> | 184 | * <!-- end-user-doc --> |
179 | * @generated | 185 | * @generated |
180 | */ | 186 | */ |
187 | @Override | ||
181 | public EReference getDir_Contents() { | 188 | public EReference getDir_Contents() { |
182 | return (EReference)dirEClass.getEStructuralFeatures().get(0); | 189 | return (EReference)dirEClass.getEStructuralFeatures().get(0); |
183 | } | 190 | } |
@@ -187,6 +194,7 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
187 | * <!-- end-user-doc --> | 194 | * <!-- end-user-doc --> |
188 | * @generated | 195 | * @generated |
189 | */ | 196 | */ |
197 | @Override | ||
190 | public EClass getFile() { | 198 | public EClass getFile() { |
191 | return fileEClass; | 199 | return fileEClass; |
192 | } | 200 | } |
@@ -196,6 +204,7 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
196 | * <!-- end-user-doc --> | 204 | * <!-- end-user-doc --> |
197 | * @generated | 205 | * @generated |
198 | */ | 206 | */ |
207 | @Override | ||
199 | public EClass getModel() { | 208 | public EClass getModel() { |
200 | return modelEClass; | 209 | return modelEClass; |
201 | } | 210 | } |
@@ -205,6 +214,7 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
205 | * <!-- end-user-doc --> | 214 | * <!-- end-user-doc --> |
206 | * @generated | 215 | * @generated |
207 | */ | 216 | */ |
217 | @Override | ||
208 | public EReference getModel_Filesystems() { | 218 | public EReference getModel_Filesystems() { |
209 | return (EReference)modelEClass.getEStructuralFeatures().get(0); | 219 | return (EReference)modelEClass.getEStructuralFeatures().get(0); |
210 | } | 220 | } |
@@ -214,6 +224,7 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
214 | * <!-- end-user-doc --> | 224 | * <!-- end-user-doc --> |
215 | * @generated | 225 | * @generated |
216 | */ | 226 | */ |
227 | @Override | ||
217 | public EReference getModel_OtherFSObjects() { | 228 | public EReference getModel_OtherFSObjects() { |
218 | return (EReference)modelEClass.getEStructuralFeatures().get(1); | 229 | return (EReference)modelEClass.getEStructuralFeatures().get(1); |
219 | } | 230 | } |
@@ -223,6 +234,7 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
223 | * <!-- end-user-doc --> | 234 | * <!-- end-user-doc --> |
224 | * @generated | 235 | * @generated |
225 | */ | 236 | */ |
237 | @Override | ||
226 | public FilesystemFactory getFilesystemFactory() { | 238 | public FilesystemFactory getFilesystemFactory() { |
227 | return (FilesystemFactory)getEFactoryInstance(); | 239 | return (FilesystemFactory)getEFactoryInstance(); |
228 | } | 240 | } |
@@ -296,7 +308,7 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
296 | 308 | ||
297 | // Initialize classes, features, and operations; add parameters | 309 | // Initialize classes, features, and operations; add parameters |
298 | initEClass(fileSystemEClass, FileSystem.class, "FileSystem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 310 | initEClass(fileSystemEClass, FileSystem.class, "FileSystem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
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); | 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); |
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); | 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); |
301 | 313 | ||
302 | initEClass(fsObjectEClass, FSObject.class, "FSObject", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 314 | initEClass(fsObjectEClass, FSObject.class, "FSObject", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
@@ -328,12 +340,12 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
328 | * @generated | 340 | * @generated |
329 | */ | 341 | */ |
330 | protected void createEcoreAnnotations() { | 342 | protected void createEcoreAnnotations() { |
331 | String source = "http://www.eclipse.org/emf/2002/Ecore"; | 343 | String source = "http://www.eclipse.org/emf/2002/Ecore"; |
332 | addAnnotation | 344 | addAnnotation |
333 | (this, | 345 | (this, |
334 | source, | 346 | source, |
335 | new String[] { | 347 | new String[] { |
336 | "settingDelegates", "org.eclipse.viatra.query.querybasedfeature" | 348 | "settingDelegates", "org.eclipse.viatra.query.querybasedfeature" |
337 | }); | 349 | }); |
338 | } | 350 | } |
339 | 351 | ||
@@ -344,12 +356,12 @@ public class FilesystemPackageImpl extends EPackageImpl implements FilesystemPac | |||
344 | * @generated | 356 | * @generated |
345 | */ | 357 | */ |
346 | protected void createOrgAnnotations() { | 358 | protected void createOrgAnnotations() { |
347 | String source = "org.eclipse.viatra.query.querybasedfeature"; | 359 | String source = "org.eclipse.viatra.query.querybasedfeature"; |
348 | addAnnotation | 360 | addAnnotation |
349 | (getFileSystem_Live(), | 361 | (getFileSystem_Live(), |
350 | source, | 362 | source, |
351 | new String[] { | 363 | new String[] { |
352 | "patternFQN", "hu.bme.mit.inf.dslreasoner.domains.alloyexamples.live" | 364 | "patternFQN", "hu.bme.mit.inf.dslreasoner.domains.alloyexamples.live" |
353 | }); | 365 | }); |
354 | } | 366 | } |
355 | 367 | ||