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 [FeatureConfigImpl.java]

nameclass, %method, %block, %line, %
FeatureConfigImpl.java0%   (0/1)0%   (0/25)0%   (0/577)0%   (0/137)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class FeatureConfigImpl0%   (0/1)0%   (0/25)0%   (0/577)0%   (0/137)
<static initializer> 0%   (0/1)0%   (0/5)0%   (0/3)
FeatureConfigImpl (): void 0%   (0/1)0%   (0/6)0%   (0/3)
basicGetAnnotatedElement (): FeatureDiagram 0%   (0/1)0%   (0/3)0%   (0/1)
basicSetConfigurationDefault (Configuration, NotificationChain): Notification... 0%   (0/1)0%   (0/9)0%   (0/2)
basicSetConfigurationOverrides (Configuration, NotificationChain): Notificati... 0%   (0/1)0%   (0/9)0%   (0/2)
eBasicRemoveFromContainerFeature (NotificationChain): NotificationChain 0%   (0/1)0%   (0/23)0%   (0/4)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/28)0%   (0/8)
eInverseAdd (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/34)0%   (0/8)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/25)0%   (0/5)
eIsSet (int): boolean 0%   (0/1)0%   (0/46)0%   (0/7)
eSet (int, Object): void 0%   (0/1)0%   (0/37)0%   (0/14)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/26)0%   (0/13)
getAnnotatedElement (): FeatureDiagram 0%   (0/1)0%   (0/38)0%   (0/7)
getConfignode (): EList 0%   (0/1)0%   (0/14)0%   (0/3)
getConfigurationDefault (): Configuration 0%   (0/1)0%   (0/10)0%   (0/2)
getConfigurationOverrides (): Configuration 0%   (0/1)0%   (0/10)0%   (0/2)
getFeatureConfigState (): FeatureConfigState 0%   (0/1)0%   (0/3)0%   (0/1)
getFeatureConfigStateOld (): FeatureConfigState 0%   (0/1)0%   (0/3)0%   (0/1)
setAnnotatedElement (FeatureDiagram): void 0%   (0/1)0%   (0/21)0%   (0/5)
setConfigurationDefault (Configuration): void 0%   (0/1)0%   (0/69)0%   (0/13)
setConfigurationOverrides (Configuration): void 0%   (0/1)0%   (0/69)0%   (0/13)
setFeatureConfigState (FeatureConfigState): void 0%   (0/1)0%   (0/25)0%   (0/5)
showFeatureConfigState (): FeatureConfigState 0%   (0/1)0%   (0/34)0%   (0/8)
toString (): String 0%   (0/1)0%   (0/28)0%   (0/6)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.featureconfig.impl;
8 
9import java.util.Collection;
10import java.util.Map;
11 
12import org.eclipse.emf.common.notify.Notification;
13import org.eclipse.emf.common.notify.NotificationChain;
14import org.eclipse.emf.common.util.BasicDiagnostic;
15import org.eclipse.emf.common.util.Diagnostic;
16import org.eclipse.emf.common.util.DiagnosticChain;
17import org.eclipse.emf.common.util.EList;
18import org.eclipse.emf.ecore.EClass;
19import org.eclipse.emf.ecore.EClassifier;
20import org.eclipse.emf.ecore.EObject;
21import org.eclipse.emf.ecore.InternalEObject;
22import org.eclipse.emf.ecore.impl.ENotificationImpl;
23import org.eclipse.emf.ecore.impl.EObjectImpl;
24import org.eclipse.emf.ecore.plugin.EcorePlugin;
25import org.eclipse.emf.ecore.util.EObjectContainmentEList;
26import org.eclipse.emf.ecore.util.EObjectValidator;
27import org.eclipse.emf.ecore.util.EcoreUtil;
28import org.eclipse.emf.ecore.util.InternalEList;
29import org.eclipse.ocl.ParserException;
30import org.eclipse.ocl.ecore.Constraint;
31import org.eclipse.ocl.ecore.OCL;
32import org.eclipse.ocl.expressions.OCLExpression;
33 
34import de.uka.ipd.sdq.featureconfig.ConfigNode;
35import de.uka.ipd.sdq.featureconfig.Configuration;
36import de.uka.ipd.sdq.featureconfig.FeatureConfig;
37import de.uka.ipd.sdq.featureconfig.FeatureConfigState;
38import de.uka.ipd.sdq.featureconfig.featureconfigPackage;
39import de.uka.ipd.sdq.featuremodel.FeatureDiagram;
40import de.uka.ipd.sdq.featureconfig.util.featureconfigValidator;
41 
42/**
43 * <!-- begin-user-doc --> An implementation of the model object '
44 * <em><b>Feature Config</b></em>'. <!-- end-user-doc -->
45 * <p>
46 * The following features are implemented:
47 * <ul>
48 *   <li>{@link de.uka.ipd.sdq.featureconfig.impl.FeatureConfigImpl#getFeatureConfigState <em>Feature Config State</em>}</li>
49 *   <li>{@link de.uka.ipd.sdq.featureconfig.impl.FeatureConfigImpl#getConfignode <em>Confignode</em>}</li>
50 *   <li>{@link de.uka.ipd.sdq.featureconfig.impl.FeatureConfigImpl#getAnnotatedElement <em>Annotated Element</em>}</li>
51 *   <li>{@link de.uka.ipd.sdq.featureconfig.impl.FeatureConfigImpl#getConfigurationOverrides <em>Configuration Overrides</em>}</li>
52 *   <li>{@link de.uka.ipd.sdq.featureconfig.impl.FeatureConfigImpl#getConfigurationDefault <em>Configuration Default</em>}</li>
53 * </ul>
54 * </p>
55 *
56 * @generated
57 */
58public class FeatureConfigImpl extends EObjectImpl implements FeatureConfig {
59        /**
60         * The default value of the '{@link #getFeatureConfigState() <em>Feature Config State</em>}' attribute.
61         * <!-- begin-user-doc --> <!--
62         * end-user-doc -->
63         * @see #getFeatureConfigState()
64         * @generated
65         * @ordered
66         */
67        protected static final FeatureConfigState FEATURE_CONFIG_STATE_EDEFAULT = FeatureConfigState.NOT_SET;
68 
69        /**
70         * The cached value of the '{@link #getFeatureConfigState() <em>Feature Config State</em>}' attribute.
71         * <!-- begin-user-doc -->
72         * <!-- end-user-doc -->
73         * @see #getFeatureConfigState()
74         * @generated
75         * @ordered
76         */
77        protected FeatureConfigState featureConfigState = FEATURE_CONFIG_STATE_EDEFAULT;
78 
79        /**
80         * The cached value of the '{@link #getConfignode() <em>Confignode</em>}' containment reference list.
81         * <!-- begin-user-doc --> <!-- end-user-doc -->
82         * @see #getConfignode()
83         * @generated
84         * @ordered
85         */
86        protected EList<ConfigNode> confignode;
87 
88        /**
89         * The cached value of the '{@link #getAnnotatedElement() <em>Annotated Element</em>}' reference.
90         * <!-- begin-user-doc -->
91         * <!-- end-user-doc -->
92         * @see #getAnnotatedElement()
93         * @generated
94         * @ordered
95         */
96        protected FeatureDiagram annotatedElement;
97 
98        /**
99         * <!-- begin-user-doc --> <!-- end-user-doc -->
100         * @generated
101         */
102        protected FeatureConfigImpl() {
103                super();
104        }
105 
106        /**
107         * <!-- begin-user-doc --> <!-- end-user-doc -->
108         * @generated
109         */
110        @Override
111        protected EClass eStaticClass() {
112                return featureconfigPackage.Literals.FEATURE_CONFIG;
113        }
114 
115        /**
116         * <!-- begin-user-doc -->
117         * <!-- end-user-doc -->
118         * @generated
119         */
120        public FeatureConfigState getFeatureConfigState() {
121                return featureConfigState;
122        }
123 
124        /**
125         * <!-- begin-user-doc -->
126         * <!-- end-user-doc -->
127         * @generated
128         */
129        public void setFeatureConfigState(FeatureConfigState newFeatureConfigState) {
130                FeatureConfigState oldFeatureConfigState = featureConfigState;
131                featureConfigState = newFeatureConfigState == null ? FEATURE_CONFIG_STATE_EDEFAULT : newFeatureConfigState;
132                if (eNotificationRequired())
133                        eNotify(new ENotificationImpl(this, Notification.SET, featureconfigPackage.FEATURE_CONFIG__FEATURE_CONFIG_STATE, oldFeatureConfigState, featureConfigState));
134        }
135 
136        /**
137         * <!-- begin-user-doc --> 
138         * returns the result of showFeatureConfigState()
139         * showFeatureConfigState is defined by an OCL expression.
140         * The FeatureConfigState of a FeatureConfig is DEFAULT, if the FeatureConfig equals its configurationDefault.defaultConfig.
141         * It is OVERRIDE, if it is included in its configurationOverrides.configOverrides.
142         * If neither of these conditions applies, the FeatureConfigState is NOT_SET.
143         * @generated not
144         */
145        public FeatureConfigState getFeatureConfigStateOld() {
146                return showFeatureConfigState();
147        }
148 
149        /**
150         * <!-- begin-user-doc --> <!-- end-user-doc -->
151         * @generated
152         */
153        public EList<ConfigNode> getConfignode() {
154                if (confignode == null) {
155                        confignode = new EObjectContainmentEList<ConfigNode>(ConfigNode.class, this, featureconfigPackage.FEATURE_CONFIG__CONFIGNODE);
156                }
157                return confignode;
158        }
159 
160        /**
161         * <!-- begin-user-doc -->
162         * <!-- end-user-doc -->
163         * @generated
164         */
165        public FeatureDiagram getAnnotatedElement() {
166                if (annotatedElement != null && annotatedElement.eIsProxy()) {
167                        InternalEObject oldAnnotatedElement = (InternalEObject)annotatedElement;
168                        annotatedElement = (FeatureDiagram)eResolveProxy(oldAnnotatedElement);
169                        if (annotatedElement != oldAnnotatedElement) {
170                                if (eNotificationRequired())
171                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, featureconfigPackage.FEATURE_CONFIG__ANNOTATED_ELEMENT, oldAnnotatedElement, annotatedElement));
172                        }
173                }
174                return annotatedElement;
175        }
176 
177        /**
178         * <!-- begin-user-doc -->
179         * <!-- end-user-doc -->
180         * @generated
181         */
182        public FeatureDiagram basicGetAnnotatedElement() {
183                return annotatedElement;
184        }
185 
186        /**
187         * <!-- begin-user-doc -->
188         * <!-- end-user-doc -->
189         * @generated
190         */
191        public void setAnnotatedElement(FeatureDiagram newAnnotatedElement) {
192                FeatureDiagram oldAnnotatedElement = annotatedElement;
193                annotatedElement = newAnnotatedElement;
194                if (eNotificationRequired())
195                        eNotify(new ENotificationImpl(this, Notification.SET, featureconfigPackage.FEATURE_CONFIG__ANNOTATED_ELEMENT, oldAnnotatedElement, annotatedElement));
196        }
197 
198        /**
199         * <!-- begin-user-doc -->
200         * <!-- end-user-doc -->
201         * @generated
202         */
203        public Configuration getConfigurationOverrides() {
204                if (eContainerFeatureID() != featureconfigPackage.FEATURE_CONFIG__CONFIGURATION_OVERRIDES) return null;
205                return (Configuration)eContainer();
206        }
207 
208        /**
209         * <!-- begin-user-doc -->
210         * <!-- end-user-doc -->
211         * @generated
212         */
213        public NotificationChain basicSetConfigurationOverrides(Configuration newConfigurationOverrides, NotificationChain msgs) {
214                msgs = eBasicSetContainer((InternalEObject)newConfigurationOverrides, featureconfigPackage.FEATURE_CONFIG__CONFIGURATION_OVERRIDES, msgs);
215                return msgs;
216        }
217 
218        /**
219         * <!-- begin-user-doc -->
220         * <!-- end-user-doc -->
221         * @generated
222         */
223        public void setConfigurationOverrides(Configuration newConfigurationOverrides) {
224                if (newConfigurationOverrides != eInternalContainer() || (eContainerFeatureID() != featureconfigPackage.FEATURE_CONFIG__CONFIGURATION_OVERRIDES && newConfigurationOverrides != null)) {
225                        if (EcoreUtil.isAncestor(this, newConfigurationOverrides))
226                                throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
227                        NotificationChain msgs = null;
228                        if (eInternalContainer() != null)
229                                msgs = eBasicRemoveFromContainer(msgs);
230                        if (newConfigurationOverrides != null)
231                                msgs = ((InternalEObject)newConfigurationOverrides).eInverseAdd(this, featureconfigPackage.CONFIGURATION__CONFIG_OVERRIDES, Configuration.class, msgs);
232                        msgs = basicSetConfigurationOverrides(newConfigurationOverrides, msgs);
233                        if (msgs != null) msgs.dispatch();
234                }
235                else if (eNotificationRequired())
236                        eNotify(new ENotificationImpl(this, Notification.SET, featureconfigPackage.FEATURE_CONFIG__CONFIGURATION_OVERRIDES, newConfigurationOverrides, newConfigurationOverrides));
237        }
238 
239        /**
240         * <!-- begin-user-doc -->
241         * <!-- end-user-doc -->
242         * @generated
243         */
244        public Configuration getConfigurationDefault() {
245                if (eContainerFeatureID() != featureconfigPackage.FEATURE_CONFIG__CONFIGURATION_DEFAULT) return null;
246                return (Configuration)eContainer();
247        }
248 
249        /**
250         * <!-- begin-user-doc -->
251         * <!-- end-user-doc -->
252         * @generated
253         */
254        public NotificationChain basicSetConfigurationDefault(Configuration newConfigurationDefault, NotificationChain msgs) {
255                msgs = eBasicSetContainer((InternalEObject)newConfigurationDefault, featureconfigPackage.FEATURE_CONFIG__CONFIGURATION_DEFAULT, msgs);
256                return msgs;
257        }
258 
259        /**
260         * <!-- begin-user-doc -->
261         * <!-- end-user-doc -->
262         * @generated
263         */
264        public void setConfigurationDefault(Configuration newConfigurationDefault) {
265                if (newConfigurationDefault != eInternalContainer() || (eContainerFeatureID() != featureconfigPackage.FEATURE_CONFIG__CONFIGURATION_DEFAULT && newConfigurationDefault != null)) {
266                        if (EcoreUtil.isAncestor(this, newConfigurationDefault))
267                                throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
268                        NotificationChain msgs = null;
269                        if (eInternalContainer() != null)
270                                msgs = eBasicRemoveFromContainer(msgs);
271                        if (newConfigurationDefault != null)
272                                msgs = ((InternalEObject)newConfigurationDefault).eInverseAdd(this, featureconfigPackage.CONFIGURATION__DEFAULT_CONFIG, Configuration.class, msgs);
273                        msgs = basicSetConfigurationDefault(newConfigurationDefault, msgs);
274                        if (msgs != null) msgs.dispatch();
275                }
276                else if (eNotificationRequired())
277                        eNotify(new ENotificationImpl(this, Notification.SET, featureconfigPackage.FEATURE_CONFIG__CONFIGURATION_DEFAULT, newConfigurationDefault, newConfigurationDefault));
278        }
279 
280        /**
281         * The cached OCL expression body for the '{@link #showFeatureConfigState() <em>Show Feature Config State</em>}' operation.
282         * <!-- begin-user-doc -->
283         * <!-- end-user-doc -->
284         * @see #showFeatureConfigState()
285         * @generated
286         * @ordered
287         */
288        protected static final String SHOW_FEATURE_CONFIG_STATE__EOCL_EXP = "if (configurationDefault->size() = 1 and configurationDefault.defaultConfig = self) then FeatureConfigState::DEFAULT"+
289" else ("+
290" if (configurationOverrides->size() = 1 and configurationOverrides.configOverrides->size() > 0 and configurationOverrides.configOverrides->includes(self)) then FeatureConfigState::OVERRIDE"+
291" else FeatureConfigState::NOT_SET"+
292" endif"+
293" ) endif";
294 
295        /**
296         * The cached OCL query for the '{@link #showFeatureConfigState() <em>Show Feature Config State</em>}' query operation.
297         * <!-- begin-user-doc -->
298         * <!-- end-user-doc -->
299         * @see #showFeatureConfigState()
300         * @generated
301         * @ordered
302         */
303        protected static OCLExpression<EClassifier> SHOW_FEATURE_CONFIG_STATE__EOCL_QRY;
304 
305        /**
306         * <!-- begin-user-doc -->
307         * <!-- end-user-doc -->
308         * @generated
309         */
310        public FeatureConfigState showFeatureConfigState() {
311                if (SHOW_FEATURE_CONFIG_STATE__EOCL_QRY == null) {
312                        OCL.Helper helper = EOCL_ENV.createOCLHelper();
313                        helper.setOperationContext(featureconfigPackage.Literals.FEATURE_CONFIG, featureconfigPackage.Literals.FEATURE_CONFIG.getEAllOperations().get(0));
314                        try {
315                                SHOW_FEATURE_CONFIG_STATE__EOCL_QRY = helper.createQuery(SHOW_FEATURE_CONFIG_STATE__EOCL_EXP);
316                        }
317                        catch (ParserException pe) {
318                                throw new UnsupportedOperationException(pe.getLocalizedMessage());
319                        }
320                }
321                OCL.Query query = EOCL_ENV.createQuery(SHOW_FEATURE_CONFIG_STATE__EOCL_QRY);
322                return (FeatureConfigState) query.evaluate(this);
323        }
324 
325        /**
326         * <!-- begin-user-doc -->
327         * <!-- end-user-doc -->
328         * @generated
329         */
330        @Override
331        public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
332                switch (featureID) {
333                        case featureconfigPackage.FEATURE_CONFIG__CONFIGURATION_OVERRIDES:
334                                if (eInternalContainer() != null)
335                                        msgs = eBasicRemoveFromContainer(msgs);
336                                return basicSetConfigurationOverrides((Configuration)otherEnd, msgs);
337                        case featureconfigPackage.FEATURE_CONFIG__CONFIGURATION_DEFAULT:
338                                if (eInternalContainer() != null)
339                                        msgs = eBasicRemoveFromContainer(msgs);
340                                return basicSetConfigurationDefault((Configuration)otherEnd, msgs);
341                }
342                return super.eInverseAdd(otherEnd, featureID, msgs);
343        }
344 
345        /**
346         * <!-- begin-user-doc --> <!-- end-user-doc -->
347         * @generated
348         */
349        @Override
350        public NotificationChain eInverseRemove(InternalEObject otherEnd,
351                        int featureID, NotificationChain msgs) {
352                switch (featureID) {
353                        case featureconfigPackage.FEATURE_CONFIG__CONFIGNODE:
354                                return ((InternalEList<?>)getConfignode()).basicRemove(otherEnd, msgs);
355                        case featureconfigPackage.FEATURE_CONFIG__CONFIGURATION_OVERRIDES:
356                                return basicSetConfigurationOverrides(null, msgs);
357                        case featureconfigPackage.FEATURE_CONFIG__CONFIGURATION_DEFAULT:
358                                return basicSetConfigurationDefault(null, msgs);
359                }
360                return super.eInverseRemove(otherEnd, featureID, msgs);
361        }
362 
363        /**
364         * <!-- begin-user-doc -->
365         * <!-- end-user-doc -->
366         * @generated
367         */
368        @Override
369        public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
370                switch (eContainerFeatureID()) {
371                        case featureconfigPackage.FEATURE_CONFIG__CONFIGURATION_OVERRIDES:
372                                return eInternalContainer().eInverseRemove(this, featureconfigPackage.CONFIGURATION__CONFIG_OVERRIDES, Configuration.class, msgs);
373                        case featureconfigPackage.FEATURE_CONFIG__CONFIGURATION_DEFAULT:
374                                return eInternalContainer().eInverseRemove(this, featureconfigPackage.CONFIGURATION__DEFAULT_CONFIG, Configuration.class, msgs);
375                }
376                return super.eBasicRemoveFromContainerFeature(msgs);
377        }
378 
379        /**
380         * <!-- begin-user-doc --> <!-- end-user-doc -->
381         * @generated
382         */
383        @Override
384        public Object eGet(int featureID, boolean resolve, boolean coreType) {
385                switch (featureID) {
386                        case featureconfigPackage.FEATURE_CONFIG__FEATURE_CONFIG_STATE:
387                                return getFeatureConfigState();
388                        case featureconfigPackage.FEATURE_CONFIG__CONFIGNODE:
389                                return getConfignode();
390                        case featureconfigPackage.FEATURE_CONFIG__ANNOTATED_ELEMENT:
391                                if (resolve) return getAnnotatedElement();
392                                return basicGetAnnotatedElement();
393                        case featureconfigPackage.FEATURE_CONFIG__CONFIGURATION_OVERRIDES:
394                                return getConfigurationOverrides();
395                        case featureconfigPackage.FEATURE_CONFIG__CONFIGURATION_DEFAULT:
396                                return getConfigurationDefault();
397                }
398                return super.eGet(featureID, resolve, coreType);
399        }
400 
401        /**
402         * <!-- begin-user-doc --> <!-- end-user-doc -->
403         * @generated
404         */
405        @SuppressWarnings("unchecked")
406        @Override
407        public void eSet(int featureID, Object newValue) {
408                switch (featureID) {
409                        case featureconfigPackage.FEATURE_CONFIG__FEATURE_CONFIG_STATE:
410                                setFeatureConfigState((FeatureConfigState)newValue);
411                                return;
412                        case featureconfigPackage.FEATURE_CONFIG__CONFIGNODE:
413                                getConfignode().clear();
414                                getConfignode().addAll((Collection<? extends ConfigNode>)newValue);
415                                return;
416                        case featureconfigPackage.FEATURE_CONFIG__ANNOTATED_ELEMENT:
417                                setAnnotatedElement((FeatureDiagram)newValue);
418                                return;
419                        case featureconfigPackage.FEATURE_CONFIG__CONFIGURATION_OVERRIDES:
420                                setConfigurationOverrides((Configuration)newValue);
421                                return;
422                        case featureconfigPackage.FEATURE_CONFIG__CONFIGURATION_DEFAULT:
423                                setConfigurationDefault((Configuration)newValue);
424                                return;
425                }
426                super.eSet(featureID, newValue);
427        }
428 
429        /**
430         * <!-- begin-user-doc --> <!-- end-user-doc -->
431         * @generated
432         */
433        @Override
434        public void eUnset(int featureID) {
435                switch (featureID) {
436                        case featureconfigPackage.FEATURE_CONFIG__FEATURE_CONFIG_STATE:
437                                setFeatureConfigState(FEATURE_CONFIG_STATE_EDEFAULT);
438                                return;
439                        case featureconfigPackage.FEATURE_CONFIG__CONFIGNODE:
440                                getConfignode().clear();
441                                return;
442                        case featureconfigPackage.FEATURE_CONFIG__ANNOTATED_ELEMENT:
443                                setAnnotatedElement((FeatureDiagram)null);
444                                return;
445                        case featureconfigPackage.FEATURE_CONFIG__CONFIGURATION_OVERRIDES:
446                                setConfigurationOverrides((Configuration)null);
447                                return;
448                        case featureconfigPackage.FEATURE_CONFIG__CONFIGURATION_DEFAULT:
449                                setConfigurationDefault((Configuration)null);
450                                return;
451                }
452                super.eUnset(featureID);
453        }
454 
455        /**
456         * <!-- begin-user-doc --> <!-- end-user-doc -->
457         * @generated
458         */
459        @Override
460        public boolean eIsSet(int featureID) {
461                switch (featureID) {
462                        case featureconfigPackage.FEATURE_CONFIG__FEATURE_CONFIG_STATE:
463                                return featureConfigState != FEATURE_CONFIG_STATE_EDEFAULT;
464                        case featureconfigPackage.FEATURE_CONFIG__CONFIGNODE:
465                                return confignode != null && !confignode.isEmpty();
466                        case featureconfigPackage.FEATURE_CONFIG__ANNOTATED_ELEMENT:
467                                return annotatedElement != null;
468                        case featureconfigPackage.FEATURE_CONFIG__CONFIGURATION_OVERRIDES:
469                                return getConfigurationOverrides() != null;
470                        case featureconfigPackage.FEATURE_CONFIG__CONFIGURATION_DEFAULT:
471                                return getConfigurationDefault() != null;
472                }
473                return super.eIsSet(featureID);
474        }
475 
476        /**
477         * <!-- begin-user-doc -->
478         * <!-- end-user-doc -->
479         * @generated
480         */
481        @Override
482        public String toString() {
483                if (eIsProxy()) return super.toString();
484 
485                StringBuffer result = new StringBuffer(super.toString());
486                result.append(" (featureConfigState: ");
487                result.append(featureConfigState);
488                result.append(')');
489                return result.toString();
490        }
491 
492        /**
493         * The cached environment for evaluating OCL expressions.
494         * <!-- begin-user-doc -->
495         * <!-- end-user-doc -->
496         * @generated
497         * @ordered
498         */
499        protected static final OCL EOCL_ENV = OCL.newInstance();
500 
501} // FeatureConfigImpl

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