EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][QVTBase.impl]

COVERAGE SUMMARY FOR SOURCE FILE [TransformationImpl.java]

nameclass, %method, %block, %line, %
TransformationImpl.java0%   (0/1)0%   (0/26)0%   (0/679)0%   (0/163)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class TransformationImpl0%   (0/1)0%   (0/26)0%   (0/679)0%   (0/163)
<static initializer> 0%   (0/1)0%   (0/3)0%   (0/2)
TransformationImpl (): void 0%   (0/1)0%   (0/6)0%   (0/3)
basicGetExtends (): Transformation 0%   (0/1)0%   (0/3)0%   (0/1)
basicSetNestingPackage (Package, NotificationChain): NotificationChain 0%   (0/1)0%   (0/9)0%   (0/2)
eBaseStructuralFeatureID (int, Class): int 0%   (0/1)0%   (0/20)0%   (0/8)
eBasicRemoveFromContainerFeature (NotificationChain): NotificationChain 0%   (0/1)0%   (0/15)0%   (0/3)
eDerivedStructuralFeatureID (int, Class): int 0%   (0/1)0%   (0/20)0%   (0/8)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/37)0%   (0/11)
eInverseAdd (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/49)0%   (0/9)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/48)0%   (0/8)
eIsSet (int): boolean 0%   (0/1)0%   (0/93)0%   (0/10)
eSet (int, Object): void 0%   (0/1)0%   (0/72)0%   (0/24)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/38)0%   (0/19)
getExtends (): Transformation 0%   (0/1)0%   (0/38)0%   (0/7)
getModelParameter (): EList 0%   (0/1)0%   (0/15)0%   (0/3)
getNestedPackage (): EList 0%   (0/1)0%   (0/15)0%   (0/3)
getNestingPackage (): Package 0%   (0/1)0%   (0/10)0%   (0/2)
getOwnedTag (): EList 0%   (0/1)0%   (0/14)0%   (0/3)
getOwnedType (): EList 0%   (0/1)0%   (0/15)0%   (0/3)
getRule (): EList 0%   (0/1)0%   (0/15)0%   (0/3)
getUri (): String 0%   (0/1)0%   (0/3)0%   (0/1)
setExtends (Transformation): void 0%   (0/1)0%   (0/21)0%   (0/5)
setNestingPackage (Package): void 0%   (0/1)0%   (0/69)0%   (0/13)
setUri (String): void 0%   (0/1)0%   (0/21)0%   (0/5)
toString (): String 0%   (0/1)0%   (0/28)0%   (0/6)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package QVTBase.impl;
8 
9import EMOF.EMOFPackage;
10import EMOF.Tag;
11import EMOF.Type;
12 
13import EMOF.impl.ClassImpl;
14 
15import QVTBase.QVTBasePackage;
16import QVTBase.Rule;
17import QVTBase.Transformation;
18import QVTBase.TypedModel;
19 
20import java.util.Collection;
21 
22import org.eclipse.emf.common.notify.Notification;
23import org.eclipse.emf.common.notify.NotificationChain;
24 
25import org.eclipse.emf.common.util.EList;
26 
27import org.eclipse.emf.ecore.EClass;
28import org.eclipse.emf.ecore.InternalEObject;
29 
30import org.eclipse.emf.ecore.impl.ENotificationImpl;
31 
32import org.eclipse.emf.ecore.util.EObjectContainmentEList;
33import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
34import org.eclipse.emf.ecore.util.EcoreUtil;
35import org.eclipse.emf.ecore.util.InternalEList;
36 
37/**
38 * <!-- begin-user-doc -->
39 * An implementation of the model object '<em><b>Transformation</b></em>'.
40 * <!-- end-user-doc -->
41 * <p>
42 * The following features are implemented:
43 * <ul>
44 *   <li>{@link QVTBase.impl.TransformationImpl#getNestedPackage <em>Nested Package</em>}</li>
45 *   <li>{@link QVTBase.impl.TransformationImpl#getNestingPackage <em>Nesting Package</em>}</li>
46 *   <li>{@link QVTBase.impl.TransformationImpl#getOwnedType <em>Owned Type</em>}</li>
47 *   <li>{@link QVTBase.impl.TransformationImpl#getUri <em>Uri</em>}</li>
48 *   <li>{@link QVTBase.impl.TransformationImpl#getExtends <em>Extends</em>}</li>
49 *   <li>{@link QVTBase.impl.TransformationImpl#getModelParameter <em>Model Parameter</em>}</li>
50 *   <li>{@link QVTBase.impl.TransformationImpl#getOwnedTag <em>Owned Tag</em>}</li>
51 *   <li>{@link QVTBase.impl.TransformationImpl#getRule <em>Rule</em>}</li>
52 * </ul>
53 * </p>
54 *
55 * @generated
56 */
57public class TransformationImpl extends ClassImpl implements Transformation {
58        /**
59         * The cached value of the '{@link #getNestedPackage() <em>Nested Package</em>}' containment reference list.
60         * <!-- begin-user-doc -->
61         * <!-- end-user-doc -->
62         * @see #getNestedPackage()
63         * @generated
64         * @ordered
65         */
66        protected EList<EMOF.Package> nestedPackage;
67 
68        /**
69         * The cached value of the '{@link #getOwnedType() <em>Owned Type</em>}' containment reference list.
70         * <!-- begin-user-doc -->
71         * <!-- end-user-doc -->
72         * @see #getOwnedType()
73         * @generated
74         * @ordered
75         */
76        protected EList<Type> ownedType;
77 
78        /**
79         * The default value of the '{@link #getUri() <em>Uri</em>}' attribute.
80         * <!-- begin-user-doc -->
81         * <!-- end-user-doc -->
82         * @see #getUri()
83         * @generated
84         * @ordered
85         */
86        protected static final String URI_EDEFAULT = null;
87 
88        /**
89         * The cached value of the '{@link #getUri() <em>Uri</em>}' attribute.
90         * <!-- begin-user-doc -->
91         * <!-- end-user-doc -->
92         * @see #getUri()
93         * @generated
94         * @ordered
95         */
96        protected String uri = URI_EDEFAULT;
97 
98        /**
99         * The cached value of the '{@link #getExtends() <em>Extends</em>}' reference.
100         * <!-- begin-user-doc -->
101         * <!-- end-user-doc -->
102         * @see #getExtends()
103         * @generated
104         * @ordered
105         */
106        protected Transformation extends_;
107 
108        /**
109         * The cached value of the '{@link #getModelParameter() <em>Model Parameter</em>}' containment reference list.
110         * <!-- begin-user-doc -->
111         * <!-- end-user-doc -->
112         * @see #getModelParameter()
113         * @generated
114         * @ordered
115         */
116        protected EList<TypedModel> modelParameter;
117 
118        /**
119         * The cached value of the '{@link #getOwnedTag() <em>Owned Tag</em>}' containment reference list.
120         * <!-- begin-user-doc -->
121         * <!-- end-user-doc -->
122         * @see #getOwnedTag()
123         * @generated
124         * @ordered
125         */
126        protected EList<Tag> ownedTag;
127 
128        /**
129         * The cached value of the '{@link #getRule() <em>Rule</em>}' containment reference list.
130         * <!-- begin-user-doc -->
131         * <!-- end-user-doc -->
132         * @see #getRule()
133         * @generated
134         * @ordered
135         */
136        protected EList<Rule> rule;
137 
138        /**
139         * <!-- begin-user-doc -->
140         * <!-- end-user-doc -->
141         * @generated
142         */
143        protected TransformationImpl() {
144                super();
145        }
146 
147        /**
148         * <!-- begin-user-doc -->
149         * <!-- end-user-doc -->
150         * @generated
151         */
152        @Override
153        protected EClass eStaticClass() {
154                return QVTBasePackage.Literals.TRANSFORMATION;
155        }
156 
157        /**
158         * <!-- begin-user-doc -->
159         * <!-- end-user-doc -->
160         * @generated
161         */
162        public EList<EMOF.Package> getNestedPackage() {
163                if (nestedPackage == null) {
164                        nestedPackage = new EObjectContainmentWithInverseEList<EMOF.Package>(EMOF.Package.class, this, QVTBasePackage.TRANSFORMATION__NESTED_PACKAGE, EMOFPackage.PACKAGE__NESTING_PACKAGE);
165                }
166                return nestedPackage;
167        }
168 
169        /**
170         * <!-- begin-user-doc -->
171         * <!-- end-user-doc -->
172         * @generated
173         */
174        public EMOF.Package getNestingPackage() {
175                if (eContainerFeatureID() != QVTBasePackage.TRANSFORMATION__NESTING_PACKAGE) return null;
176                return (EMOF.Package)eContainer();
177        }
178 
179        /**
180         * <!-- begin-user-doc -->
181         * <!-- end-user-doc -->
182         * @generated
183         */
184        public NotificationChain basicSetNestingPackage(EMOF.Package newNestingPackage, NotificationChain msgs) {
185                msgs = eBasicSetContainer((InternalEObject)newNestingPackage, QVTBasePackage.TRANSFORMATION__NESTING_PACKAGE, msgs);
186                return msgs;
187        }
188 
189        /**
190         * <!-- begin-user-doc -->
191         * <!-- end-user-doc -->
192         * @generated
193         */
194        public void setNestingPackage(EMOF.Package newNestingPackage) {
195                if (newNestingPackage != eInternalContainer() || (eContainerFeatureID() != QVTBasePackage.TRANSFORMATION__NESTING_PACKAGE && newNestingPackage != null)) {
196                        if (EcoreUtil.isAncestor(this, newNestingPackage))
197                                throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
198                        NotificationChain msgs = null;
199                        if (eInternalContainer() != null)
200                                msgs = eBasicRemoveFromContainer(msgs);
201                        if (newNestingPackage != null)
202                                msgs = ((InternalEObject)newNestingPackage).eInverseAdd(this, EMOFPackage.PACKAGE__NESTED_PACKAGE, EMOF.Package.class, msgs);
203                        msgs = basicSetNestingPackage(newNestingPackage, msgs);
204                        if (msgs != null) msgs.dispatch();
205                }
206                else if (eNotificationRequired())
207                        eNotify(new ENotificationImpl(this, Notification.SET, QVTBasePackage.TRANSFORMATION__NESTING_PACKAGE, newNestingPackage, newNestingPackage));
208        }
209 
210        /**
211         * <!-- begin-user-doc -->
212         * <!-- end-user-doc -->
213         * @generated
214         */
215        public EList<Type> getOwnedType() {
216                if (ownedType == null) {
217                        ownedType = new EObjectContainmentWithInverseEList<Type>(Type.class, this, QVTBasePackage.TRANSFORMATION__OWNED_TYPE, EMOFPackage.TYPE__PACKAGE);
218                }
219                return ownedType;
220        }
221 
222        /**
223         * <!-- begin-user-doc -->
224         * <!-- end-user-doc -->
225         * @generated
226         */
227        public String getUri() {
228                return uri;
229        }
230 
231        /**
232         * <!-- begin-user-doc -->
233         * <!-- end-user-doc -->
234         * @generated
235         */
236        public void setUri(String newUri) {
237                String oldUri = uri;
238                uri = newUri;
239                if (eNotificationRequired())
240                        eNotify(new ENotificationImpl(this, Notification.SET, QVTBasePackage.TRANSFORMATION__URI, oldUri, uri));
241        }
242 
243        /**
244         * <!-- begin-user-doc -->
245         * <!-- end-user-doc -->
246         * @generated
247         */
248        public Transformation getExtends() {
249                if (extends_ != null && extends_.eIsProxy()) {
250                        InternalEObject oldExtends = (InternalEObject)extends_;
251                        extends_ = (Transformation)eResolveProxy(oldExtends);
252                        if (extends_ != oldExtends) {
253                                if (eNotificationRequired())
254                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, QVTBasePackage.TRANSFORMATION__EXTENDS, oldExtends, extends_));
255                        }
256                }
257                return extends_;
258        }
259 
260        /**
261         * <!-- begin-user-doc -->
262         * <!-- end-user-doc -->
263         * @generated
264         */
265        public Transformation basicGetExtends() {
266                return extends_;
267        }
268 
269        /**
270         * <!-- begin-user-doc -->
271         * <!-- end-user-doc -->
272         * @generated
273         */
274        public void setExtends(Transformation newExtends) {
275                Transformation oldExtends = extends_;
276                extends_ = newExtends;
277                if (eNotificationRequired())
278                        eNotify(new ENotificationImpl(this, Notification.SET, QVTBasePackage.TRANSFORMATION__EXTENDS, oldExtends, extends_));
279        }
280 
281        /**
282         * <!-- begin-user-doc -->
283         * <!-- end-user-doc -->
284         * @generated
285         */
286        public EList<TypedModel> getModelParameter() {
287                if (modelParameter == null) {
288                        modelParameter = new EObjectContainmentWithInverseEList<TypedModel>(TypedModel.class, this, QVTBasePackage.TRANSFORMATION__MODEL_PARAMETER, QVTBasePackage.TYPED_MODEL__TRANSFORMATION);
289                }
290                return modelParameter;
291        }
292 
293        /**
294         * <!-- begin-user-doc -->
295         * <!-- end-user-doc -->
296         * @generated
297         */
298        public EList<Tag> getOwnedTag() {
299                if (ownedTag == null) {
300                        ownedTag = new EObjectContainmentEList<Tag>(Tag.class, this, QVTBasePackage.TRANSFORMATION__OWNED_TAG);
301                }
302                return ownedTag;
303        }
304 
305        /**
306         * <!-- begin-user-doc -->
307         * <!-- end-user-doc -->
308         * @generated
309         */
310        public EList<Rule> getRule() {
311                if (rule == null) {
312                        rule = new EObjectContainmentWithInverseEList<Rule>(Rule.class, this, QVTBasePackage.TRANSFORMATION__RULE, QVTBasePackage.RULE__TRANSFORMATION);
313                }
314                return rule;
315        }
316 
317        /**
318         * <!-- begin-user-doc -->
319         * <!-- end-user-doc -->
320         * @generated
321         */
322        @SuppressWarnings("unchecked")
323        @Override
324        public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
325                switch (featureID) {
326                        case QVTBasePackage.TRANSFORMATION__NESTED_PACKAGE:
327                                return ((InternalEList<InternalEObject>)(InternalEList<?>)getNestedPackage()).basicAdd(otherEnd, msgs);
328                        case QVTBasePackage.TRANSFORMATION__NESTING_PACKAGE:
329                                if (eInternalContainer() != null)
330                                        msgs = eBasicRemoveFromContainer(msgs);
331                                return basicSetNestingPackage((EMOF.Package)otherEnd, msgs);
332                        case QVTBasePackage.TRANSFORMATION__OWNED_TYPE:
333                                return ((InternalEList<InternalEObject>)(InternalEList<?>)getOwnedType()).basicAdd(otherEnd, msgs);
334                        case QVTBasePackage.TRANSFORMATION__MODEL_PARAMETER:
335                                return ((InternalEList<InternalEObject>)(InternalEList<?>)getModelParameter()).basicAdd(otherEnd, msgs);
336                        case QVTBasePackage.TRANSFORMATION__RULE:
337                                return ((InternalEList<InternalEObject>)(InternalEList<?>)getRule()).basicAdd(otherEnd, msgs);
338                }
339                return super.eInverseAdd(otherEnd, featureID, msgs);
340        }
341 
342        /**
343         * <!-- begin-user-doc -->
344         * <!-- end-user-doc -->
345         * @generated
346         */
347        @Override
348        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
349                switch (featureID) {
350                        case QVTBasePackage.TRANSFORMATION__NESTED_PACKAGE:
351                                return ((InternalEList<?>)getNestedPackage()).basicRemove(otherEnd, msgs);
352                        case QVTBasePackage.TRANSFORMATION__NESTING_PACKAGE:
353                                return basicSetNestingPackage(null, msgs);
354                        case QVTBasePackage.TRANSFORMATION__OWNED_TYPE:
355                                return ((InternalEList<?>)getOwnedType()).basicRemove(otherEnd, msgs);
356                        case QVTBasePackage.TRANSFORMATION__MODEL_PARAMETER:
357                                return ((InternalEList<?>)getModelParameter()).basicRemove(otherEnd, msgs);
358                        case QVTBasePackage.TRANSFORMATION__OWNED_TAG:
359                                return ((InternalEList<?>)getOwnedTag()).basicRemove(otherEnd, msgs);
360                        case QVTBasePackage.TRANSFORMATION__RULE:
361                                return ((InternalEList<?>)getRule()).basicRemove(otherEnd, msgs);
362                }
363                return super.eInverseRemove(otherEnd, featureID, msgs);
364        }
365 
366        /**
367         * <!-- begin-user-doc -->
368         * <!-- end-user-doc -->
369         * @generated
370         */
371        @Override
372        public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
373                switch (eContainerFeatureID()) {
374                        case QVTBasePackage.TRANSFORMATION__NESTING_PACKAGE:
375                                return eInternalContainer().eInverseRemove(this, EMOFPackage.PACKAGE__NESTED_PACKAGE, EMOF.Package.class, msgs);
376                }
377                return super.eBasicRemoveFromContainerFeature(msgs);
378        }
379 
380        /**
381         * <!-- begin-user-doc -->
382         * <!-- end-user-doc -->
383         * @generated
384         */
385        @Override
386        public Object eGet(int featureID, boolean resolve, boolean coreType) {
387                switch (featureID) {
388                        case QVTBasePackage.TRANSFORMATION__NESTED_PACKAGE:
389                                return getNestedPackage();
390                        case QVTBasePackage.TRANSFORMATION__NESTING_PACKAGE:
391                                return getNestingPackage();
392                        case QVTBasePackage.TRANSFORMATION__OWNED_TYPE:
393                                return getOwnedType();
394                        case QVTBasePackage.TRANSFORMATION__URI:
395                                return getUri();
396                        case QVTBasePackage.TRANSFORMATION__EXTENDS:
397                                if (resolve) return getExtends();
398                                return basicGetExtends();
399                        case QVTBasePackage.TRANSFORMATION__MODEL_PARAMETER:
400                                return getModelParameter();
401                        case QVTBasePackage.TRANSFORMATION__OWNED_TAG:
402                                return getOwnedTag();
403                        case QVTBasePackage.TRANSFORMATION__RULE:
404                                return getRule();
405                }
406                return super.eGet(featureID, resolve, coreType);
407        }
408 
409        /**
410         * <!-- begin-user-doc -->
411         * <!-- end-user-doc -->
412         * @generated
413         */
414        @SuppressWarnings("unchecked")
415        @Override
416        public void eSet(int featureID, Object newValue) {
417                switch (featureID) {
418                        case QVTBasePackage.TRANSFORMATION__NESTED_PACKAGE:
419                                getNestedPackage().clear();
420                                getNestedPackage().addAll((Collection<? extends EMOF.Package>)newValue);
421                                return;
422                        case QVTBasePackage.TRANSFORMATION__NESTING_PACKAGE:
423                                setNestingPackage((EMOF.Package)newValue);
424                                return;
425                        case QVTBasePackage.TRANSFORMATION__OWNED_TYPE:
426                                getOwnedType().clear();
427                                getOwnedType().addAll((Collection<? extends Type>)newValue);
428                                return;
429                        case QVTBasePackage.TRANSFORMATION__URI:
430                                setUri((String)newValue);
431                                return;
432                        case QVTBasePackage.TRANSFORMATION__EXTENDS:
433                                setExtends((Transformation)newValue);
434                                return;
435                        case QVTBasePackage.TRANSFORMATION__MODEL_PARAMETER:
436                                getModelParameter().clear();
437                                getModelParameter().addAll((Collection<? extends TypedModel>)newValue);
438                                return;
439                        case QVTBasePackage.TRANSFORMATION__OWNED_TAG:
440                                getOwnedTag().clear();
441                                getOwnedTag().addAll((Collection<? extends Tag>)newValue);
442                                return;
443                        case QVTBasePackage.TRANSFORMATION__RULE:
444                                getRule().clear();
445                                getRule().addAll((Collection<? extends Rule>)newValue);
446                                return;
447                }
448                super.eSet(featureID, newValue);
449        }
450 
451        /**
452         * <!-- begin-user-doc -->
453         * <!-- end-user-doc -->
454         * @generated
455         */
456        @Override
457        public void eUnset(int featureID) {
458                switch (featureID) {
459                        case QVTBasePackage.TRANSFORMATION__NESTED_PACKAGE:
460                                getNestedPackage().clear();
461                                return;
462                        case QVTBasePackage.TRANSFORMATION__NESTING_PACKAGE:
463                                setNestingPackage((EMOF.Package)null);
464                                return;
465                        case QVTBasePackage.TRANSFORMATION__OWNED_TYPE:
466                                getOwnedType().clear();
467                                return;
468                        case QVTBasePackage.TRANSFORMATION__URI:
469                                setUri(URI_EDEFAULT);
470                                return;
471                        case QVTBasePackage.TRANSFORMATION__EXTENDS:
472                                setExtends((Transformation)null);
473                                return;
474                        case QVTBasePackage.TRANSFORMATION__MODEL_PARAMETER:
475                                getModelParameter().clear();
476                                return;
477                        case QVTBasePackage.TRANSFORMATION__OWNED_TAG:
478                                getOwnedTag().clear();
479                                return;
480                        case QVTBasePackage.TRANSFORMATION__RULE:
481                                getRule().clear();
482                                return;
483                }
484                super.eUnset(featureID);
485        }
486 
487        /**
488         * <!-- begin-user-doc -->
489         * <!-- end-user-doc -->
490         * @generated
491         */
492        @Override
493        public boolean eIsSet(int featureID) {
494                switch (featureID) {
495                        case QVTBasePackage.TRANSFORMATION__NESTED_PACKAGE:
496                                return nestedPackage != null && !nestedPackage.isEmpty();
497                        case QVTBasePackage.TRANSFORMATION__NESTING_PACKAGE:
498                                return getNestingPackage() != null;
499                        case QVTBasePackage.TRANSFORMATION__OWNED_TYPE:
500                                return ownedType != null && !ownedType.isEmpty();
501                        case QVTBasePackage.TRANSFORMATION__URI:
502                                return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri);
503                        case QVTBasePackage.TRANSFORMATION__EXTENDS:
504                                return extends_ != null;
505                        case QVTBasePackage.TRANSFORMATION__MODEL_PARAMETER:
506                                return modelParameter != null && !modelParameter.isEmpty();
507                        case QVTBasePackage.TRANSFORMATION__OWNED_TAG:
508                                return ownedTag != null && !ownedTag.isEmpty();
509                        case QVTBasePackage.TRANSFORMATION__RULE:
510                                return rule != null && !rule.isEmpty();
511                }
512                return super.eIsSet(featureID);
513        }
514 
515        /**
516         * <!-- begin-user-doc -->
517         * <!-- end-user-doc -->
518         * @generated
519         */
520        @Override
521        public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
522                if (baseClass == EMOF.Package.class) {
523                        switch (derivedFeatureID) {
524                                case QVTBasePackage.TRANSFORMATION__NESTED_PACKAGE: return EMOFPackage.PACKAGE__NESTED_PACKAGE;
525                                case QVTBasePackage.TRANSFORMATION__NESTING_PACKAGE: return EMOFPackage.PACKAGE__NESTING_PACKAGE;
526                                case QVTBasePackage.TRANSFORMATION__OWNED_TYPE: return EMOFPackage.PACKAGE__OWNED_TYPE;
527                                case QVTBasePackage.TRANSFORMATION__URI: return EMOFPackage.PACKAGE__URI;
528                                default: return -1;
529                        }
530                }
531                return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
532        }
533 
534        /**
535         * <!-- begin-user-doc -->
536         * <!-- end-user-doc -->
537         * @generated
538         */
539        @Override
540        public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
541                if (baseClass == EMOF.Package.class) {
542                        switch (baseFeatureID) {
543                                case EMOFPackage.PACKAGE__NESTED_PACKAGE: return QVTBasePackage.TRANSFORMATION__NESTED_PACKAGE;
544                                case EMOFPackage.PACKAGE__NESTING_PACKAGE: return QVTBasePackage.TRANSFORMATION__NESTING_PACKAGE;
545                                case EMOFPackage.PACKAGE__OWNED_TYPE: return QVTBasePackage.TRANSFORMATION__OWNED_TYPE;
546                                case EMOFPackage.PACKAGE__URI: return QVTBasePackage.TRANSFORMATION__URI;
547                                default: return -1;
548                        }
549                }
550                return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
551        }
552 
553        /**
554         * <!-- begin-user-doc -->
555         * <!-- end-user-doc -->
556         * @generated
557         */
558        @Override
559        public String toString() {
560                if (eIsProxy()) return super.toString();
561 
562                StringBuffer result = new StringBuffer(super.toString());
563                result.append(" (uri: ");
564                result.append(uri);
565                result.append(')');
566                return result.toString();
567        }
568 
569} //TransformationImpl

[all classes][QVTBase.impl]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov