Skip to content

Package: VTTemplatePackageImpl

VTTemplatePackageImpl

nameinstructionbranchcomplexitylinemethod
VTTemplatePackageImpl()
M: 0 C: 32
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 11
100%
M: 0 C: 1
100%
createPackageContents()
M: 1 C: 172
99%
M: 1 C: 1
50%
M: 1 C: 1
50%
M: 1 C: 36
97%
M: 0 C: 1
100%
getControlValidationTemplate()
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%
getControlValidationTemplate_CancelColorHEX()
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%
getControlValidationTemplate_CancelForegroundColorHEX()
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%
getControlValidationTemplate_CancelImageURL()
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%
getControlValidationTemplate_CancelOverlayURL()
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%
getControlValidationTemplate_ErrorColorHEX()
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%
getControlValidationTemplate_ErrorForegroundColorHEX()
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%
getControlValidationTemplate_ErrorImageURL()
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%
getControlValidationTemplate_ErrorOverlayURL()
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%
getControlValidationTemplate_InfoColorHEX()
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%
getControlValidationTemplate_InfoForegroundColorHEX()
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%
getControlValidationTemplate_InfoImageURL()
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%
getControlValidationTemplate_InfoOverlayURL()
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%
getControlValidationTemplate_OkColorHEX()
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%
getControlValidationTemplate_OkForegroundColorHEX()
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%
getControlValidationTemplate_OkImageURL()
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%
getControlValidationTemplate_OkOverlayURL()
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%
getControlValidationTemplate_WarningColorHEX()
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%
getControlValidationTemplate_WarningForegroundColorHEX()
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%
getControlValidationTemplate_WarningImageURL()
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%
getControlValidationTemplate_WarningOverlayURL()
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%
getMultiStyleSelectorContainer()
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%
getMultiStyleSelectorContainer_Selectors()
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%
getStyle()
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%
getStyleProperty()
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%
getStyleSelector()
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%
getStyleSelectorContainer()
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%
getStyleSelectorContainer_Selector()
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%
getStyle_Properties()
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%
getTemplateFactory()
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%
getViewTemplate()
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%
getViewTemplate_ControlValidationConfiguration()
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%
getViewTemplate_ReferencedEcores()
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%
getViewTemplate_Styles()
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%
init()
M: 9 C: 27
75%
M: 2 C: 2
50%
M: 2 C: 1
33%
M: 1 C: 10
91%
M: 0 C: 1
100%
initializePackageContents()
M: 1 C: 648
100%
M: 1 C: 1
50%
M: 1 C: 1
50%
M: 1 C: 99
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-2013 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 - initial API and implementation
13: */
14: package org.eclipse.emf.ecp.view.template.model.impl;
15:
16: import org.eclipse.emf.ecore.EAttribute;
17: import org.eclipse.emf.ecore.EClass;
18: import org.eclipse.emf.ecore.EPackage;
19: import org.eclipse.emf.ecore.EReference;
20: import org.eclipse.emf.ecore.impl.EPackageImpl;
21: import org.eclipse.emf.ecp.view.template.model.VTControlValidationTemplate;
22: import org.eclipse.emf.ecp.view.template.model.VTMultiStyleSelectorContainer;
23: import org.eclipse.emf.ecp.view.template.model.VTStyle;
24: import org.eclipse.emf.ecp.view.template.model.VTStyleProperty;
25: import org.eclipse.emf.ecp.view.template.model.VTStyleSelector;
26: import org.eclipse.emf.ecp.view.template.model.VTStyleSelectorContainer;
27: import org.eclipse.emf.ecp.view.template.model.VTTemplateFactory;
28: import org.eclipse.emf.ecp.view.template.model.VTTemplatePackage;
29: import org.eclipse.emf.ecp.view.template.model.VTViewTemplate;
30:
31: /**
32: * <!-- begin-user-doc -->
33: * An implementation of the model <b>Package</b>.
34: * <!-- end-user-doc -->
35: *
36: * @generated
37: */
38: public class VTTemplatePackageImpl extends EPackageImpl implements VTTemplatePackage {
39:         /**
40:          * <!-- begin-user-doc -->
41:          * <!-- end-user-doc -->
42:          *
43:          * @generated
44:          */
45:         private EClass viewTemplateEClass = null;
46:
47:         /**
48:          * <!-- begin-user-doc -->
49:          * <!-- end-user-doc -->
50:          *
51:          * @generated
52:          */
53:         private EClass controlValidationTemplateEClass = null;
54:
55:         /**
56:          * <!-- begin-user-doc -->
57:          * <!-- end-user-doc -->
58:          *
59:          * @generated
60:          */
61:         private EClass styleEClass = null;
62:
63:         /**
64:          * <!-- begin-user-doc -->
65:          * <!-- end-user-doc -->
66:          *
67:          * @generated
68:          */
69:         private EClass stylePropertyEClass = null;
70:
71:         /**
72:          * <!-- begin-user-doc -->
73:          * <!-- end-user-doc -->
74:          *
75:          * @generated
76:          */
77:         private EClass styleSelectorEClass = null;
78:
79:         /**
80:          * <!-- begin-user-doc -->
81:          * <!-- end-user-doc -->
82:          *
83:          * @generated
84:          */
85:         private EClass styleSelectorContainerEClass = null;
86:
87:         /**
88:          * <!-- begin-user-doc -->
89:          * <!-- end-user-doc -->
90:          *
91:          * @generated
92:          */
93:         private EClass multiStyleSelectorContainerEClass = null;
94:
95:         /**
96:          * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry
97:          * EPackage.Registry} by the package
98:          * package URI value.
99:          * <p>
100:          * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also
101:          * performs initialization of the package, or returns the registered package, if one already exists. <!--
102:          * begin-user-doc --> <!-- end-user-doc -->
103:          *
104:          * @see org.eclipse.emf.ecore.EPackage.Registry
105:          * @see org.eclipse.emf.ecp.view.template.model.VTTemplatePackage#eNS_URI
106:          * @see #init()
107:          * @generated
108:          */
109:         private VTTemplatePackageImpl() {
110:                 super(eNS_URI, VTTemplateFactory.eINSTANCE);
111:         }
112:
113:         /**
114:          * <!-- begin-user-doc -->
115:          * <!-- end-user-doc -->
116:          *
117:          * @generated
118:          */
119:         private static boolean isInited = false;
120:
121:         /**
122:          * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
123:          *
124:          * <p>
125:          * This method is used to initialize {@link VTTemplatePackage#eINSTANCE} when that field is accessed.
126:          * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
127:          * <!-- begin-user-doc
128:          * --> <!-- end-user-doc -->
129:          *
130:          * @see #eNS_URI
131:          * @see #createPackageContents()
132:          * @see #initializePackageContents()
133:          * @generated
134:          */
135:         public static VTTemplatePackage init() {
136:•                if (isInited) {
137:                         return (VTTemplatePackage) EPackage.Registry.INSTANCE.getEPackage(VTTemplatePackage.eNS_URI);
138:                 }
139:
140:                 // Obtain or create and register package
141:                 final VTTemplatePackageImpl theTemplatePackage = (VTTemplatePackageImpl) (EPackage.Registry.INSTANCE
142:•                        .get(eNS_URI) instanceof VTTemplatePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI)
143:                                 : new VTTemplatePackageImpl());
144:
145:                 isInited = true;
146:
147:                 // Create package meta-data objects
148:                 theTemplatePackage.createPackageContents();
149:
150:                 // Initialize created meta-data
151:                 theTemplatePackage.initializePackageContents();
152:
153:                 // Mark meta-data to indicate it can't be changed
154:                 theTemplatePackage.freeze();
155:
156:                 // Update the registry and return the package
157:                 EPackage.Registry.INSTANCE.put(VTTemplatePackage.eNS_URI, theTemplatePackage);
158:                 return theTemplatePackage;
159:         }
160:
161:         /**
162:          * <!-- begin-user-doc -->
163:          * <!-- end-user-doc -->
164:          *
165:          * @generated
166:          */
167:         @Override
168:         public EClass getViewTemplate() {
169:                 return viewTemplateEClass;
170:         }
171:
172:         /**
173:          * <!-- begin-user-doc -->
174:          * <!-- end-user-doc -->
175:          *
176:          * @generated
177:          */
178:         @Override
179:         public EReference getViewTemplate_ControlValidationConfiguration() {
180:                 return (EReference) viewTemplateEClass.getEStructuralFeatures().get(0);
181:         }
182:
183:         /**
184:          * <!-- begin-user-doc -->
185:          * <!-- end-user-doc -->
186:          *
187:          * @generated
188:          */
189:         @Override
190:         public EReference getViewTemplate_Styles() {
191:                 return (EReference) viewTemplateEClass.getEStructuralFeatures().get(1);
192:         }
193:
194:         /**
195:          * <!-- begin-user-doc -->
196:          * <!-- end-user-doc -->
197:          *
198:          * @generated
199:          */
200:         @Override
201:         public EAttribute getViewTemplate_ReferencedEcores() {
202:                 return (EAttribute) viewTemplateEClass.getEStructuralFeatures().get(2);
203:         }
204:
205:         /**
206:          * <!-- begin-user-doc -->
207:          * <!-- end-user-doc -->
208:          *
209:          * @generated
210:          */
211:         @Override
212:         public EClass getControlValidationTemplate() {
213:                 return controlValidationTemplateEClass;
214:         }
215:
216:         /**
217:          * <!-- begin-user-doc -->
218:          * <!-- end-user-doc -->
219:          *
220:          * @generated
221:          */
222:         @Override
223:         public EAttribute getControlValidationTemplate_OkColorHEX() {
224:                 return (EAttribute) controlValidationTemplateEClass.getEStructuralFeatures().get(0);
225:         }
226:
227:         /**
228:          * <!-- begin-user-doc -->
229:          * <!-- end-user-doc -->
230:          *
231:          * @generated
232:          */
233:         @Override
234:         public EAttribute getControlValidationTemplate_OkForegroundColorHEX() {
235:                 return (EAttribute) controlValidationTemplateEClass.getEStructuralFeatures().get(1);
236:         }
237:
238:         /**
239:          * <!-- begin-user-doc -->
240:          * <!-- end-user-doc -->
241:          *
242:          * @generated
243:          */
244:         @Override
245:         public EAttribute getControlValidationTemplate_OkImageURL() {
246:                 return (EAttribute) controlValidationTemplateEClass.getEStructuralFeatures().get(2);
247:         }
248:
249:         /**
250:          * <!-- begin-user-doc -->
251:          * <!-- end-user-doc -->
252:          *
253:          * @generated
254:          */
255:         @Override
256:         public EAttribute getControlValidationTemplate_OkOverlayURL() {
257:                 return (EAttribute) controlValidationTemplateEClass.getEStructuralFeatures().get(3);
258:         }
259:
260:         /**
261:          * <!-- begin-user-doc -->
262:          * <!-- end-user-doc -->
263:          *
264:          * @generated
265:          */
266:         @Override
267:         public EAttribute getControlValidationTemplate_InfoColorHEX() {
268:                 return (EAttribute) controlValidationTemplateEClass.getEStructuralFeatures().get(4);
269:         }
270:
271:         /**
272:          * <!-- begin-user-doc -->
273:          * <!-- end-user-doc -->
274:          *
275:          * @generated
276:          */
277:         @Override
278:         public EAttribute getControlValidationTemplate_InfoForegroundColorHEX() {
279:                 return (EAttribute) controlValidationTemplateEClass.getEStructuralFeatures().get(5);
280:         }
281:
282:         /**
283:          * <!-- begin-user-doc -->
284:          * <!-- end-user-doc -->
285:          *
286:          * @generated
287:          */
288:         @Override
289:         public EAttribute getControlValidationTemplate_InfoImageURL() {
290:                 return (EAttribute) controlValidationTemplateEClass.getEStructuralFeatures().get(6);
291:         }
292:
293:         /**
294:          * <!-- begin-user-doc -->
295:          * <!-- end-user-doc -->
296:          *
297:          * @generated
298:          */
299:         @Override
300:         public EAttribute getControlValidationTemplate_InfoOverlayURL() {
301:                 return (EAttribute) controlValidationTemplateEClass.getEStructuralFeatures().get(7);
302:         }
303:
304:         /**
305:          * <!-- begin-user-doc -->
306:          * <!-- end-user-doc -->
307:          *
308:          * @generated
309:          */
310:         @Override
311:         public EAttribute getControlValidationTemplate_WarningColorHEX() {
312:                 return (EAttribute) controlValidationTemplateEClass.getEStructuralFeatures().get(8);
313:         }
314:
315:         /**
316:          * <!-- begin-user-doc -->
317:          * <!-- end-user-doc -->
318:          *
319:          * @generated
320:          */
321:         @Override
322:         public EAttribute getControlValidationTemplate_WarningForegroundColorHEX() {
323:                 return (EAttribute) controlValidationTemplateEClass.getEStructuralFeatures().get(9);
324:         }
325:
326:         /**
327:          * <!-- begin-user-doc -->
328:          * <!-- end-user-doc -->
329:          *
330:          * @generated
331:          */
332:         @Override
333:         public EAttribute getControlValidationTemplate_WarningImageURL() {
334:                 return (EAttribute) controlValidationTemplateEClass.getEStructuralFeatures().get(10);
335:         }
336:
337:         /**
338:          * <!-- begin-user-doc -->
339:          * <!-- end-user-doc -->
340:          *
341:          * @generated
342:          */
343:         @Override
344:         public EAttribute getControlValidationTemplate_WarningOverlayURL() {
345:                 return (EAttribute) controlValidationTemplateEClass.getEStructuralFeatures().get(11);
346:         }
347:
348:         /**
349:          * <!-- begin-user-doc -->
350:          * <!-- end-user-doc -->
351:          *
352:          * @generated
353:          */
354:         @Override
355:         public EAttribute getControlValidationTemplate_ErrorColorHEX() {
356:                 return (EAttribute) controlValidationTemplateEClass.getEStructuralFeatures().get(12);
357:         }
358:
359:         /**
360:          * <!-- begin-user-doc -->
361:          * <!-- end-user-doc -->
362:          *
363:          * @generated
364:          */
365:         @Override
366:         public EAttribute getControlValidationTemplate_ErrorForegroundColorHEX() {
367:                 return (EAttribute) controlValidationTemplateEClass.getEStructuralFeatures().get(13);
368:         }
369:
370:         /**
371:          * <!-- begin-user-doc -->
372:          * <!-- end-user-doc -->
373:          *
374:          * @generated
375:          */
376:         @Override
377:         public EAttribute getControlValidationTemplate_ErrorImageURL() {
378:                 return (EAttribute) controlValidationTemplateEClass.getEStructuralFeatures().get(14);
379:         }
380:
381:         /**
382:          * <!-- begin-user-doc -->
383:          * <!-- end-user-doc -->
384:          *
385:          * @generated
386:          */
387:         @Override
388:         public EAttribute getControlValidationTemplate_ErrorOverlayURL() {
389:                 return (EAttribute) controlValidationTemplateEClass.getEStructuralFeatures().get(15);
390:         }
391:
392:         /**
393:          * <!-- begin-user-doc -->
394:          * <!-- end-user-doc -->
395:          *
396:          * @generated
397:          */
398:         @Override
399:         public EAttribute getControlValidationTemplate_CancelColorHEX() {
400:                 return (EAttribute) controlValidationTemplateEClass.getEStructuralFeatures().get(16);
401:         }
402:
403:         /**
404:          * <!-- begin-user-doc -->
405:          * <!-- end-user-doc -->
406:          *
407:          * @generated
408:          */
409:         @Override
410:         public EAttribute getControlValidationTemplate_CancelForegroundColorHEX() {
411:                 return (EAttribute) controlValidationTemplateEClass.getEStructuralFeatures().get(17);
412:         }
413:
414:         /**
415:          * <!-- begin-user-doc -->
416:          * <!-- end-user-doc -->
417:          *
418:          * @generated
419:          */
420:         @Override
421:         public EAttribute getControlValidationTemplate_CancelImageURL() {
422:                 return (EAttribute) controlValidationTemplateEClass.getEStructuralFeatures().get(18);
423:         }
424:
425:         /**
426:          * <!-- begin-user-doc -->
427:          * <!-- end-user-doc -->
428:          *
429:          * @generated
430:          */
431:         @Override
432:         public EAttribute getControlValidationTemplate_CancelOverlayURL() {
433:                 return (EAttribute) controlValidationTemplateEClass.getEStructuralFeatures().get(19);
434:         }
435:
436:         /**
437:          * <!-- begin-user-doc -->
438:          * <!-- end-user-doc -->
439:          *
440:          * @generated
441:          */
442:         @Override
443:         public EClass getStyle() {
444:                 return styleEClass;
445:         }
446:
447:         /**
448:          * <!-- begin-user-doc -->
449:          * <!-- end-user-doc -->
450:          *
451:          * @generated
452:          */
453:         @Override
454:         public EReference getStyle_Properties() {
455:                 return (EReference) styleEClass.getEStructuralFeatures().get(0);
456:         }
457:
458:         /**
459:          * <!-- begin-user-doc -->
460:          * <!-- end-user-doc -->
461:          *
462:          * @generated
463:          */
464:         @Override
465:         public EClass getStyleProperty() {
466:                 return stylePropertyEClass;
467:         }
468:
469:         /**
470:          * <!-- begin-user-doc -->
471:          * <!-- end-user-doc -->
472:          *
473:          * @generated
474:          */
475:         @Override
476:         public EClass getStyleSelector() {
477:                 return styleSelectorEClass;
478:         }
479:
480:         /**
481:          * <!-- begin-user-doc -->
482:          * <!-- end-user-doc -->
483:          *
484:          * @generated
485:          */
486:         @Override
487:         public EClass getStyleSelectorContainer() {
488:                 return styleSelectorContainerEClass;
489:         }
490:
491:         /**
492:          * <!-- begin-user-doc -->
493:          * <!-- end-user-doc -->
494:          *
495:          * @generated
496:          */
497:         @Override
498:         public EReference getStyleSelectorContainer_Selector() {
499:                 return (EReference) styleSelectorContainerEClass.getEStructuralFeatures().get(0);
500:         }
501:
502:         /**
503:          * <!-- begin-user-doc -->
504:          * <!-- end-user-doc -->
505:          *
506:          * @generated
507:          */
508:         @Override
509:         public EClass getMultiStyleSelectorContainer() {
510:                 return multiStyleSelectorContainerEClass;
511:         }
512:
513:         /**
514:          * <!-- begin-user-doc -->
515:          * <!-- end-user-doc -->
516:          *
517:          * @generated
518:          */
519:         @Override
520:         public EReference getMultiStyleSelectorContainer_Selectors() {
521:                 return (EReference) multiStyleSelectorContainerEClass.getEStructuralFeatures().get(0);
522:         }
523:
524:         /**
525:          * <!-- begin-user-doc -->
526:          * <!-- end-user-doc -->
527:          *
528:          * @generated
529:          */
530:         @Override
531:         public VTTemplateFactory getTemplateFactory() {
532:                 return (VTTemplateFactory) getEFactoryInstance();
533:         }
534:
535:         /**
536:          * <!-- begin-user-doc -->
537:          * <!-- end-user-doc -->
538:          *
539:          * @generated
540:          */
541:         private boolean isCreated = false;
542:
543:         /**
544:          * Creates the meta-model objects for the package. This method is
545:          * guarded to have no affect on any invocation but its first.
546:          * <!-- begin-user-doc -->
547:          * <!-- end-user-doc -->
548:          *
549:          * @generated
550:          */
551:         public void createPackageContents() {
552:•                if (isCreated) {
553:                         return;
554:                 }
555:                 isCreated = true;
556:
557:                 // Create classes and their features
558:                 viewTemplateEClass = createEClass(VIEW_TEMPLATE);
559:                 createEReference(viewTemplateEClass, VIEW_TEMPLATE__CONTROL_VALIDATION_CONFIGURATION);
560:                 createEReference(viewTemplateEClass, VIEW_TEMPLATE__STYLES);
561:                 createEAttribute(viewTemplateEClass, VIEW_TEMPLATE__REFERENCED_ECORES);
562:
563:                 controlValidationTemplateEClass = createEClass(CONTROL_VALIDATION_TEMPLATE);
564:                 createEAttribute(controlValidationTemplateEClass, CONTROL_VALIDATION_TEMPLATE__OK_COLOR_HEX);
565:                 createEAttribute(controlValidationTemplateEClass, CONTROL_VALIDATION_TEMPLATE__OK_FOREGROUND_COLOR_HEX);
566:                 createEAttribute(controlValidationTemplateEClass, CONTROL_VALIDATION_TEMPLATE__OK_IMAGE_URL);
567:                 createEAttribute(controlValidationTemplateEClass, CONTROL_VALIDATION_TEMPLATE__OK_OVERLAY_URL);
568:                 createEAttribute(controlValidationTemplateEClass, CONTROL_VALIDATION_TEMPLATE__INFO_COLOR_HEX);
569:                 createEAttribute(controlValidationTemplateEClass, CONTROL_VALIDATION_TEMPLATE__INFO_FOREGROUND_COLOR_HEX);
570:                 createEAttribute(controlValidationTemplateEClass, CONTROL_VALIDATION_TEMPLATE__INFO_IMAGE_URL);
571:                 createEAttribute(controlValidationTemplateEClass, CONTROL_VALIDATION_TEMPLATE__INFO_OVERLAY_URL);
572:                 createEAttribute(controlValidationTemplateEClass, CONTROL_VALIDATION_TEMPLATE__WARNING_COLOR_HEX);
573:                 createEAttribute(controlValidationTemplateEClass, CONTROL_VALIDATION_TEMPLATE__WARNING_FOREGROUND_COLOR_HEX);
574:                 createEAttribute(controlValidationTemplateEClass, CONTROL_VALIDATION_TEMPLATE__WARNING_IMAGE_URL);
575:                 createEAttribute(controlValidationTemplateEClass, CONTROL_VALIDATION_TEMPLATE__WARNING_OVERLAY_URL);
576:                 createEAttribute(controlValidationTemplateEClass, CONTROL_VALIDATION_TEMPLATE__ERROR_COLOR_HEX);
577:                 createEAttribute(controlValidationTemplateEClass, CONTROL_VALIDATION_TEMPLATE__ERROR_FOREGROUND_COLOR_HEX);
578:                 createEAttribute(controlValidationTemplateEClass, CONTROL_VALIDATION_TEMPLATE__ERROR_IMAGE_URL);
579:                 createEAttribute(controlValidationTemplateEClass, CONTROL_VALIDATION_TEMPLATE__ERROR_OVERLAY_URL);
580:                 createEAttribute(controlValidationTemplateEClass, CONTROL_VALIDATION_TEMPLATE__CANCEL_COLOR_HEX);
581:                 createEAttribute(controlValidationTemplateEClass, CONTROL_VALIDATION_TEMPLATE__CANCEL_FOREGROUND_COLOR_HEX);
582:                 createEAttribute(controlValidationTemplateEClass, CONTROL_VALIDATION_TEMPLATE__CANCEL_IMAGE_URL);
583:                 createEAttribute(controlValidationTemplateEClass, CONTROL_VALIDATION_TEMPLATE__CANCEL_OVERLAY_URL);
584:
585:                 styleEClass = createEClass(STYLE);
586:                 createEReference(styleEClass, STYLE__PROPERTIES);
587:
588:                 stylePropertyEClass = createEClass(STYLE_PROPERTY);
589:
590:                 styleSelectorEClass = createEClass(STYLE_SELECTOR);
591:
592:                 styleSelectorContainerEClass = createEClass(STYLE_SELECTOR_CONTAINER);
593:                 createEReference(styleSelectorContainerEClass, STYLE_SELECTOR_CONTAINER__SELECTOR);
594:
595:                 multiStyleSelectorContainerEClass = createEClass(MULTI_STYLE_SELECTOR_CONTAINER);
596:                 createEReference(multiStyleSelectorContainerEClass, MULTI_STYLE_SELECTOR_CONTAINER__SELECTORS);
597:         }
598:
599:         /**
600:          * <!-- begin-user-doc -->
601:          * <!-- end-user-doc -->
602:          *
603:          * @generated
604:          */
605:         private boolean isInitialized = false;
606:
607:         /**
608:          * Complete the initialization of the package and its meta-model. This
609:          * method is guarded to have no affect on any invocation but its first.
610:          * <!-- begin-user-doc -->
611:          * <!-- end-user-doc -->
612:          *
613:          * @generated
614:          */
615:         public void initializePackageContents() {
616:•                if (isInitialized) {
617:                         return;
618:                 }
619:                 isInitialized = true;
620:
621:                 // Initialize package
622:                 setName(eNAME);
623:                 setNsPrefix(eNS_PREFIX);
624:                 setNsURI(eNS_URI);
625:
626:                 // Create type parameters
627:
628:                 // Set bounds for type parameters
629:
630:                 // Add supertypes to classes
631:                 styleEClass.getESuperTypes().add(getStyleSelectorContainer());
632:
633:                 // Initialize classes, features, and operations; add parameters
634:                 initEClass(viewTemplateEClass, VTViewTemplate.class, "ViewTemplate", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$
635:                         IS_GENERATED_INSTANCE_CLASS);
636:                 initEReference(getViewTemplate_ControlValidationConfiguration(), getControlValidationTemplate(), null,
637:                         "controlValidationConfiguration", null, 0, 1, VTViewTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, //$NON-NLS-1$
638:                         IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
639:                 initEReference(getViewTemplate_Styles(), getStyle(), null, "styles", null, 0, -1, VTViewTemplate.class, //$NON-NLS-1$
640:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
641:                         !IS_DERIVED, IS_ORDERED);
642:                 initEAttribute(getViewTemplate_ReferencedEcores(), ecorePackage.getEString(), "referencedEcores", null, 0, -1, //$NON-NLS-1$
643:                         VTViewTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
644:                         !IS_DERIVED, IS_ORDERED);
645:
646:                 initEClass(controlValidationTemplateEClass, VTControlValidationTemplate.class, "ControlValidationTemplate", //$NON-NLS-1$
647:                         !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
648:                 initEAttribute(getControlValidationTemplate_OkColorHEX(), ecorePackage.getEString(), "okColorHEX", null, 0, 1, //$NON-NLS-1$
649:                         VTControlValidationTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
650:                         IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
651:                 initEAttribute(getControlValidationTemplate_OkForegroundColorHEX(), ecorePackage.getEString(),
652:                         "okForegroundColorHEX", null, 0, 1, VTControlValidationTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, //$NON-NLS-1$
653:                         IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
654:                 initEAttribute(getControlValidationTemplate_OkImageURL(), ecorePackage.getEString(), "okImageURL", null, 0, 1, //$NON-NLS-1$
655:                         VTControlValidationTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
656:                         IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
657:                 initEAttribute(getControlValidationTemplate_OkOverlayURL(), ecorePackage.getEString(), "okOverlayURL", null, 0, //$NON-NLS-1$
658:                         1, VTControlValidationTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
659:                         IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
660:                 initEAttribute(getControlValidationTemplate_InfoColorHEX(), ecorePackage.getEString(), "infoColorHEX", null, 0, //$NON-NLS-1$
661:                         1, VTControlValidationTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
662:                         IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
663:                 initEAttribute(getControlValidationTemplate_InfoForegroundColorHEX(), ecorePackage.getEString(),
664:                         "infoForegroundColorHEX", null, 0, 1, VTControlValidationTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, //$NON-NLS-1$
665:                         IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
666:                 initEAttribute(getControlValidationTemplate_InfoImageURL(), ecorePackage.getEString(), "infoImageURL", null, 0, //$NON-NLS-1$
667:                         1, VTControlValidationTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
668:                         IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
669:                 initEAttribute(getControlValidationTemplate_InfoOverlayURL(), ecorePackage.getEString(), "infoOverlayURL", null, //$NON-NLS-1$
670:                         0, 1, VTControlValidationTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
671:                         IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
672:                 initEAttribute(getControlValidationTemplate_WarningColorHEX(), ecorePackage.getEString(), "warningColorHEX", //$NON-NLS-1$
673:                         null, 0, 1, VTControlValidationTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,
674:                         !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
675:                 initEAttribute(getControlValidationTemplate_WarningForegroundColorHEX(), ecorePackage.getEString(),
676:                         "warningForegroundColorHEX", null, 0, 1, VTControlValidationTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, //$NON-NLS-1$
677:                         IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
678:                 initEAttribute(getControlValidationTemplate_WarningImageURL(), ecorePackage.getEString(), "warningImageURL", //$NON-NLS-1$
679:                         null, 0, 1, VTControlValidationTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,
680:                         !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
681:                 initEAttribute(getControlValidationTemplate_WarningOverlayURL(), ecorePackage.getEString(), "warningOverlayURL", //$NON-NLS-1$
682:                         null, 0, 1, VTControlValidationTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,
683:                         !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
684:                 initEAttribute(getControlValidationTemplate_ErrorColorHEX(), ecorePackage.getEString(), "errorColorHEX", null, //$NON-NLS-1$
685:                         0, 1, VTControlValidationTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
686:                         IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
687:                 initEAttribute(getControlValidationTemplate_ErrorForegroundColorHEX(), ecorePackage.getEString(),
688:                         "errorForegroundColorHEX", null, 0, 1, VTControlValidationTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, //$NON-NLS-1$
689:                         IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
690:                 initEAttribute(getControlValidationTemplate_ErrorImageURL(), ecorePackage.getEString(), "errorImageURL", null, //$NON-NLS-1$
691:                         0, 1, VTControlValidationTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
692:                         IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
693:                 initEAttribute(getControlValidationTemplate_ErrorOverlayURL(), ecorePackage.getEString(), "errorOverlayURL", //$NON-NLS-1$
694:                         null, 0, 1, VTControlValidationTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,
695:                         !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
696:                 initEAttribute(getControlValidationTemplate_CancelColorHEX(), ecorePackage.getEString(), "cancelColorHEX", null, //$NON-NLS-1$
697:                         0, 1, VTControlValidationTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
698:                         IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
699:                 initEAttribute(getControlValidationTemplate_CancelForegroundColorHEX(), ecorePackage.getEString(),
700:                         "cancelForegroundColorHEX", null, 0, 1, VTControlValidationTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, //$NON-NLS-1$
701:                         IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
702:                 initEAttribute(getControlValidationTemplate_CancelImageURL(), ecorePackage.getEString(), "cancelImageURL", null, //$NON-NLS-1$
703:                         0, 1, VTControlValidationTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
704:                         IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
705:                 initEAttribute(getControlValidationTemplate_CancelOverlayURL(), ecorePackage.getEString(), "cancelOverlayURL", //$NON-NLS-1$
706:                         null, 0, 1, VTControlValidationTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,
707:                         !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
708:
709:                 initEClass(styleEClass, VTStyle.class, "Style", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
710:                 initEReference(getStyle_Properties(), getStyleProperty(), null, "properties", null, 0, -1, VTStyle.class, //$NON-NLS-1$
711:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
712:                         !IS_DERIVED, IS_ORDERED);
713:
714:                 initEClass(stylePropertyEClass, VTStyleProperty.class, "StyleProperty", IS_ABSTRACT, IS_INTERFACE, //$NON-NLS-1$
715:                         IS_GENERATED_INSTANCE_CLASS);
716:
717:                 initEClass(styleSelectorEClass, VTStyleSelector.class, "StyleSelector", IS_ABSTRACT, IS_INTERFACE, //$NON-NLS-1$
718:                         IS_GENERATED_INSTANCE_CLASS);
719:
720:                 initEClass(styleSelectorContainerEClass, VTStyleSelectorContainer.class, "StyleSelectorContainer", IS_ABSTRACT, //$NON-NLS-1$
721:                         !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
722:                 initEReference(getStyleSelectorContainer_Selector(), getStyleSelector(), null, "selector", null, 1, 1, //$NON-NLS-1$
723:                         VTStyleSelectorContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
724:                         !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
725:
726:                 initEClass(multiStyleSelectorContainerEClass, VTMultiStyleSelectorContainer.class,
727:                         "MultiStyleSelectorContainer", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
728:                 initEReference(getMultiStyleSelectorContainer_Selectors(), getStyleSelector(), null, "selectors", null, 2, //$NON-NLS-1$
729:                         -1, VTMultiStyleSelectorContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
730:                         !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
731:
732:                 // Create resource
733:                 createResource(eNS_URI);
734:         }
735:
736: } // VTTemplatePackageImpl