Skip to main content
summaryrefslogtreecommitdiffstats
blob: 8e9fca0ee754b5988f8307e6db52a58f49a9fc64 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
/**
 * generated by Xtext 2.10.0
 */
package org.eclipse.qvtd.doc.minioclcs.impl;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EDataType;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
import org.eclipse.qvtd.doc.minioclcs.AccVarCS;
import org.eclipse.qvtd.doc.minioclcs.BooleanExpCS;
import org.eclipse.qvtd.doc.minioclcs.BooleanLiteralExpCS;
import org.eclipse.qvtd.doc.minioclcs.CallExpCS;
import org.eclipse.qvtd.doc.minioclcs.ClassCS;
import org.eclipse.qvtd.doc.minioclcs.CollectExpCS;
import org.eclipse.qvtd.doc.minioclcs.CollectionKindCS;
import org.eclipse.qvtd.doc.minioclcs.CollectionLiteralExpCS;
import org.eclipse.qvtd.doc.minioclcs.CollectionLiteralPartCS;
import org.eclipse.qvtd.doc.minioclcs.ConstraintsDefCS;
import org.eclipse.qvtd.doc.minioclcs.EqualityExpCS;
import org.eclipse.qvtd.doc.minioclcs.ExpCS;
import org.eclipse.qvtd.doc.minioclcs.ImportCS;
import org.eclipse.qvtd.doc.minioclcs.IntLiteralExpCS;
import org.eclipse.qvtd.doc.minioclcs.InvariantCS;
import org.eclipse.qvtd.doc.minioclcs.IterateExpCS;
import org.eclipse.qvtd.doc.minioclcs.IteratorVarCS;
import org.eclipse.qvtd.doc.minioclcs.LetExpCS;
import org.eclipse.qvtd.doc.minioclcs.LetVarCS;
import org.eclipse.qvtd.doc.minioclcs.LiteralExpCS;
import org.eclipse.qvtd.doc.minioclcs.LoopExpCS;
import org.eclipse.qvtd.doc.minioclcs.MinioclcsFactory;
import org.eclipse.qvtd.doc.minioclcs.MinioclcsPackage;
import org.eclipse.qvtd.doc.minioclcs.MultiplicityCS;
import org.eclipse.qvtd.doc.minioclcs.NameExpCS;
import org.eclipse.qvtd.doc.minioclcs.NavigationExpCS;
import org.eclipse.qvtd.doc.minioclcs.NullLiteralExpCS;
import org.eclipse.qvtd.doc.minioclcs.OperationCS;
import org.eclipse.qvtd.doc.minioclcs.PackageCS;
import org.eclipse.qvtd.doc.minioclcs.ParameterCS;
import org.eclipse.qvtd.doc.minioclcs.PathElementCS;
import org.eclipse.qvtd.doc.minioclcs.PathNameCS;
import org.eclipse.qvtd.doc.minioclcs.PrimaryExpCS;
import org.eclipse.qvtd.doc.minioclcs.PropertyCS;
import org.eclipse.qvtd.doc.minioclcs.RootCS;
import org.eclipse.qvtd.doc.minioclcs.RoundedBracketClauseCS;
import org.eclipse.qvtd.doc.minioclcs.SelfExpCS;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Factory</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class MinioclcsFactoryImpl extends EFactoryImpl implements MinioclcsFactory
{
  /**
	 * Creates the default factory implementation.
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public static MinioclcsFactory init()
  {
		try {
			MinioclcsFactory theMinioclcsFactory = (MinioclcsFactory)EPackage.Registry.INSTANCE.getEFactory(MinioclcsPackage.eNS_URI);
			if (theMinioclcsFactory != null) {
				return theMinioclcsFactory;
			}
		}
		catch (Exception exception) {
			EcorePlugin.INSTANCE.log(exception);
		}
		return new MinioclcsFactoryImpl();
	}

  /**
	 * Creates an instance of the factory.
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public MinioclcsFactoryImpl()
  {
		super();
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  @Override
  public EObject create(EClass eClass)
  {
		switch (eClass.getClassifierID()) {
			case MinioclcsPackage.ROOT_CS: return createRootCS();
			case MinioclcsPackage.IMPORT_CS: return createImportCS();
			case MinioclcsPackage.PACKAGE_CS: return createPackageCS();
			case MinioclcsPackage.CLASS_CS: return createClassCS();
			case MinioclcsPackage.PROPERTY_CS: return createPropertyCS();
			case MinioclcsPackage.MULTIPLICITY_CS: return createMultiplicityCS();
			case MinioclcsPackage.OPERATION_CS: return createOperationCS();
			case MinioclcsPackage.PARAMETER_CS: return createParameterCS();
			case MinioclcsPackage.CONSTRAINTS_DEF_CS: return createConstraintsDefCS();
			case MinioclcsPackage.INVARIANT_CS: return createInvariantCS();
			case MinioclcsPackage.EXP_CS: return createExpCS();
			case MinioclcsPackage.EQUALITY_EXP_CS: return createEqualityExpCS();
			case MinioclcsPackage.CALL_EXP_CS: return createCallExpCS();
			case MinioclcsPackage.PRIMARY_EXP_CS: return createPrimaryExpCS();
			case MinioclcsPackage.SELF_EXP_CS: return createSelfExpCS();
			case MinioclcsPackage.NAVIGATION_EXP_CS: return createNavigationExpCS();
			case MinioclcsPackage.LOOP_EXP_CS: return createLoopExpCS();
			case MinioclcsPackage.COLLECT_EXP_CS: return createCollectExpCS();
			case MinioclcsPackage.ITERATOR_VAR_CS: return createIteratorVarCS();
			case MinioclcsPackage.ITERATE_EXP_CS: return createIterateExpCS();
			case MinioclcsPackage.ACC_VAR_CS: return createAccVarCS();
			case MinioclcsPackage.NAME_EXP_CS: return createNameExpCS();
			case MinioclcsPackage.ROUNDED_BRACKET_CLAUSE_CS: return createRoundedBracketClauseCS();
			case MinioclcsPackage.LITERAL_EXP_CS: return createLiteralExpCS();
			case MinioclcsPackage.INT_LITERAL_EXP_CS: return createIntLiteralExpCS();
			case MinioclcsPackage.BOOLEAN_LITERAL_EXP_CS: return createBooleanLiteralExpCS();
			case MinioclcsPackage.NULL_LITERAL_EXP_CS: return createNullLiteralExpCS();
			case MinioclcsPackage.COLLECTION_LITERAL_EXP_CS: return createCollectionLiteralExpCS();
			case MinioclcsPackage.COLLECTION_LITERAL_PART_CS: return createCollectionLiteralPartCS();
			case MinioclcsPackage.LET_EXP_CS: return createLetExpCS();
			case MinioclcsPackage.LET_VAR_CS: return createLetVarCS();
			case MinioclcsPackage.PATH_NAME_CS: return createPathNameCS();
			case MinioclcsPackage.PATH_ELEMENT_CS: return createPathElementCS();
			case MinioclcsPackage.BOOLEAN_EXP_CS: return createBooleanExpCS();
			default:
				throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
		}
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  @Override
  public Object createFromString(EDataType eDataType, String initialValue)
  {
		switch (eDataType.getClassifierID()) {
			case MinioclcsPackage.COLLECTION_KIND_CS:
				return createCollectionKindCSFromString(eDataType, initialValue);
			default:
				throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
		}
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  @Override
  public String convertToString(EDataType eDataType, Object instanceValue)
  {
		switch (eDataType.getClassifierID()) {
			case MinioclcsPackage.COLLECTION_KIND_CS:
				return convertCollectionKindCSToString(eDataType, instanceValue);
			default:
				throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
		}
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public RootCS createRootCS()
  {
		RootCSImpl rootCS = new RootCSImpl();
		return rootCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public ImportCS createImportCS()
  {
		ImportCSImpl importCS = new ImportCSImpl();
		return importCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public PackageCS createPackageCS()
  {
		PackageCSImpl packageCS = new PackageCSImpl();
		return packageCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public ClassCS createClassCS()
  {
		ClassCSImpl classCS = new ClassCSImpl();
		return classCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public PropertyCS createPropertyCS()
  {
		PropertyCSImpl propertyCS = new PropertyCSImpl();
		return propertyCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public MultiplicityCS createMultiplicityCS()
  {
		MultiplicityCSImpl multiplicityCS = new MultiplicityCSImpl();
		return multiplicityCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public OperationCS createOperationCS()
  {
		OperationCSImpl operationCS = new OperationCSImpl();
		return operationCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public ParameterCS createParameterCS()
  {
		ParameterCSImpl parameterCS = new ParameterCSImpl();
		return parameterCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public ConstraintsDefCS createConstraintsDefCS()
  {
		ConstraintsDefCSImpl constraintsDefCS = new ConstraintsDefCSImpl();
		return constraintsDefCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public InvariantCS createInvariantCS()
  {
		InvariantCSImpl invariantCS = new InvariantCSImpl();
		return invariantCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public ExpCS createExpCS()
  {
		ExpCSImpl expCS = new ExpCSImpl();
		return expCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public EqualityExpCS createEqualityExpCS()
  {
		EqualityExpCSImpl equalityExpCS = new EqualityExpCSImpl();
		return equalityExpCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public CallExpCS createCallExpCS()
  {
		CallExpCSImpl callExpCS = new CallExpCSImpl();
		return callExpCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public PrimaryExpCS createPrimaryExpCS()
  {
		PrimaryExpCSImpl primaryExpCS = new PrimaryExpCSImpl();
		return primaryExpCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public SelfExpCS createSelfExpCS()
  {
		SelfExpCSImpl selfExpCS = new SelfExpCSImpl();
		return selfExpCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public NavigationExpCS createNavigationExpCS()
  {
		NavigationExpCSImpl navigationExpCS = new NavigationExpCSImpl();
		return navigationExpCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public LoopExpCS createLoopExpCS()
  {
		LoopExpCSImpl loopExpCS = new LoopExpCSImpl();
		return loopExpCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public CollectExpCS createCollectExpCS()
  {
		CollectExpCSImpl collectExpCS = new CollectExpCSImpl();
		return collectExpCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public IteratorVarCS createIteratorVarCS()
  {
		IteratorVarCSImpl iteratorVarCS = new IteratorVarCSImpl();
		return iteratorVarCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public IterateExpCS createIterateExpCS()
  {
		IterateExpCSImpl iterateExpCS = new IterateExpCSImpl();
		return iterateExpCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public AccVarCS createAccVarCS()
  {
		AccVarCSImpl accVarCS = new AccVarCSImpl();
		return accVarCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public NameExpCS createNameExpCS()
  {
		NameExpCSImpl nameExpCS = new NameExpCSImpl();
		return nameExpCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public RoundedBracketClauseCS createRoundedBracketClauseCS()
  {
		RoundedBracketClauseCSImpl roundedBracketClauseCS = new RoundedBracketClauseCSImpl();
		return roundedBracketClauseCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public LiteralExpCS createLiteralExpCS()
  {
		LiteralExpCSImpl literalExpCS = new LiteralExpCSImpl();
		return literalExpCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public IntLiteralExpCS createIntLiteralExpCS()
  {
		IntLiteralExpCSImpl intLiteralExpCS = new IntLiteralExpCSImpl();
		return intLiteralExpCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public BooleanLiteralExpCS createBooleanLiteralExpCS()
  {
		BooleanLiteralExpCSImpl booleanLiteralExpCS = new BooleanLiteralExpCSImpl();
		return booleanLiteralExpCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public NullLiteralExpCS createNullLiteralExpCS()
  {
		NullLiteralExpCSImpl nullLiteralExpCS = new NullLiteralExpCSImpl();
		return nullLiteralExpCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public CollectionLiteralExpCS createCollectionLiteralExpCS()
  {
		CollectionLiteralExpCSImpl collectionLiteralExpCS = new CollectionLiteralExpCSImpl();
		return collectionLiteralExpCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public CollectionLiteralPartCS createCollectionLiteralPartCS()
  {
		CollectionLiteralPartCSImpl collectionLiteralPartCS = new CollectionLiteralPartCSImpl();
		return collectionLiteralPartCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public LetExpCS createLetExpCS()
  {
		LetExpCSImpl letExpCS = new LetExpCSImpl();
		return letExpCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public LetVarCS createLetVarCS()
  {
		LetVarCSImpl letVarCS = new LetVarCSImpl();
		return letVarCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public PathNameCS createPathNameCS()
  {
		PathNameCSImpl pathNameCS = new PathNameCSImpl();
		return pathNameCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public PathElementCS createPathElementCS()
  {
		PathElementCSImpl pathElementCS = new PathElementCSImpl();
		return pathElementCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public BooleanExpCS createBooleanExpCS()
  {
		BooleanExpCSImpl booleanExpCS = new BooleanExpCSImpl();
		return booleanExpCS;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public CollectionKindCS createCollectionKindCSFromString(EDataType eDataType, String initialValue)
  {
		CollectionKindCS result = CollectionKindCS.get(initialValue);
		if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
		return result;
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public String convertCollectionKindCSToString(EDataType eDataType, Object instanceValue)
  {
		return instanceValue == null ? null : instanceValue.toString();
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @generated
	 */
  public MinioclcsPackage getMinioclcsPackage()
  {
		return (MinioclcsPackage)getEPackage();
	}

  /**
	 * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
	 * @deprecated
	 * @generated
	 */
  @Deprecated
  public static MinioclcsPackage getPackage()
  {
		return MinioclcsPackage.eINSTANCE;
	}

} //MinioclcsFactoryImpl

Back to the top