EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.featureconfig.impl]

COVERAGE SUMMARY FOR SOURCE FILE [featureconfigPackageImpl.java]

nameclass, %method, %block, %line, %
featureconfigPackageImpl.java0%   (0/2)0%   (0/32)0%   (0/1236)0%   (0/175)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class featureconfigPackageImpl0%   (0/1)0%   (0/30)0%   (0/1231)0%   (0/173)
<static initializer> 0%   (0/1)0%   (0/3)0%   (0/2)
createPackageContents (): void 0%   (0/1)0%   (0/128)0%   (0/27)
featureconfigPackageImpl (): void 0%   (0/1)0%   (0/41)0%   (0/14)
getAttributeValue (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getAttributeValue_Confignode (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getAttributeValue_Value (): EAttribute 0%   (0/1)0%   (0/7)0%   (0/1)
getConfigNode (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getConfigNode_Attributevalue (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getConfigNode_ConfigState (): EAttribute 0%   (0/1)0%   (0/7)0%   (0/1)
getConfigNode_Origin (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getConfigState (): EEnum 0%   (0/1)0%   (0/3)0%   (0/1)
getConfiguration (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getConfiguration_ConfigOverrides (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getConfiguration_DefaultConfig (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getConfiguration_Name (): EAttribute 0%   (0/1)0%   (0/7)0%   (0/1)
getDoubleAttributeValue (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getExternalObjectAttributeValue (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getExternalObjectAttributeValue_ReferencedObject (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getFeatureConfig (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getFeatureConfigState (): EEnum 0%   (0/1)0%   (0/3)0%   (0/1)
getFeatureConfig_AnnotatedElement (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getFeatureConfig_Confignode (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getFeatureConfig_ConfigurationDefault (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getFeatureConfig_ConfigurationOverrides (): EReference 0%   (0/1)0%   (0/7)0%   (0/1)
getFeatureConfig_FeatureConfigState (): EAttribute 0%   (0/1)0%   (0/7)0%   (0/1)
getIntegerAttributeValue (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getStringAttributeValue (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getfeatureconfigFactory (): featureconfigFactory 0%   (0/1)0%   (0/4)0%   (0/1)
init (): featureconfigPackage 0%   (0/1)0%   (0/46)0%   (0/12)
initializePackageContents (): void 0%   (0/1)0%   (0/881)0%   (0/93)
     
class featureconfigPackageImpl$10%   (0/1)0%   (0/2)0%   (0/5)0%   (0/3)
featureconfigPackageImpl$1 (): void 0%   (0/1)0%   (0/3)0%   (0/2)
getEValidator (): EValidator 0%   (0/1)0%   (0/2)0%   (0/1)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.featureconfig.impl;
8 
9import org.eclipse.emf.ecore.EAttribute;
10import org.eclipse.emf.ecore.EClass;
11import org.eclipse.emf.ecore.EEnum;
12import org.eclipse.emf.ecore.EGenericType;
13import org.eclipse.emf.ecore.EOperation;
14import org.eclipse.emf.ecore.EPackage;
15import org.eclipse.emf.ecore.EReference;
16import org.eclipse.emf.ecore.EValidator;
17import org.eclipse.emf.ecore.EcorePackage;
18import org.eclipse.emf.ecore.impl.EPackageImpl;
19 
20import de.uka.ipd.sdq.featureconfig.AttributeValue;
21import de.uka.ipd.sdq.featureconfig.ConfigNode;
22import de.uka.ipd.sdq.featureconfig.ConfigState;
23import de.uka.ipd.sdq.featureconfig.Configuration;
24import de.uka.ipd.sdq.featureconfig.DoubleAttributeValue;
25import de.uka.ipd.sdq.featureconfig.ExternalObjectAttributeValue;
26import de.uka.ipd.sdq.featureconfig.FeatureConfig;
27import de.uka.ipd.sdq.featureconfig.FeatureConfigState;
28import de.uka.ipd.sdq.featureconfig.IntegerAttributeValue;
29import de.uka.ipd.sdq.featureconfig.StringAttributeValue;
30import de.uka.ipd.sdq.featureconfig.featureconfigFactory;
31import de.uka.ipd.sdq.featureconfig.featureconfigPackage;
32import de.uka.ipd.sdq.featureconfig.util.featureconfigValidator;
33import de.uka.ipd.sdq.featuremodel.featuremodelPackage;
34 
35/**
36 * <!-- begin-user-doc -->
37 * An implementation of the model <b>Package</b>.
38 * <!-- end-user-doc -->
39 * @generated
40 */
41public class featureconfigPackageImpl extends EPackageImpl implements featureconfigPackage {
42        /**
43         * <!-- begin-user-doc -->
44         * <!-- end-user-doc -->
45         * @generated
46         */
47        private EClass configNodeEClass = null;
48 
49        /**
50         * <!-- begin-user-doc -->
51         * <!-- end-user-doc -->
52         * @generated
53         */
54        private EClass attributeValueEClass = null;
55 
56        /**
57         * <!-- begin-user-doc -->
58         * <!-- end-user-doc -->
59         * @generated
60         */
61        private EClass featureConfigEClass = null;
62 
63        /**
64         * <!-- begin-user-doc -->
65         * <!-- end-user-doc -->
66         * @generated
67         */
68        private EClass configurationEClass = null;
69 
70        /**
71         * <!-- begin-user-doc -->
72         * <!-- end-user-doc -->
73         * @generated
74         */
75        private EClass integerAttributeValueEClass = null;
76 
77        /**
78         * <!-- begin-user-doc -->
79         * <!-- end-user-doc -->
80         * @generated
81         */
82        private EClass doubleAttributeValueEClass = null;
83 
84        /**
85         * <!-- begin-user-doc -->
86         * <!-- end-user-doc -->
87         * @generated
88         */
89        private EClass stringAttributeValueEClass = null;
90 
91        /**
92         * <!-- begin-user-doc -->
93         * <!-- end-user-doc -->
94         * @generated
95         */
96        private EClass externalObjectAttributeValueEClass = null;
97 
98        /**
99         * <!-- begin-user-doc -->
100         * <!-- end-user-doc -->
101         * @generated
102         */
103        private EEnum configStateEEnum = null;
104 
105        /**
106         * <!-- begin-user-doc -->
107         * <!-- end-user-doc -->
108         * @generated
109         */
110        private EEnum featureConfigStateEEnum = null;
111 
112        /**
113         * Creates an instance of the model <b>Package</b>, registered with
114         * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
115         * package URI value.
116         * <p>Note: the correct way to create the package is via the static
117         * factory method {@link #init init()}, which also performs
118         * initialization of the package, or returns the registered package,
119         * if one already exists.
120         * <!-- begin-user-doc -->
121         * <!-- end-user-doc -->
122         * @see org.eclipse.emf.ecore.EPackage.Registry
123         * @see de.uka.ipd.sdq.featureconfig.featureconfigPackage#eNS_URI
124         * @see #init()
125         * @generated
126         */
127        private featureconfigPackageImpl() {
128                super(eNS_URI, featureconfigFactory.eINSTANCE);
129        }
130 
131        /**
132         * <!-- begin-user-doc -->
133         * <!-- end-user-doc -->
134         * @generated
135         */
136        private static boolean isInited = false;
137 
138        /**
139         * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
140         * 
141         * <p>This method is used to initialize {@link featureconfigPackage#eINSTANCE} when that field is accessed.
142         * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
143         * <!-- begin-user-doc -->
144         * <!-- end-user-doc -->
145         * @see #eNS_URI
146         * @see #createPackageContents()
147         * @see #initializePackageContents()
148         * @generated
149         */
150        public static featureconfigPackage init() {
151                if (isInited) return (featureconfigPackage)EPackage.Registry.INSTANCE.getEPackage(featureconfigPackage.eNS_URI);
152 
153                // Obtain or create and register package
154                featureconfigPackageImpl thefeatureconfigPackage = (featureconfigPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof featureconfigPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new featureconfigPackageImpl());
155 
156                isInited = true;
157 
158                // Initialize simple dependencies
159                featuremodelPackage.eINSTANCE.eClass();
160 
161                // Create package meta-data objects
162                thefeatureconfigPackage.createPackageContents();
163 
164                // Initialize created meta-data
165                thefeatureconfigPackage.initializePackageContents();
166 
167                // Register package validator
168                EValidator.Registry.INSTANCE.put
169                        (thefeatureconfigPackage, 
170                         new EValidator.Descriptor() {
171                                 public EValidator getEValidator() {
172                                         return featureconfigValidator.INSTANCE;
173                                 }
174                         });
175 
176                // Mark meta-data to indicate it can't be changed
177                thefeatureconfigPackage.freeze();
178 
179  
180                // Update the registry and return the package
181                EPackage.Registry.INSTANCE.put(featureconfigPackage.eNS_URI, thefeatureconfigPackage);
182                return thefeatureconfigPackage;
183        }
184 
185        /**
186         * <!-- begin-user-doc -->
187         * <!-- end-user-doc -->
188         * @generated
189         */
190        public EClass getConfigNode() {
191                return configNodeEClass;
192        }
193 
194        /**
195         * <!-- begin-user-doc -->
196         * <!-- end-user-doc -->
197         * @generated
198         */
199        public EReference getConfigNode_Origin() {
200                return (EReference)configNodeEClass.getEStructuralFeatures().get(0);
201        }
202 
203        /**
204         * <!-- begin-user-doc -->
205         * <!-- end-user-doc -->
206         * @generated
207         */
208        public EAttribute getConfigNode_ConfigState() {
209                return (EAttribute)configNodeEClass.getEStructuralFeatures().get(1);
210        }
211 
212        /**
213         * <!-- begin-user-doc -->
214         * <!-- end-user-doc -->
215         * @generated
216         */
217        public EReference getConfigNode_Attributevalue() {
218                return (EReference)configNodeEClass.getEStructuralFeatures().get(2);
219        }
220 
221        /**
222         * <!-- begin-user-doc -->
223         * <!-- end-user-doc -->
224         * @generated
225         */
226        public EClass getAttributeValue() {
227                return attributeValueEClass;
228        }
229 
230        /**
231         * <!-- begin-user-doc -->
232         * <!-- end-user-doc -->
233         * @generated
234         */
235        public EAttribute getAttributeValue_Value() {
236                return (EAttribute)attributeValueEClass.getEStructuralFeatures().get(0);
237        }
238 
239        /**
240         * <!-- begin-user-doc -->
241         * <!-- end-user-doc -->
242         * @generated
243         */
244        public EReference getAttributeValue_Confignode() {
245                return (EReference)attributeValueEClass.getEStructuralFeatures().get(1);
246        }
247 
248        /**
249         * <!-- begin-user-doc -->
250         * <!-- end-user-doc -->
251         * @generated
252         */
253        public EClass getFeatureConfig() {
254                return featureConfigEClass;
255        }
256 
257        /**
258         * <!-- begin-user-doc -->
259         * <!-- end-user-doc -->
260         * @generated
261         */
262        public EAttribute getFeatureConfig_FeatureConfigState() {
263                return (EAttribute)featureConfigEClass.getEStructuralFeatures().get(0);
264        }
265 
266        /**
267         * <!-- begin-user-doc -->
268         * <!-- end-user-doc -->
269         * @generated
270         */
271        public EReference getFeatureConfig_Confignode() {
272                return (EReference)featureConfigEClass.getEStructuralFeatures().get(1);
273        }
274 
275        /**
276         * <!-- begin-user-doc -->
277         * <!-- end-user-doc -->
278         * @generated
279         */
280        public EReference getFeatureConfig_AnnotatedElement() {
281                return (EReference)featureConfigEClass.getEStructuralFeatures().get(2);
282        }
283 
284        /**
285         * <!-- begin-user-doc -->
286         * <!-- end-user-doc -->
287         * @generated
288         */
289        public EReference getFeatureConfig_ConfigurationOverrides() {
290                return (EReference)featureConfigEClass.getEStructuralFeatures().get(3);
291        }
292 
293        /**
294         * <!-- begin-user-doc -->
295         * <!-- end-user-doc -->
296         * @generated
297         */
298        public EReference getFeatureConfig_ConfigurationDefault() {
299                return (EReference)featureConfigEClass.getEStructuralFeatures().get(4);
300        }
301 
302        /**
303         * <!-- begin-user-doc -->
304         * <!-- end-user-doc -->
305         * @generated
306         */
307        public EClass getConfiguration() {
308                return configurationEClass;
309        }
310 
311        /**
312         * <!-- begin-user-doc -->
313         * <!-- end-user-doc -->
314         * @generated
315         */
316        public EReference getConfiguration_ConfigOverrides() {
317                return (EReference)configurationEClass.getEStructuralFeatures().get(2);
318        }
319 
320        /**
321         * <!-- begin-user-doc -->
322         * <!-- end-user-doc -->
323         * @generated
324         */
325        public EClass getIntegerAttributeValue() {
326                return integerAttributeValueEClass;
327        }
328 
329        /**
330         * <!-- begin-user-doc -->
331         * <!-- end-user-doc -->
332         * @generated
333         */
334        public EClass getDoubleAttributeValue() {
335                return doubleAttributeValueEClass;
336        }
337 
338        /**
339         * <!-- begin-user-doc -->
340         * <!-- end-user-doc -->
341         * @generated
342         */
343        public EClass getStringAttributeValue() {
344                return stringAttributeValueEClass;
345        }
346 
347        /**
348         * <!-- begin-user-doc -->
349         * <!-- end-user-doc -->
350         * @generated
351         */
352        public EClass getExternalObjectAttributeValue() {
353                return externalObjectAttributeValueEClass;
354        }
355 
356        /**
357         * <!-- begin-user-doc -->
358         * <!-- end-user-doc -->
359         * @generated
360         */
361        public EReference getExternalObjectAttributeValue_ReferencedObject() {
362                return (EReference)externalObjectAttributeValueEClass.getEStructuralFeatures().get(0);
363        }
364 
365        /**
366         * <!-- begin-user-doc -->
367         * <!-- end-user-doc -->
368         * @generated
369         */
370        public EReference getConfiguration_DefaultConfig() {
371                return (EReference)configurationEClass.getEStructuralFeatures().get(0);
372        }
373 
374        /**
375         * <!-- begin-user-doc -->
376         * <!-- end-user-doc -->
377         * @generated
378         */
379        public EAttribute getConfiguration_Name() {
380                return (EAttribute)configurationEClass.getEStructuralFeatures().get(1);
381        }
382 
383        /**
384         * <!-- begin-user-doc -->
385         * <!-- end-user-doc -->
386         * @generated
387         */
388        public EEnum getConfigState() {
389                return configStateEEnum;
390        }
391 
392        /**
393         * <!-- begin-user-doc -->
394         * <!-- end-user-doc -->
395         * @generated
396         */
397        public EEnum getFeatureConfigState() {
398                return featureConfigStateEEnum;
399        }
400 
401        /**
402         * <!-- begin-user-doc -->
403         * <!-- end-user-doc -->
404         * @generated
405         */
406        public featureconfigFactory getfeatureconfigFactory() {
407                return (featureconfigFactory)getEFactoryInstance();
408        }
409 
410        /**
411         * <!-- begin-user-doc -->
412         * <!-- end-user-doc -->
413         * @generated
414         */
415        private boolean isCreated = false;
416 
417        /**
418         * Creates the meta-model objects for the package.  This method is
419         * guarded to have no affect on any invocation but its first.
420         * <!-- begin-user-doc -->
421         * <!-- end-user-doc -->
422         * @generated
423         */
424        public void createPackageContents() {
425                if (isCreated) return;
426                isCreated = true;
427 
428                // Create classes and their features
429                configNodeEClass = createEClass(CONFIG_NODE);
430                createEReference(configNodeEClass, CONFIG_NODE__ORIGIN);
431                createEAttribute(configNodeEClass, CONFIG_NODE__CONFIG_STATE);
432                createEReference(configNodeEClass, CONFIG_NODE__ATTRIBUTEVALUE);
433 
434                attributeValueEClass = createEClass(ATTRIBUTE_VALUE);
435                createEAttribute(attributeValueEClass, ATTRIBUTE_VALUE__VALUE);
436                createEReference(attributeValueEClass, ATTRIBUTE_VALUE__CONFIGNODE);
437 
438                featureConfigEClass = createEClass(FEATURE_CONFIG);
439                createEAttribute(featureConfigEClass, FEATURE_CONFIG__FEATURE_CONFIG_STATE);
440                createEReference(featureConfigEClass, FEATURE_CONFIG__CONFIGNODE);
441                createEReference(featureConfigEClass, FEATURE_CONFIG__ANNOTATED_ELEMENT);
442                createEReference(featureConfigEClass, FEATURE_CONFIG__CONFIGURATION_OVERRIDES);
443                createEReference(featureConfigEClass, FEATURE_CONFIG__CONFIGURATION_DEFAULT);
444 
445                configurationEClass = createEClass(CONFIGURATION);
446                createEReference(configurationEClass, CONFIGURATION__DEFAULT_CONFIG);
447                createEAttribute(configurationEClass, CONFIGURATION__NAME);
448                createEReference(configurationEClass, CONFIGURATION__CONFIG_OVERRIDES);
449 
450                integerAttributeValueEClass = createEClass(INTEGER_ATTRIBUTE_VALUE);
451 
452                doubleAttributeValueEClass = createEClass(DOUBLE_ATTRIBUTE_VALUE);
453 
454                stringAttributeValueEClass = createEClass(STRING_ATTRIBUTE_VALUE);
455 
456                externalObjectAttributeValueEClass = createEClass(EXTERNAL_OBJECT_ATTRIBUTE_VALUE);
457                createEReference(externalObjectAttributeValueEClass, EXTERNAL_OBJECT_ATTRIBUTE_VALUE__REFERENCED_OBJECT);
458 
459                // Create enums
460                configStateEEnum = createEEnum(CONFIG_STATE);
461                featureConfigStateEEnum = createEEnum(FEATURE_CONFIG_STATE);
462        }
463 
464        /**
465         * <!-- begin-user-doc -->
466         * <!-- end-user-doc -->
467         * @generated
468         */
469        private boolean isInitialized = false;
470 
471        /**
472         * Complete the initialization of the package and its meta-model.  This
473         * method is guarded to have no affect on any invocation but its first.
474         * <!-- begin-user-doc -->
475         * <!-- end-user-doc -->
476         * @generated
477         */
478        public void initializePackageContents() {
479                if (isInitialized) return;
480                isInitialized = true;
481 
482                // Initialize package
483                setName(eNAME);
484                setNsPrefix(eNS_PREFIX);
485                setNsURI(eNS_URI);
486 
487                // Obtain other dependent packages
488                featuremodelPackage thefeaturemodelPackage = (featuremodelPackage)EPackage.Registry.INSTANCE.getEPackage(featuremodelPackage.eNS_URI);
489                EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
490 
491                // Create type parameters
492 
493                // Set bounds for type parameters
494 
495                // Add supertypes to classes
496                attributeValueEClass.getESuperTypes().add(thefeaturemodelPackage.getNamedElement());
497                integerAttributeValueEClass.getESuperTypes().add(this.getAttributeValue());
498                doubleAttributeValueEClass.getESuperTypes().add(this.getAttributeValue());
499                stringAttributeValueEClass.getESuperTypes().add(this.getAttributeValue());
500                externalObjectAttributeValueEClass.getESuperTypes().add(this.getAttributeValue());
501 
502                // Initialize classes and features; add operations and parameters
503                initEClass(configNodeEClass, ConfigNode.class, "ConfigNode", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
504                initEReference(getConfigNode_Origin(), thefeaturemodelPackage.getFeature(), null, "origin", null, 1, 1, ConfigNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
505                initEAttribute(getConfigNode_ConfigState(), this.getConfigState(), "configState", "DEFAULT", 1, 1, ConfigNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
506                initEReference(getConfigNode_Attributevalue(), this.getAttributeValue(), this.getAttributeValue_Confignode(), "attributevalue", null, 0, -1, ConfigNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
507 
508                EOperation op = addEOperation(configNodeEClass, ecorePackage.getEBoolean(), "ConfigCardinalityInvalid", 0, 1, IS_UNIQUE, IS_ORDERED);
509                addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED);
510                EGenericType g1 = createEGenericType(ecorePackage.getEMap());
511                EGenericType g2 = createEGenericType(ecorePackage.getEJavaObject());
512                g1.getETypeArguments().add(g2);
513                g2 = createEGenericType(ecorePackage.getEJavaObject());
514                g1.getETypeArguments().add(g2);
515                addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED);
516 
517                op = addEOperation(configNodeEClass, ecorePackage.getEBoolean(), "CheckMultiplicityOfFeatureGroup", 0, 1, IS_UNIQUE, IS_ORDERED);
518                addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED);
519                g1 = createEGenericType(ecorePackage.getEMap());
520                g2 = createEGenericType(ecorePackage.getEJavaObject());
521                g1.getETypeArguments().add(g2);
522                g2 = createEGenericType(ecorePackage.getEJavaObject());
523                g1.getETypeArguments().add(g2);
524                addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED);
525 
526                initEClass(attributeValueEClass, AttributeValue.class, "AttributeValue", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
527                initEAttribute(getAttributeValue_Value(), theEcorePackage.getEString(), "value", null, 1, 1, AttributeValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
528                initEReference(getAttributeValue_Confignode(), this.getConfigNode(), this.getConfigNode_Attributevalue(), "confignode", null, 1, 1, AttributeValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
529 
530                initEClass(featureConfigEClass, FeatureConfig.class, "FeatureConfig", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
531                initEAttribute(getFeatureConfig_FeatureConfigState(), this.getFeatureConfigState(), "featureConfigState", "NOT_SET", 1, 1, FeatureConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
532                initEReference(getFeatureConfig_Confignode(), this.getConfigNode(), null, "confignode", null, 0, -1, FeatureConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
533                initEReference(getFeatureConfig_AnnotatedElement(), thefeaturemodelPackage.getFeatureDiagram(), null, "annotatedElement", null, 0, 1, FeatureConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
534                initEReference(getFeatureConfig_ConfigurationOverrides(), this.getConfiguration(), this.getConfiguration_ConfigOverrides(), "configurationOverrides", null, 0, 1, FeatureConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
535                initEReference(getFeatureConfig_ConfigurationDefault(), this.getConfiguration(), this.getConfiguration_DefaultConfig(), "configurationDefault", null, 0, 1, FeatureConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
536 
537                addEOperation(featureConfigEClass, this.getFeatureConfigState(), "showFeatureConfigState", 1, 1, IS_UNIQUE, !IS_ORDERED);
538 
539                initEClass(configurationEClass, Configuration.class, "Configuration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
540                initEReference(getConfiguration_DefaultConfig(), this.getFeatureConfig(), this.getFeatureConfig_ConfigurationDefault(), "defaultConfig", null, 1, 1, Configuration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
541                initEAttribute(getConfiguration_Name(), ecorePackage.getEString(), "name", null, 1, 1, Configuration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
542                initEReference(getConfiguration_ConfigOverrides(), this.getFeatureConfig(), this.getFeatureConfig_ConfigurationOverrides(), "configOverrides", null, 0, -1, Configuration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
543 
544                initEClass(integerAttributeValueEClass, IntegerAttributeValue.class, "IntegerAttributeValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
545 
546                op = addEOperation(integerAttributeValueEClass, ecorePackage.getEBoolean(), "AttributeValueIsDefinedInFeatureAndEqualsTypeInteger", 0, 1, IS_UNIQUE, IS_ORDERED);
547                addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED);
548                g1 = createEGenericType(ecorePackage.getEMap());
549                g2 = createEGenericType(ecorePackage.getEJavaObject());
550                g1.getETypeArguments().add(g2);
551                g2 = createEGenericType(ecorePackage.getEJavaObject());
552                g1.getETypeArguments().add(g2);
553                addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED);
554 
555                initEClass(doubleAttributeValueEClass, DoubleAttributeValue.class, "DoubleAttributeValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
556 
557                op = addEOperation(doubleAttributeValueEClass, ecorePackage.getEBoolean(), "AttributeValueIsDefinedInFeatureAndEqualsTypeDouble", 0, 1, IS_UNIQUE, IS_ORDERED);
558                addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED);
559                g1 = createEGenericType(ecorePackage.getEMap());
560                g2 = createEGenericType(ecorePackage.getEJavaObject());
561                g1.getETypeArguments().add(g2);
562                g2 = createEGenericType(ecorePackage.getEJavaObject());
563                g1.getETypeArguments().add(g2);
564                addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED);
565 
566                initEClass(stringAttributeValueEClass, StringAttributeValue.class, "StringAttributeValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
567 
568                op = addEOperation(stringAttributeValueEClass, ecorePackage.getEBoolean(), "AttributeValueIsDefinedInFeatureAndEqualsTypeString", 0, 1, IS_UNIQUE, IS_ORDERED);
569                addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED);
570                g1 = createEGenericType(ecorePackage.getEMap());
571                g2 = createEGenericType(ecorePackage.getEJavaObject());
572                g1.getETypeArguments().add(g2);
573                g2 = createEGenericType(ecorePackage.getEJavaObject());
574                g1.getETypeArguments().add(g2);
575                addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED);
576 
577                initEClass(externalObjectAttributeValueEClass, ExternalObjectAttributeValue.class, "ExternalObjectAttributeValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
578                initEReference(getExternalObjectAttributeValue_ReferencedObject(), theEcorePackage.getEObject(), null, "referencedObject", null, 1, 1, ExternalObjectAttributeValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
579 
580                op = addEOperation(externalObjectAttributeValueEClass, ecorePackage.getEBoolean(), "AttributeValueIsDefinedInFeatureAndEqualsTypeExternalObject", 0, 1, IS_UNIQUE, IS_ORDERED);
581                addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED);
582                g1 = createEGenericType(ecorePackage.getEMap());
583                g2 = createEGenericType(ecorePackage.getEJavaObject());
584                g1.getETypeArguments().add(g2);
585                g2 = createEGenericType(ecorePackage.getEJavaObject());
586                g1.getETypeArguments().add(g2);
587                addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED);
588 
589                // Initialize enums and add enum literals
590                initEEnum(configStateEEnum, ConfigState.class, "ConfigState");
591                addEEnumLiteral(configStateEEnum, ConfigState.SELECTED);
592                addEEnumLiteral(configStateEEnum, ConfigState.ELIMINATED);
593                addEEnumLiteral(configStateEEnum, ConfigState.DEFAULT);
594 
595                initEEnum(featureConfigStateEEnum, FeatureConfigState.class, "FeatureConfigState");
596                addEEnumLiteral(featureConfigStateEEnum, FeatureConfigState.NOT_SET);
597                addEEnumLiteral(featureConfigStateEEnum, FeatureConfigState.OVERRIDE);
598                addEEnumLiteral(featureConfigStateEEnum, FeatureConfigState.DEFAULT);
599 
600                // Create resource
601                createResource(eNS_URI);
602        }
603 
604} //featureconfigPackageImpl

[all classes][de.uka.ipd.sdq.featureconfig.impl]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov