Skip to content

Package: RulePackageImpl

RulePackageImpl

nameinstructionbranchcomplexitylinemethod
RulePackageImpl()
M: 0 C: 53
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 18
100%
M: 0 C: 1
100%
createPackageContents()
M: 1 C: 152
99%
M: 1 C: 1
50%
M: 1 C: 1
50%
M: 1 C: 32
97%
M: 0 C: 1
100%
getAndCondition()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getAndCondition_Conditions()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getCompareType()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getCondition()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getEnableRule()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getEnableRule_Disable()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getFalse()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getIsProxyCondition()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getIsProxyCondition_DomainModelReference()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getIterateCondition()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getIterateCondition_IfEmpty()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getIterateCondition_ItemCondition()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getIterateCondition_ItemReference()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getIterateCondition_Quantifier()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getLeafCondition()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getLeafCondition_CompareType()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getLeafCondition_DomainModelReference()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getLeafCondition_ExpectedValue()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getLeafCondition_ValueDomainModelReference()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getNotCondition()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getNotCondition_Condition()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getOrCondition()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getOrCondition_Conditions()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getQuantifier()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getRule()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getRuleFactory()
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getRule_Condition()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getShowRule()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getShowRule_Hide()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getTrue()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
init()
M: 9 C: 33
79%
M: 2 C: 2
50%
M: 2 C: 1
33%
M: 1 C: 11
92%
M: 0 C: 1
100%
initializePackageContents()
M: 1 C: 582
100%
M: 1 C: 1
50%
M: 1 C: 1
50%
M: 1 C: 91
99%
M: 0 C: 1
100%
static {...}
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2018 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * EclipseSource Munich GmbH - initial API and implementation
13: * Christian W. Damus - bugs 527753, 530900
14: ******************************************************************************/
15: package org.eclipse.emf.ecp.view.spi.rule.model.impl;
16:
17: import org.eclipse.emf.ecore.EAttribute;
18: import org.eclipse.emf.ecore.EClass;
19: import org.eclipse.emf.ecore.EEnum;
20: import org.eclipse.emf.ecore.EPackage;
21: import org.eclipse.emf.ecore.EReference;
22: import org.eclipse.emf.ecore.EcorePackage;
23: import org.eclipse.emf.ecore.impl.EPackageImpl;
24: import org.eclipse.emf.ecp.view.spi.model.VViewPackage;
25: import org.eclipse.emf.ecp.view.spi.rule.model.AndCondition;
26: import org.eclipse.emf.ecp.view.spi.rule.model.CompareType;
27: import org.eclipse.emf.ecp.view.spi.rule.model.Condition;
28: import org.eclipse.emf.ecp.view.spi.rule.model.EnableRule;
29: import org.eclipse.emf.ecp.view.spi.rule.model.False;
30: import org.eclipse.emf.ecp.view.spi.rule.model.IsProxyCondition;
31: import org.eclipse.emf.ecp.view.spi.rule.model.IterateCondition;
32: import org.eclipse.emf.ecp.view.spi.rule.model.LeafCondition;
33: import org.eclipse.emf.ecp.view.spi.rule.model.NotCondition;
34: import org.eclipse.emf.ecp.view.spi.rule.model.OrCondition;
35: import org.eclipse.emf.ecp.view.spi.rule.model.Quantifier;
36: import org.eclipse.emf.ecp.view.spi.rule.model.Rule;
37: import org.eclipse.emf.ecp.view.spi.rule.model.RuleFactory;
38: import org.eclipse.emf.ecp.view.spi.rule.model.RulePackage;
39: import org.eclipse.emf.ecp.view.spi.rule.model.ShowRule;
40: import org.eclipse.emf.ecp.view.spi.rule.model.True;
41:
42: /**
43: * <!-- begin-user-doc -->
44: * An implementation of the model <b>Package</b>.
45: *
46: * @since 1.2
47: * <!-- end-user-doc -->
48: * @generated
49: */
50: public class RulePackageImpl extends EPackageImpl implements RulePackage {
51:         /**
52:          * <!-- begin-user-doc -->
53:          * <!-- end-user-doc -->
54:          *
55:          * @generated
56:          */
57:         private EClass conditionEClass = null;
58:
59:         /**
60:          * <!-- begin-user-doc -->
61:          * <!-- end-user-doc -->
62:          *
63:          * @generated
64:          */
65:         private EClass leafConditionEClass = null;
66:
67:         /**
68:          * <!-- begin-user-doc -->
69:          * <!-- end-user-doc -->
70:          *
71:          * @generated
72:          */
73:         private EClass orConditionEClass = null;
74:
75:         /**
76:          * <!-- begin-user-doc -->
77:          * <!-- end-user-doc -->
78:          *
79:          * @generated
80:          */
81:         private EClass andConditionEClass = null;
82:
83:         /**
84:          * <!-- begin-user-doc -->
85:          * <!-- end-user-doc -->
86:          *
87:          * @generated
88:          */
89:         private EClass ruleEClass = null;
90:
91:         /**
92:          * <!-- begin-user-doc -->
93:          * <!-- end-user-doc -->
94:          *
95:          * @generated
96:          */
97:         private EClass showRuleEClass = null;
98:
99:         /**
100:          * <!-- begin-user-doc -->
101:          * <!-- end-user-doc -->
102:          *
103:          * @generated
104:          */
105:         private EClass enableRuleEClass = null;
106:
107:         /**
108:          * <!-- begin-user-doc -->
109:          * <!-- end-user-doc -->
110:          *
111:          * @generated
112:          */
113:         private EClass iterateConditionEClass = null;
114:
115:         /**
116:          * <!-- begin-user-doc -->
117:          * <!-- end-user-doc -->
118:          *
119:          * @generated
120:          */
121:         private EClass trueEClass = null;
122:
123:         /**
124:          * <!-- begin-user-doc -->
125:          * <!-- end-user-doc -->
126:          *
127:          * @generated
128:          */
129:         private EClass falseEClass = null;
130:
131:         /**
132:          * <!-- begin-user-doc -->
133:          * <!-- end-user-doc -->
134:          *
135:          * @generated
136:          */
137:         private EClass notConditionEClass = null;
138:
139:         /**
140:          * <!-- begin-user-doc -->
141:          * <!-- end-user-doc -->
142:          *
143:          * @generated
144:          */
145:         private EClass isProxyConditionEClass = null;
146:
147:         /**
148:          * <!-- begin-user-doc -->
149:          * <!-- end-user-doc -->
150:          *
151:          * @generated
152:          */
153:         private EEnum compareTypeEEnum = null;
154:
155:         /**
156:          * <!-- begin-user-doc -->
157:          * <!-- end-user-doc -->
158:          *
159:          * @generated
160:          */
161:         private EEnum quantifierEEnum = null;
162:
163:         /**
164:          * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry
165:          * EPackage.Registry} by the package
166:          * package URI value.
167:          * <p>
168:          * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also
169:          * performs initialization of the package, or returns the registered package, if one already exists. <!--
170:          * begin-user-doc --> <!-- end-user-doc -->
171:          *
172:          * @see org.eclipse.emf.ecore.EPackage.Registry
173:          * @see org.eclipse.emf.ecp.view.spi.rule.model.RulePackage#eNS_URI
174:          * @see #init()
175:          * @generated
176:          */
177:         private RulePackageImpl() {
178:                 super(eNS_URI, RuleFactory.eINSTANCE);
179:         }
180:
181:         /**
182:          * <!-- begin-user-doc -->
183:          * <!-- end-user-doc -->
184:          *
185:          * @generated
186:          */
187:         private static boolean isInited = false;
188:
189:         /**
190:          * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
191:          *
192:          * <p>
193:          * This method is used to initialize {@link RulePackage#eINSTANCE} when that field is accessed.
194:          * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
195:          * <!-- begin-user-doc -->
196:          * <!-- end-user-doc -->
197:          *
198:          * @see #eNS_URI
199:          * @see #createPackageContents()
200:          * @see #initializePackageContents()
201:          * @generated
202:          */
203:         public static RulePackage init() {
204:•                if (isInited) {
205:                         return (RulePackage) EPackage.Registry.INSTANCE.getEPackage(RulePackage.eNS_URI);
206:                 }
207:
208:                 // Obtain or create and register package
209:                 final RulePackageImpl theRulePackage = (RulePackageImpl) (EPackage.Registry.INSTANCE
210:•                        .get(eNS_URI) instanceof RulePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new RulePackageImpl());
211:
212:                 isInited = true;
213:
214:                 // Initialize simple dependencies
215:                 EcorePackage.eINSTANCE.eClass();
216:                 VViewPackage.eINSTANCE.eClass();
217:
218:                 // Create package meta-data objects
219:                 theRulePackage.createPackageContents();
220:
221:                 // Initialize created meta-data
222:                 theRulePackage.initializePackageContents();
223:
224:                 // Mark meta-data to indicate it can't be changed
225:                 theRulePackage.freeze();
226:
227:                 // Update the registry and return the package
228:                 EPackage.Registry.INSTANCE.put(RulePackage.eNS_URI, theRulePackage);
229:                 return theRulePackage;
230:         }
231:
232:         /**
233:          * <!-- begin-user-doc -->
234:          * <!-- end-user-doc -->
235:          *
236:          * @generated
237:          */
238:         @Override
239:         public EClass getCondition() {
240:                 return conditionEClass;
241:         }
242:
243:         /**
244:          * <!-- begin-user-doc -->
245:          * <!-- end-user-doc -->
246:          *
247:          * @generated
248:          */
249:         @Override
250:         public EClass getLeafCondition() {
251:                 return leafConditionEClass;
252:         }
253:
254:         /**
255:          * <!-- begin-user-doc -->
256:          * <!-- end-user-doc -->
257:          *
258:          * @generated
259:          */
260:         @Override
261:         public EAttribute getLeafCondition_ExpectedValue() {
262:                 return (EAttribute) leafConditionEClass.getEStructuralFeatures().get(0);
263:         }
264:
265:         /**
266:          * <!-- begin-user-doc -->
267:          * <!-- end-user-doc -->
268:          *
269:          * @generated
270:          */
271:         @Override
272:         public EReference getLeafCondition_DomainModelReference() {
273:                 return (EReference) leafConditionEClass.getEStructuralFeatures().get(1);
274:         }
275:
276:         /**
277:          * <!-- begin-user-doc -->
278:          *
279:          * @since 1.5
280:          * <!-- end-user-doc -->
281:          * @generated
282:          */
283:         @Override
284:         public EReference getLeafCondition_ValueDomainModelReference() {
285:                 return (EReference) leafConditionEClass.getEStructuralFeatures().get(2);
286:         }
287:
288:         /**
289:          * <!-- begin-user-doc -->
290:          *
291:          * @since 1.11
292:          * <!-- end-user-doc -->
293:          * @generated
294:          */
295:         @Override
296:         public EAttribute getLeafCondition_CompareType() {
297:                 return (EAttribute) leafConditionEClass.getEStructuralFeatures().get(3);
298:         }
299:
300:         /**
301:          * <!-- begin-user-doc -->
302:          * <!-- end-user-doc -->
303:          *
304:          * @generated
305:          */
306:         @Override
307:         public EClass getOrCondition() {
308:                 return orConditionEClass;
309:         }
310:
311:         /**
312:          * <!-- begin-user-doc -->
313:          * <!-- end-user-doc -->
314:          *
315:          * @generated
316:          */
317:         @Override
318:         public EReference getOrCondition_Conditions() {
319:                 return (EReference) orConditionEClass.getEStructuralFeatures().get(0);
320:         }
321:
322:         /**
323:          * <!-- begin-user-doc -->
324:          * <!-- end-user-doc -->
325:          *
326:          * @generated
327:          */
328:         @Override
329:         public EClass getAndCondition() {
330:                 return andConditionEClass;
331:         }
332:
333:         /**
334:          * <!-- begin-user-doc -->
335:          * <!-- end-user-doc -->
336:          *
337:          * @generated
338:          */
339:         @Override
340:         public EReference getAndCondition_Conditions() {
341:                 return (EReference) andConditionEClass.getEStructuralFeatures().get(0);
342:         }
343:
344:         /**
345:          * <!-- begin-user-doc -->
346:          * <!-- end-user-doc -->
347:          *
348:          * @generated
349:          */
350:         @Override
351:         public EClass getRule() {
352:                 return ruleEClass;
353:         }
354:
355:         /**
356:          * <!-- begin-user-doc -->
357:          * <!-- end-user-doc -->
358:          *
359:          * @generated
360:          */
361:         @Override
362:         public EReference getRule_Condition() {
363:                 return (EReference) ruleEClass.getEStructuralFeatures().get(0);
364:         }
365:
366:         /**
367:          * <!-- begin-user-doc -->
368:          * <!-- end-user-doc -->
369:          *
370:          * @generated
371:          */
372:         @Override
373:         public EClass getShowRule() {
374:                 return showRuleEClass;
375:         }
376:
377:         /**
378:          * <!-- begin-user-doc -->
379:          * <!-- end-user-doc -->
380:          *
381:          * @generated
382:          */
383:         @Override
384:         public EAttribute getShowRule_Hide() {
385:                 return (EAttribute) showRuleEClass.getEStructuralFeatures().get(0);
386:         }
387:
388:         /**
389:          * <!-- begin-user-doc -->
390:          * <!-- end-user-doc -->
391:          *
392:          * @generated
393:          */
394:         @Override
395:         public EClass getEnableRule() {
396:                 return enableRuleEClass;
397:         }
398:
399:         /**
400:          * <!-- begin-user-doc -->
401:          * <!-- end-user-doc -->
402:          *
403:          * @generated
404:          */
405:         @Override
406:         public EAttribute getEnableRule_Disable() {
407:                 return (EAttribute) enableRuleEClass.getEStructuralFeatures().get(0);
408:         }
409:
410:         /**
411:          * <!-- begin-user-doc -->
412:          * <!-- end-user-doc -->
413:          *
414:          * @generated
415:          */
416:         @Override
417:         public EClass getIterateCondition() {
418:                 return iterateConditionEClass;
419:         }
420:
421:         /**
422:          * <!-- begin-user-doc -->
423:          * <!-- end-user-doc -->
424:          *
425:          * @generated
426:          */
427:         @Override
428:         public EAttribute getIterateCondition_Quantifier() {
429:                 return (EAttribute) iterateConditionEClass.getEStructuralFeatures().get(0);
430:         }
431:
432:         /**
433:          * <!-- begin-user-doc -->
434:          * <!-- end-user-doc -->
435:          *
436:          * @generated
437:          */
438:         @Override
439:         public EAttribute getIterateCondition_IfEmpty() {
440:                 return (EAttribute) iterateConditionEClass.getEStructuralFeatures().get(1);
441:         }
442:
443:         /**
444:          * <!-- begin-user-doc -->
445:          * <!-- end-user-doc -->
446:          *
447:          * @generated
448:          */
449:         @Override
450:         public EReference getIterateCondition_ItemReference() {
451:                 return (EReference) iterateConditionEClass.getEStructuralFeatures().get(2);
452:         }
453:
454:         /**
455:          * <!-- begin-user-doc -->
456:          * <!-- end-user-doc -->
457:          *
458:          * @generated
459:          */
460:         @Override
461:         public EReference getIterateCondition_ItemCondition() {
462:                 return (EReference) iterateConditionEClass.getEStructuralFeatures().get(3);
463:         }
464:
465:         /**
466:          * <!-- begin-user-doc -->
467:          * <!-- end-user-doc -->
468:          *
469:          * @generated
470:          */
471:         @Override
472:         public EClass getTrue() {
473:                 return trueEClass;
474:         }
475:
476:         /**
477:          * <!-- begin-user-doc -->
478:          * <!-- end-user-doc -->
479:          *
480:          * @generated
481:          */
482:         @Override
483:         public EClass getFalse() {
484:                 return falseEClass;
485:         }
486:
487:         /**
488:          * <!-- begin-user-doc -->
489:          * <!-- end-user-doc -->
490:          *
491:          * @generated
492:          */
493:         @Override
494:         public EClass getNotCondition() {
495:                 return notConditionEClass;
496:         }
497:
498:         /**
499:          * <!-- begin-user-doc -->
500:          * <!-- end-user-doc -->
501:          *
502:          * @generated
503:          */
504:         @Override
505:         public EReference getNotCondition_Condition() {
506:                 return (EReference) notConditionEClass.getEStructuralFeatures().get(0);
507:         }
508:
509:         /**
510:          * <!-- begin-user-doc -->
511:          * <!-- end-user-doc -->
512:          *
513:          * @generated
514:          */
515:         @Override
516:         public EClass getIsProxyCondition() {
517:                 return isProxyConditionEClass;
518:         }
519:
520:         /**
521:          * <!-- begin-user-doc -->
522:          * <!-- end-user-doc -->
523:          *
524:          * @generated
525:          */
526:         @Override
527:         public EReference getIsProxyCondition_DomainModelReference() {
528:                 return (EReference) isProxyConditionEClass.getEStructuralFeatures().get(0);
529:         }
530:
531:         /**
532:          * <!-- begin-user-doc -->
533:          *
534:          * @since 1.11
535:          * <!-- end-user-doc -->
536:          * @generated
537:          */
538:         @Override
539:         public EEnum getCompareType() {
540:                 return compareTypeEEnum;
541:         }
542:
543:         /**
544:          * <!-- begin-user-doc -->
545:          * <!-- end-user-doc -->
546:          *
547:          * @generated
548:          */
549:         @Override
550:         public EEnum getQuantifier() {
551:                 return quantifierEEnum;
552:         }
553:
554:         /**
555:          * <!-- begin-user-doc -->
556:          * <!-- end-user-doc -->
557:          *
558:          * @generated
559:          */
560:         @Override
561:         public RuleFactory getRuleFactory() {
562:                 return (RuleFactory) getEFactoryInstance();
563:         }
564:
565:         /**
566:          * <!-- begin-user-doc -->
567:          * <!-- end-user-doc -->
568:          *
569:          * @generated
570:          */
571:         private boolean isCreated = false;
572:
573:         /**
574:          * Creates the meta-model objects for the package. This method is
575:          * guarded to have no affect on any invocation but its first.
576:          * <!-- begin-user-doc -->
577:          * <!-- end-user-doc -->
578:          *
579:          * @generated
580:          */
581:         public void createPackageContents() {
582:•                if (isCreated) {
583:                         return;
584:                 }
585:                 isCreated = true;
586:
587:                 // Create classes and their features
588:                 conditionEClass = createEClass(CONDITION);
589:
590:                 leafConditionEClass = createEClass(LEAF_CONDITION);
591:                 createEAttribute(leafConditionEClass, LEAF_CONDITION__EXPECTED_VALUE);
592:                 createEReference(leafConditionEClass, LEAF_CONDITION__DOMAIN_MODEL_REFERENCE);
593:                 createEReference(leafConditionEClass, LEAF_CONDITION__VALUE_DOMAIN_MODEL_REFERENCE);
594:                 createEAttribute(leafConditionEClass, LEAF_CONDITION__COMPARE_TYPE);
595:
596:                 orConditionEClass = createEClass(OR_CONDITION);
597:                 createEReference(orConditionEClass, OR_CONDITION__CONDITIONS);
598:
599:                 andConditionEClass = createEClass(AND_CONDITION);
600:                 createEReference(andConditionEClass, AND_CONDITION__CONDITIONS);
601:
602:                 ruleEClass = createEClass(RULE);
603:                 createEReference(ruleEClass, RULE__CONDITION);
604:
605:                 showRuleEClass = createEClass(SHOW_RULE);
606:                 createEAttribute(showRuleEClass, SHOW_RULE__HIDE);
607:
608:                 enableRuleEClass = createEClass(ENABLE_RULE);
609:                 createEAttribute(enableRuleEClass, ENABLE_RULE__DISABLE);
610:
611:                 iterateConditionEClass = createEClass(ITERATE_CONDITION);
612:                 createEAttribute(iterateConditionEClass, ITERATE_CONDITION__QUANTIFIER);
613:                 createEAttribute(iterateConditionEClass, ITERATE_CONDITION__IF_EMPTY);
614:                 createEReference(iterateConditionEClass, ITERATE_CONDITION__ITEM_REFERENCE);
615:                 createEReference(iterateConditionEClass, ITERATE_CONDITION__ITEM_CONDITION);
616:
617:                 trueEClass = createEClass(TRUE);
618:
619:                 falseEClass = createEClass(FALSE);
620:
621:                 notConditionEClass = createEClass(NOT_CONDITION);
622:                 createEReference(notConditionEClass, NOT_CONDITION__CONDITION);
623:
624:                 isProxyConditionEClass = createEClass(IS_PROXY_CONDITION);
625:                 createEReference(isProxyConditionEClass, IS_PROXY_CONDITION__DOMAIN_MODEL_REFERENCE);
626:
627:                 // Create enums
628:                 compareTypeEEnum = createEEnum(COMPARE_TYPE);
629:                 quantifierEEnum = createEEnum(QUANTIFIER);
630:         }
631:
632:         /**
633:          * <!-- begin-user-doc -->
634:          * <!-- end-user-doc -->
635:          *
636:          * @generated
637:          */
638:         private boolean isInitialized = false;
639:
640:         /**
641:          * Complete the initialization of the package and its meta-model. This
642:          * method is guarded to have no affect on any invocation but its first.
643:          * <!-- begin-user-doc -->
644:          * <!-- end-user-doc -->
645:          *
646:          * @generated
647:          */
648:         public void initializePackageContents() {
649:•                if (isInitialized) {
650:                         return;
651:                 }
652:                 isInitialized = true;
653:
654:                 // Initialize package
655:                 setName(eNAME);
656:                 setNsPrefix(eNS_PREFIX);
657:                 setNsURI(eNS_URI);
658:
659:                 // Obtain other dependent packages
660:                 final VViewPackage theViewPackage = (VViewPackage) EPackage.Registry.INSTANCE.getEPackage(VViewPackage.eNS_URI);
661:                 final EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE
662:                         .getEPackage(EcorePackage.eNS_URI);
663:
664:                 // Create type parameters
665:
666:                 // Set bounds for type parameters
667:
668:                 // Add supertypes to classes
669:                 leafConditionEClass.getESuperTypes().add(getCondition());
670:                 orConditionEClass.getESuperTypes().add(getCondition());
671:                 andConditionEClass.getESuperTypes().add(getCondition());
672:                 ruleEClass.getESuperTypes().add(theViewPackage.getAttachment());
673:                 showRuleEClass.getESuperTypes().add(getRule());
674:                 enableRuleEClass.getESuperTypes().add(getRule());
675:                 iterateConditionEClass.getESuperTypes().add(getCondition());
676:                 trueEClass.getESuperTypes().add(getCondition());
677:                 falseEClass.getESuperTypes().add(getCondition());
678:                 notConditionEClass.getESuperTypes().add(getCondition());
679:                 isProxyConditionEClass.getESuperTypes().add(getCondition());
680:
681:                 // Initialize classes and features; add operations and parameters
682:                 initEClass(conditionEClass, Condition.class, "Condition", IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$
683:                         IS_GENERATED_INSTANCE_CLASS);
684:
685:                 initEClass(leafConditionEClass, LeafCondition.class, "LeafCondition", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$
686:                         IS_GENERATED_INSTANCE_CLASS);
687:                 initEAttribute(getLeafCondition_ExpectedValue(), ecorePackage.getEJavaObject(), "expectedValue", null, 0, 1, //$NON-NLS-1$
688:                         LeafCondition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
689:                         !IS_DERIVED, IS_ORDERED);
690:                 initEReference(getLeafCondition_DomainModelReference(), theViewPackage.getDomainModelReference(), null,
691:                         "domainModelReference", null, 1, 1, LeafCondition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, //$NON-NLS-1$
692:                         IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
693:                 initEReference(getLeafCondition_ValueDomainModelReference(), theViewPackage.getDomainModelReference(), null,
694:                         "valueDomainModelReference", null, 0, 1, LeafCondition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, //$NON-NLS-1$
695:                         IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
696:                 initEAttribute(getLeafCondition_CompareType(), getCompareType(), "compareType", "EQUALS", 1, 1, //$NON-NLS-1$ //$NON-NLS-2$
697:                         LeafCondition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
698:                         !IS_DERIVED, IS_ORDERED);
699:
700:                 initEClass(orConditionEClass, OrCondition.class, "OrCondition", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$
701:                         IS_GENERATED_INSTANCE_CLASS);
702:                 initEReference(getOrCondition_Conditions(), getCondition(), null, "conditions", null, 2, -1, //$NON-NLS-1$
703:                         OrCondition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
704:                         !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
705:
706:                 initEClass(andConditionEClass, AndCondition.class, "AndCondition", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$
707:                         IS_GENERATED_INSTANCE_CLASS);
708:                 initEReference(getAndCondition_Conditions(), getCondition(), null, "conditions", null, 2, -1, //$NON-NLS-1$
709:                         AndCondition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
710:                         !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
711:
712:                 initEClass(ruleEClass, Rule.class, "Rule", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
713:                 initEReference(getRule_Condition(), getCondition(), null, "condition", null, 1, 1, Rule.class, //$NON-NLS-1$
714:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
715:                         !IS_DERIVED, IS_ORDERED);
716:
717:                 initEClass(showRuleEClass, ShowRule.class, "ShowRule", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$
718:                         IS_GENERATED_INSTANCE_CLASS);
719:                 initEAttribute(getShowRule_Hide(), ecorePackage.getEBoolean(), "hide", null, 0, 1, ShowRule.class, //$NON-NLS-1$
720:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
721:
722:                 initEClass(enableRuleEClass, EnableRule.class, "EnableRule", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$
723:                         IS_GENERATED_INSTANCE_CLASS);
724:                 initEAttribute(getEnableRule_Disable(), ecorePackage.getEBoolean(), "disable", null, 0, 1, EnableRule.class, //$NON-NLS-1$
725:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
726:
727:                 initEClass(iterateConditionEClass, IterateCondition.class, "IterateCondition", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$
728:                         IS_GENERATED_INSTANCE_CLASS);
729:                 initEAttribute(getIterateCondition_Quantifier(), getQuantifier(), "quantifier", "all", 1, 1, //$NON-NLS-1$ //$NON-NLS-2$
730:                         IterateCondition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
731:                         !IS_DERIVED, IS_ORDERED);
732:                 initEAttribute(getIterateCondition_IfEmpty(), theEcorePackage.getEBoolean(), "ifEmpty", null, 1, 1, //$NON-NLS-1$
733:                         IterateCondition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
734:                         !IS_DERIVED, IS_ORDERED);
735:                 initEReference(getIterateCondition_ItemReference(), theViewPackage.getDomainModelReference(), null,
736:                         "itemReference", null, 1, 1, IterateCondition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, //$NON-NLS-1$
737:                         IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
738:                 initEReference(getIterateCondition_ItemCondition(), getCondition(), null, "itemCondition", null, 1, 1, //$NON-NLS-1$
739:                         IterateCondition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
740:                         !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
741:
742:                 initEClass(trueEClass, True.class, "True", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
743:
744:                 initEClass(falseEClass, False.class, "False", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
745:
746:                 initEClass(notConditionEClass, NotCondition.class, "NotCondition", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$
747:                         IS_GENERATED_INSTANCE_CLASS);
748:                 initEReference(getNotCondition_Condition(), getCondition(), null, "condition", null, 1, 1, //$NON-NLS-1$
749:                         NotCondition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
750:                         !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
751:
752:                 initEClass(isProxyConditionEClass, IsProxyCondition.class, "IsProxyCondition", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$
753:                         IS_GENERATED_INSTANCE_CLASS);
754:                 initEReference(getIsProxyCondition_DomainModelReference(), theViewPackage.getDomainModelReference(), null,
755:                         "domainModelReference", null, 0, 1, IsProxyCondition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, //$NON-NLS-1$
756:                         IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
757:
758:                 // Initialize enums and add enum literals
759:                 initEEnum(compareTypeEEnum, CompareType.class, "CompareType"); //$NON-NLS-1$
760:                 addEEnumLiteral(compareTypeEEnum, CompareType.EQUALS);
761:                 addEEnumLiteral(compareTypeEEnum, CompareType.NOT_EQUALS);
762:
763:                 initEEnum(quantifierEEnum, Quantifier.class, "Quantifier"); //$NON-NLS-1$
764:                 addEEnumLiteral(quantifierEEnum, Quantifier.ALL);
765:                 addEEnumLiteral(quantifierEEnum, Quantifier.ANY);
766:
767:                 // Create resource
768:                 createResource(eNS_URI);
769:         }
770:
771: } // RulePackageImpl