aboutsummaryrefslogtreecommitdiffstats
path: root/Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/ecore2logic/ecore2logicannotations/impl/Ecore2logicannotationsPackageImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/ecore2logic/ecore2logicannotations/impl/Ecore2logicannotationsPackageImpl.java')
-rw-r--r--Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/ecore2logic/ecore2logicannotations/impl/Ecore2logicannotationsPackageImpl.java301
1 files changed, 301 insertions, 0 deletions
diff --git a/Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/ecore2logic/ecore2logicannotations/impl/Ecore2logicannotationsPackageImpl.java b/Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/ecore2logic/ecore2logicannotations/impl/Ecore2logicannotationsPackageImpl.java
new file mode 100644
index 00000000..33f94c36
--- /dev/null
+++ b/Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/ecore2logic/ecore2logicannotations/impl/Ecore2logicannotationsPackageImpl.java
@@ -0,0 +1,301 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.impl;
4
5import hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.Ecore2logicannotationsFactory;
6import hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.Ecore2logicannotationsPackage;
7import hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.InverseRelationAssertion;
8import hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.LowerMultiplicityAssertion;
9import hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.MultiplicityAssertion;
10import hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.UpperMultiplicityAssertion;
11
12import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.LogiclanguagePackage;
13
14import hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.LogicproblemPackage;
15
16import org.eclipse.emf.ecore.EAttribute;
17import org.eclipse.emf.ecore.EClass;
18import org.eclipse.emf.ecore.EPackage;
19import org.eclipse.emf.ecore.EReference;
20
21import org.eclipse.emf.ecore.impl.EPackageImpl;
22
23/**
24 * <!-- begin-user-doc -->
25 * An implementation of the model <b>Package</b>.
26 * <!-- end-user-doc -->
27 * @generated
28 */
29public class Ecore2logicannotationsPackageImpl extends EPackageImpl implements Ecore2logicannotationsPackage {
30 /**
31 * <!-- begin-user-doc -->
32 * <!-- end-user-doc -->
33 * @generated
34 */
35 private EClass multiplicityAssertionEClass = null;
36
37 /**
38 * <!-- begin-user-doc -->
39 * <!-- end-user-doc -->
40 * @generated
41 */
42 private EClass inverseRelationAssertionEClass = null;
43
44 /**
45 * <!-- begin-user-doc -->
46 * <!-- end-user-doc -->
47 * @generated
48 */
49 private EClass lowerMultiplicityAssertionEClass = null;
50
51 /**
52 * <!-- begin-user-doc -->
53 * <!-- end-user-doc -->
54 * @generated
55 */
56 private EClass upperMultiplicityAssertionEClass = null;
57
58 /**
59 * Creates an instance of the model <b>Package</b>, registered with
60 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
61 * package URI value.
62 * <p>Note: the correct way to create the package is via the static
63 * factory method {@link #init init()}, which also performs
64 * initialization of the package, or returns the registered package,
65 * if one already exists.
66 * <!-- begin-user-doc -->
67 * <!-- end-user-doc -->
68 * @see org.eclipse.emf.ecore.EPackage.Registry
69 * @see hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.Ecore2logicannotationsPackage#eNS_URI
70 * @see #init()
71 * @generated
72 */
73 private Ecore2logicannotationsPackageImpl() {
74 super(eNS_URI, Ecore2logicannotationsFactory.eINSTANCE);
75 }
76
77 /**
78 * <!-- begin-user-doc -->
79 * <!-- end-user-doc -->
80 * @generated
81 */
82 private static boolean isInited = false;
83
84 /**
85 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
86 *
87 * <p>This method is used to initialize {@link Ecore2logicannotationsPackage#eINSTANCE} when that field is accessed.
88 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
89 * <!-- begin-user-doc -->
90 * <!-- end-user-doc -->
91 * @see #eNS_URI
92 * @see #createPackageContents()
93 * @see #initializePackageContents()
94 * @generated
95 */
96 public static Ecore2logicannotationsPackage init() {
97 if (isInited) return (Ecore2logicannotationsPackage)EPackage.Registry.INSTANCE.getEPackage(Ecore2logicannotationsPackage.eNS_URI);
98
99 // Obtain or create and register package
100 Ecore2logicannotationsPackageImpl theEcore2logicannotationsPackage = (Ecore2logicannotationsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof Ecore2logicannotationsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new Ecore2logicannotationsPackageImpl());
101
102 isInited = true;
103
104 // Initialize simple dependencies
105 LogiclanguagePackage.eINSTANCE.eClass();
106 LogicproblemPackage.eINSTANCE.eClass();
107
108 // Create package meta-data objects
109 theEcore2logicannotationsPackage.createPackageContents();
110
111 // Initialize created meta-data
112 theEcore2logicannotationsPackage.initializePackageContents();
113
114 // Mark meta-data to indicate it can't be changed
115 theEcore2logicannotationsPackage.freeze();
116
117
118 // Update the registry and return the package
119 EPackage.Registry.INSTANCE.put(Ecore2logicannotationsPackage.eNS_URI, theEcore2logicannotationsPackage);
120 return theEcore2logicannotationsPackage;
121 }
122
123 /**
124 * <!-- begin-user-doc -->
125 * <!-- end-user-doc -->
126 * @generated
127 */
128 public EClass getMultiplicityAssertion() {
129 return multiplicityAssertionEClass;
130 }
131
132 /**
133 * <!-- begin-user-doc -->
134 * <!-- end-user-doc -->
135 * @generated
136 */
137 public EReference getMultiplicityAssertion_Relation() {
138 return (EReference)multiplicityAssertionEClass.getEStructuralFeatures().get(0);
139 }
140
141 /**
142 * <!-- begin-user-doc -->
143 * <!-- end-user-doc -->
144 * @generated
145 */
146 public EClass getInverseRelationAssertion() {
147 return inverseRelationAssertionEClass;
148 }
149
150 /**
151 * <!-- begin-user-doc -->
152 * <!-- end-user-doc -->
153 * @generated
154 */
155 public EReference getInverseRelationAssertion_InverseA() {
156 return (EReference)inverseRelationAssertionEClass.getEStructuralFeatures().get(0);
157 }
158
159 /**
160 * <!-- begin-user-doc -->
161 * <!-- end-user-doc -->
162 * @generated
163 */
164 public EReference getInverseRelationAssertion_InverseB() {
165 return (EReference)inverseRelationAssertionEClass.getEStructuralFeatures().get(1);
166 }
167
168 /**
169 * <!-- begin-user-doc -->
170 * <!-- end-user-doc -->
171 * @generated
172 */
173 public EClass getLowerMultiplicityAssertion() {
174 return lowerMultiplicityAssertionEClass;
175 }
176
177 /**
178 * <!-- begin-user-doc -->
179 * <!-- end-user-doc -->
180 * @generated
181 */
182 public EAttribute getLowerMultiplicityAssertion_Lower() {
183 return (EAttribute)lowerMultiplicityAssertionEClass.getEStructuralFeatures().get(0);
184 }
185
186 /**
187 * <!-- begin-user-doc -->
188 * <!-- end-user-doc -->
189 * @generated
190 */
191 public EClass getUpperMultiplicityAssertion() {
192 return upperMultiplicityAssertionEClass;
193 }
194
195 /**
196 * <!-- begin-user-doc -->
197 * <!-- end-user-doc -->
198 * @generated
199 */
200 public EAttribute getUpperMultiplicityAssertion_Upper() {
201 return (EAttribute)upperMultiplicityAssertionEClass.getEStructuralFeatures().get(0);
202 }
203
204 /**
205 * <!-- begin-user-doc -->
206 * <!-- end-user-doc -->
207 * @generated
208 */
209 public Ecore2logicannotationsFactory getEcore2logicannotationsFactory() {
210 return (Ecore2logicannotationsFactory)getEFactoryInstance();
211 }
212
213 /**
214 * <!-- begin-user-doc -->
215 * <!-- end-user-doc -->
216 * @generated
217 */
218 private boolean isCreated = false;
219
220 /**
221 * Creates the meta-model objects for the package. This method is
222 * guarded to have no affect on any invocation but its first.
223 * <!-- begin-user-doc -->
224 * <!-- end-user-doc -->
225 * @generated
226 */
227 public void createPackageContents() {
228 if (isCreated) return;
229 isCreated = true;
230
231 // Create classes and their features
232 multiplicityAssertionEClass = createEClass(MULTIPLICITY_ASSERTION);
233 createEReference(multiplicityAssertionEClass, MULTIPLICITY_ASSERTION__RELATION);
234
235 inverseRelationAssertionEClass = createEClass(INVERSE_RELATION_ASSERTION);
236 createEReference(inverseRelationAssertionEClass, INVERSE_RELATION_ASSERTION__INVERSE_A);
237 createEReference(inverseRelationAssertionEClass, INVERSE_RELATION_ASSERTION__INVERSE_B);
238
239 lowerMultiplicityAssertionEClass = createEClass(LOWER_MULTIPLICITY_ASSERTION);
240 createEAttribute(lowerMultiplicityAssertionEClass, LOWER_MULTIPLICITY_ASSERTION__LOWER);
241
242 upperMultiplicityAssertionEClass = createEClass(UPPER_MULTIPLICITY_ASSERTION);
243 createEAttribute(upperMultiplicityAssertionEClass, UPPER_MULTIPLICITY_ASSERTION__UPPER);
244 }
245
246 /**
247 * <!-- begin-user-doc -->
248 * <!-- end-user-doc -->
249 * @generated
250 */
251 private boolean isInitialized = false;
252
253 /**
254 * Complete the initialization of the package and its meta-model. This
255 * method is guarded to have no affect on any invocation but its first.
256 * <!-- begin-user-doc -->
257 * <!-- end-user-doc -->
258 * @generated
259 */
260 public void initializePackageContents() {
261 if (isInitialized) return;
262 isInitialized = true;
263
264 // Initialize package
265 setName(eNAME);
266 setNsPrefix(eNS_PREFIX);
267 setNsURI(eNS_URI);
268
269 // Obtain other dependent packages
270 LogicproblemPackage theLogicproblemPackage = (LogicproblemPackage)EPackage.Registry.INSTANCE.getEPackage(LogicproblemPackage.eNS_URI);
271 LogiclanguagePackage theLogiclanguagePackage = (LogiclanguagePackage)EPackage.Registry.INSTANCE.getEPackage(LogiclanguagePackage.eNS_URI);
272
273 // Create type parameters
274
275 // Set bounds for type parameters
276
277 // Add supertypes to classes
278 multiplicityAssertionEClass.getESuperTypes().add(theLogicproblemPackage.getAssertionAnnotation());
279 inverseRelationAssertionEClass.getESuperTypes().add(theLogicproblemPackage.getAssertionAnnotation());
280 lowerMultiplicityAssertionEClass.getESuperTypes().add(this.getMultiplicityAssertion());
281 upperMultiplicityAssertionEClass.getESuperTypes().add(this.getMultiplicityAssertion());
282
283 // Initialize classes, features, and operations; add parameters
284 initEClass(multiplicityAssertionEClass, MultiplicityAssertion.class, "MultiplicityAssertion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
285 initEReference(getMultiplicityAssertion_Relation(), theLogiclanguagePackage.getRelation(), null, "relation", null, 1, 1, MultiplicityAssertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
286
287 initEClass(inverseRelationAssertionEClass, InverseRelationAssertion.class, "InverseRelationAssertion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
288 initEReference(getInverseRelationAssertion_InverseA(), theLogiclanguagePackage.getRelation(), null, "inverseA", null, 1, 1, InverseRelationAssertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
289 initEReference(getInverseRelationAssertion_InverseB(), theLogiclanguagePackage.getRelation(), null, "inverseB", null, 1, 1, InverseRelationAssertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
290
291 initEClass(lowerMultiplicityAssertionEClass, LowerMultiplicityAssertion.class, "LowerMultiplicityAssertion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
292 initEAttribute(getLowerMultiplicityAssertion_Lower(), ecorePackage.getEInt(), "lower", null, 1, 1, LowerMultiplicityAssertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
293
294 initEClass(upperMultiplicityAssertionEClass, UpperMultiplicityAssertion.class, "UpperMultiplicityAssertion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
295 initEAttribute(getUpperMultiplicityAssertion_Upper(), ecorePackage.getEInt(), "upper", null, 1, 1, UpperMultiplicityAssertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
296
297 // Create resource
298 createResource(eNS_URI);
299 }
300
301} //Ecore2logicannotationsPackageImpl