diff options
Diffstat (limited to 'Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/viatra2logic/viatra2logicannotations/impl/Viatra2LogicAnnotationsPackageImpl.java')
-rw-r--r-- | Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/viatra2logic/viatra2logicannotations/impl/Viatra2LogicAnnotationsPackageImpl.java | 256 |
1 files changed, 256 insertions, 0 deletions
diff --git a/Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/viatra2logic/viatra2logicannotations/impl/Viatra2LogicAnnotationsPackageImpl.java b/Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/viatra2logic/viatra2logicannotations/impl/Viatra2LogicAnnotationsPackageImpl.java new file mode 100644 index 00000000..b6992bf9 --- /dev/null +++ b/Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/viatra2logic/viatra2logicannotations/impl/Viatra2LogicAnnotationsPackageImpl.java | |||
@@ -0,0 +1,256 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.viatra2logic.viatra2logicannotations.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.LogiclanguagePackage; | ||
6 | |||
7 | import hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.LogicproblemPackage; | ||
8 | |||
9 | import hu.bme.mit.inf.dslreasoner.viatra2logic.viatra2logicannotations.DefinedByDerivedFeature; | ||
10 | import hu.bme.mit.inf.dslreasoner.viatra2logic.viatra2logicannotations.TransfomedViatraQuery; | ||
11 | import hu.bme.mit.inf.dslreasoner.viatra2logic.viatra2logicannotations.TransformedViatraWellformednessConstraint; | ||
12 | import hu.bme.mit.inf.dslreasoner.viatra2logic.viatra2logicannotations.Viatra2LogicAnnotationsFactory; | ||
13 | import hu.bme.mit.inf.dslreasoner.viatra2logic.viatra2logicannotations.Viatra2LogicAnnotationsPackage; | ||
14 | |||
15 | import org.eclipse.emf.ecore.EAttribute; | ||
16 | import org.eclipse.emf.ecore.EClass; | ||
17 | import org.eclipse.emf.ecore.EPackage; | ||
18 | import org.eclipse.emf.ecore.EReference; | ||
19 | |||
20 | import org.eclipse.emf.ecore.impl.EPackageImpl; | ||
21 | |||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * An implementation of the model <b>Package</b>. | ||
25 | * <!-- end-user-doc --> | ||
26 | * @generated | ||
27 | */ | ||
28 | public class Viatra2LogicAnnotationsPackageImpl extends EPackageImpl implements Viatra2LogicAnnotationsPackage { | ||
29 | /** | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @generated | ||
33 | */ | ||
34 | private EClass transfomedViatraQueryEClass = null; | ||
35 | |||
36 | /** | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @generated | ||
40 | */ | ||
41 | private EClass transformedViatraWellformednessConstraintEClass = null; | ||
42 | |||
43 | /** | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | private EClass definedByDerivedFeatureEClass = null; | ||
49 | |||
50 | /** | ||
51 | * Creates an instance of the model <b>Package</b>, registered with | ||
52 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | ||
53 | * package URI value. | ||
54 | * <p>Note: the correct way to create the package is via the static | ||
55 | * factory method {@link #init init()}, which also performs | ||
56 | * initialization of the package, or returns the registered package, | ||
57 | * if one already exists. | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @see org.eclipse.emf.ecore.EPackage.Registry | ||
61 | * @see hu.bme.mit.inf.dslreasoner.viatra2logic.viatra2logicannotations.Viatra2LogicAnnotationsPackage#eNS_URI | ||
62 | * @see #init() | ||
63 | * @generated | ||
64 | */ | ||
65 | private Viatra2LogicAnnotationsPackageImpl() { | ||
66 | super(eNS_URI, Viatra2LogicAnnotationsFactory.eINSTANCE); | ||
67 | } | ||
68 | |||
69 | /** | ||
70 | * <!-- begin-user-doc --> | ||
71 | * <!-- end-user-doc --> | ||
72 | * @generated | ||
73 | */ | ||
74 | private static boolean isInited = false; | ||
75 | |||
76 | /** | ||
77 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | ||
78 | * | ||
79 | * <p>This method is used to initialize {@link Viatra2LogicAnnotationsPackage#eINSTANCE} when that field is accessed. | ||
80 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @see #eNS_URI | ||
84 | * @see #createPackageContents() | ||
85 | * @see #initializePackageContents() | ||
86 | * @generated | ||
87 | */ | ||
88 | public static Viatra2LogicAnnotationsPackage init() { | ||
89 | if (isInited) return (Viatra2LogicAnnotationsPackage)EPackage.Registry.INSTANCE.getEPackage(Viatra2LogicAnnotationsPackage.eNS_URI); | ||
90 | |||
91 | // Obtain or create and register package | ||
92 | Viatra2LogicAnnotationsPackageImpl theViatra2LogicAnnotationsPackage = (Viatra2LogicAnnotationsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof Viatra2LogicAnnotationsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new Viatra2LogicAnnotationsPackageImpl()); | ||
93 | |||
94 | isInited = true; | ||
95 | |||
96 | // Initialize simple dependencies | ||
97 | LogiclanguagePackage.eINSTANCE.eClass(); | ||
98 | LogicproblemPackage.eINSTANCE.eClass(); | ||
99 | |||
100 | // Create package meta-data objects | ||
101 | theViatra2LogicAnnotationsPackage.createPackageContents(); | ||
102 | |||
103 | // Initialize created meta-data | ||
104 | theViatra2LogicAnnotationsPackage.initializePackageContents(); | ||
105 | |||
106 | // Mark meta-data to indicate it can't be changed | ||
107 | theViatra2LogicAnnotationsPackage.freeze(); | ||
108 | |||
109 | |||
110 | // Update the registry and return the package | ||
111 | EPackage.Registry.INSTANCE.put(Viatra2LogicAnnotationsPackage.eNS_URI, theViatra2LogicAnnotationsPackage); | ||
112 | return theViatra2LogicAnnotationsPackage; | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | public EClass getTransfomedViatraQuery() { | ||
121 | return transfomedViatraQueryEClass; | ||
122 | } | ||
123 | |||
124 | /** | ||
125 | * <!-- begin-user-doc --> | ||
126 | * <!-- end-user-doc --> | ||
127 | * @generated | ||
128 | */ | ||
129 | public EAttribute getTransfomedViatraQuery_PatternFullyQualifiedName() { | ||
130 | return (EAttribute)transfomedViatraQueryEClass.getEStructuralFeatures().get(0); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | public EClass getTransformedViatraWellformednessConstraint() { | ||
139 | return transformedViatraWellformednessConstraintEClass; | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | public EReference getTransformedViatraWellformednessConstraint_Query() { | ||
148 | return (EReference)transformedViatraWellformednessConstraintEClass.getEStructuralFeatures().get(0); | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | public EClass getDefinedByDerivedFeature() { | ||
157 | return definedByDerivedFeatureEClass; | ||
158 | } | ||
159 | |||
160 | /** | ||
161 | * <!-- begin-user-doc --> | ||
162 | * <!-- end-user-doc --> | ||
163 | * @generated | ||
164 | */ | ||
165 | public EReference getDefinedByDerivedFeature_Query() { | ||
166 | return (EReference)definedByDerivedFeatureEClass.getEStructuralFeatures().get(0); | ||
167 | } | ||
168 | |||
169 | /** | ||
170 | * <!-- begin-user-doc --> | ||
171 | * <!-- end-user-doc --> | ||
172 | * @generated | ||
173 | */ | ||
174 | public Viatra2LogicAnnotationsFactory getViatra2LogicAnnotationsFactory() { | ||
175 | return (Viatra2LogicAnnotationsFactory)getEFactoryInstance(); | ||
176 | } | ||
177 | |||
178 | /** | ||
179 | * <!-- begin-user-doc --> | ||
180 | * <!-- end-user-doc --> | ||
181 | * @generated | ||
182 | */ | ||
183 | private boolean isCreated = false; | ||
184 | |||
185 | /** | ||
186 | * Creates the meta-model objects for the package. This method is | ||
187 | * guarded to have no affect on any invocation but its first. | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @generated | ||
191 | */ | ||
192 | public void createPackageContents() { | ||
193 | if (isCreated) return; | ||
194 | isCreated = true; | ||
195 | |||
196 | // Create classes and their features | ||
197 | transfomedViatraQueryEClass = createEClass(TRANSFOMED_VIATRA_QUERY); | ||
198 | createEAttribute(transfomedViatraQueryEClass, TRANSFOMED_VIATRA_QUERY__PATTERN_FULLY_QUALIFIED_NAME); | ||
199 | |||
200 | transformedViatraWellformednessConstraintEClass = createEClass(TRANSFORMED_VIATRA_WELLFORMEDNESS_CONSTRAINT); | ||
201 | createEReference(transformedViatraWellformednessConstraintEClass, TRANSFORMED_VIATRA_WELLFORMEDNESS_CONSTRAINT__QUERY); | ||
202 | |||
203 | definedByDerivedFeatureEClass = createEClass(DEFINED_BY_DERIVED_FEATURE); | ||
204 | createEReference(definedByDerivedFeatureEClass, DEFINED_BY_DERIVED_FEATURE__QUERY); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | private boolean isInitialized = false; | ||
213 | |||
214 | /** | ||
215 | * Complete the initialization of the package and its meta-model. This | ||
216 | * method is guarded to have no affect on any invocation but its first. | ||
217 | * <!-- begin-user-doc --> | ||
218 | * <!-- end-user-doc --> | ||
219 | * @generated | ||
220 | */ | ||
221 | public void initializePackageContents() { | ||
222 | if (isInitialized) return; | ||
223 | isInitialized = true; | ||
224 | |||
225 | // Initialize package | ||
226 | setName(eNAME); | ||
227 | setNsPrefix(eNS_PREFIX); | ||
228 | setNsURI(eNS_URI); | ||
229 | |||
230 | // Obtain other dependent packages | ||
231 | LogicproblemPackage theLogicproblemPackage = (LogicproblemPackage)EPackage.Registry.INSTANCE.getEPackage(LogicproblemPackage.eNS_URI); | ||
232 | |||
233 | // Create type parameters | ||
234 | |||
235 | // Set bounds for type parameters | ||
236 | |||
237 | // Add supertypes to classes | ||
238 | transfomedViatraQueryEClass.getESuperTypes().add(theLogicproblemPackage.getRelationAnnotation()); | ||
239 | transformedViatraWellformednessConstraintEClass.getESuperTypes().add(theLogicproblemPackage.getAssertionAnnotation()); | ||
240 | definedByDerivedFeatureEClass.getESuperTypes().add(theLogicproblemPackage.getRelationAnnotation()); | ||
241 | |||
242 | // Initialize classes, features, and operations; add parameters | ||
243 | initEClass(transfomedViatraQueryEClass, TransfomedViatraQuery.class, "TransfomedViatraQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
244 | initEAttribute(getTransfomedViatraQuery_PatternFullyQualifiedName(), ecorePackage.getEString(), "patternFullyQualifiedName", null, 1, 1, TransfomedViatraQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
245 | |||
246 | initEClass(transformedViatraWellformednessConstraintEClass, TransformedViatraWellformednessConstraint.class, "TransformedViatraWellformednessConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
247 | initEReference(getTransformedViatraWellformednessConstraint_Query(), this.getTransfomedViatraQuery(), null, "query", null, 1, 1, TransformedViatraWellformednessConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
248 | |||
249 | initEClass(definedByDerivedFeatureEClass, DefinedByDerivedFeature.class, "DefinedByDerivedFeature", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
250 | initEReference(getDefinedByDerivedFeature_Query(), this.getTransfomedViatraQuery(), null, "query", null, 1, 1, DefinedByDerivedFeature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
251 | |||
252 | // Create resource | ||
253 | createResource(eNS_URI); | ||
254 | } | ||
255 | |||
256 | } //Viatra2LogicAnnotationsPackageImpl | ||