~ubuntu-branches/ubuntu/vivid/eclipse-wtp/vivid

« back to all changes in this revision

Viewing changes to org.eclipse.wst.dtd.core/emfmodel/org/eclipse/wst/dtd/core/internal/emf/impl/DTDAttributeImpl.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2013-06-28 08:42:01 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130628084201-houvqyt5uc6a3p27
Tags: 3.5.0-1
* New upstream release.
* Refreshed d/patches:
  - debian-custom-build.patch
  - regenerate-xpath2-parser.patch.
* Add patch for compatibility with rhino 1.7R4.
* Regenerate code from EMF models.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
import org.eclipse.emf.common.notify.Notification;
18
18
import org.eclipse.emf.common.notify.NotificationChain;
19
 
import org.eclipse.emf.common.notify.impl.NotificationChainImpl;
20
19
import org.eclipse.emf.ecore.EClass;
21
20
import org.eclipse.emf.ecore.EClassifier;
22
21
import org.eclipse.emf.ecore.EEnumLiteral;
23
22
import org.eclipse.emf.ecore.EPackage;
24
 
import org.eclipse.emf.ecore.EStructuralFeature;
25
23
import org.eclipse.emf.ecore.EcoreFactory;
26
24
import org.eclipse.emf.ecore.EcorePackage;
27
25
import org.eclipse.emf.ecore.InternalEObject;
28
26
import org.eclipse.emf.ecore.impl.EAttributeImpl;
29
27
import org.eclipse.emf.ecore.impl.ENotificationImpl;
30
28
import org.eclipse.emf.ecore.util.EcoreUtil;
31
 
import org.eclipse.emf.ecore.util.InternalEList;
32
29
import org.eclipse.wst.dtd.core.internal.emf.DTDAttribute;
33
30
import org.eclipse.wst.dtd.core.internal.emf.DTDBasicType;
34
31
import org.eclipse.wst.dtd.core.internal.emf.DTDBasicTypeKind;
49
46
 * <p>
50
47
 * The following features are implemented:
51
48
 * <ul>
52
 
 * <li>{@link org.eclipse.wst.dtd.core.internal.emf.internal.impl.DTDAttributeImpl#getComment <em>Comment</em>}</li>
53
 
 * <li>{@link org.eclipse.wst.dtd.core.internal.emf.internal.impl.DTDAttributeImpl#getDefaultKind <em>Default Kind</em>}</li>
54
 
 * <li>{@link org.eclipse.wst.dtd.core.internal.emf.internal.impl.DTDAttributeImpl#getDefaultValueString <em>Default Value String</em>}</li>
55
 
 * <li>{@link org.eclipse.wst.dtd.core.internal.emf.internal.impl.DTDAttributeImpl#getAttributeNameReferencedEntity <em>Attribute Name Referenced Entity</em>}</li>
56
 
 * <li>{@link org.eclipse.wst.dtd.core.internal.emf.internal.impl.DTDAttributeImpl#getAttributeTypeReferencedEntity <em>Attribute Type Referenced Entity</em>}</li>
57
 
 * <li>{@link org.eclipse.wst.dtd.core.internal.emf.internal.impl.DTDAttributeImpl#getDTDElement <em>DTD Element</em>}</li>
 
49
 *   <li>{@link org.eclipse.wst.dtd.core.internal.emf.impl.DTDAttributeImpl#getComment <em>Comment</em>}</li>
 
50
 *   <li>{@link org.eclipse.wst.dtd.core.internal.emf.impl.DTDAttributeImpl#getDefaultKind <em>Default Kind</em>}</li>
 
51
 *   <li>{@link org.eclipse.wst.dtd.core.internal.emf.impl.DTDAttributeImpl#getDefaultValueString <em>Default Value String</em>}</li>
 
52
 *   <li>{@link org.eclipse.wst.dtd.core.internal.emf.impl.DTDAttributeImpl#getAttributeNameReferencedEntity <em>Attribute Name Referenced Entity</em>}</li>
 
53
 *   <li>{@link org.eclipse.wst.dtd.core.internal.emf.impl.DTDAttributeImpl#getAttributeTypeReferencedEntity <em>Attribute Type Referenced Entity</em>}</li>
 
54
 *   <li>{@link org.eclipse.wst.dtd.core.internal.emf.impl.DTDAttributeImpl#getDTDElement <em>DTD Element</em>}</li>
58
55
 * </ul>
59
56
 * </p>
60
 
 * 
 
57
 *
61
58
 * @generated
62
59
 */
63
60
public class DTDAttributeImpl extends EAttributeImpl implements DTDAttribute {
325
322
 
326
323
 
327
324
        /**
328
 
         * The default value of the '{@link #getComment() <em>Comment</em>}'
329
 
         * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
330
 
         * 
 
325
         * The default value of the '{@link #getComment() <em>Comment</em>}' attribute.
 
326
         * <!-- begin-user-doc --> <!-- end-user-doc -->
331
327
         * @see #getComment()
332
328
         * @generated
333
329
         * @ordered
335
331
        protected static final String COMMENT_EDEFAULT = null;
336
332
 
337
333
        /**
338
 
         * The cached value of the '{@link #getComment() <em>Comment</em>}'
339
 
         * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
340
 
         * 
 
334
         * The cached value of the '{@link #getComment() <em>Comment</em>}' attribute.
 
335
         * <!-- begin-user-doc --> <!-- end-user-doc -->
341
336
         * @see #getComment()
342
337
         * @generated
343
338
         * @ordered
345
340
        protected String comment = COMMENT_EDEFAULT;
346
341
 
347
342
        /**
348
 
         * The default value of the '{@link #getDefaultKind() <em>Default Kind</em>}'
349
 
         * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
350
 
         * 
 
343
         * The default value of the '{@link #getDefaultKind() <em>Default Kind</em>}' attribute.
 
344
         * <!-- begin-user-doc --> <!-- end-user-doc -->
351
345
         * @see #getDefaultKind()
352
346
         * @generated
353
347
         * @ordered
355
349
        protected static final DTDDefaultKind DEFAULT_KIND_EDEFAULT = DTDDefaultKind.IMPLIED_LITERAL;
356
350
 
357
351
        /**
358
 
         * The cached value of the '{@link #getDefaultKind() <em>Default Kind</em>}'
359
 
         * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
360
 
         * 
 
352
         * The cached value of the '{@link #getDefaultKind() <em>Default Kind</em>}' attribute.
 
353
         * <!-- begin-user-doc --> <!-- end-user-doc -->
361
354
         * @see #getDefaultKind()
362
355
         * @generated
363
356
         * @ordered
365
358
        protected DTDDefaultKind defaultKind = DEFAULT_KIND_EDEFAULT;
366
359
 
367
360
        /**
368
 
         * The default value of the '{@link #getDefaultValueString() <em>Default Value String</em>}'
369
 
         * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
370
 
         * 
 
361
         * The default value of the '{@link #getDefaultValueString() <em>Default Value String</em>}' attribute.
 
362
         * <!-- begin-user-doc --> <!-- end-user-doc -->
371
363
         * @see #getDefaultValueString()
372
364
         * @generated
373
365
         * @ordered
375
367
        protected static final String DEFAULT_VALUE_STRING_EDEFAULT = null;
376
368
 
377
369
        /**
378
 
         * The cached value of the '{@link #getDefaultValueString() <em>Default Value String</em>}'
379
 
         * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
380
 
         * 
 
370
         * The cached value of the '{@link #getDefaultValueString() <em>Default Value String</em>}' attribute.
 
371
         * <!-- begin-user-doc --> <!-- end-user-doc -->
381
372
         * @see #getDefaultValueString()
382
373
         * @generated
383
374
         * @ordered
385
376
        protected String defaultValueString = DEFAULT_VALUE_STRING_EDEFAULT;
386
377
 
387
378
        /**
388
 
         * The cached value of the '{@link #getAttributeNameReferencedEntity() <em>Attribute Name Referenced Entity</em>}'
389
 
         * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
390
 
         * 
 
379
         * The cached value of the '{@link #getAttributeNameReferencedEntity() <em>Attribute Name Referenced Entity</em>}' reference.
 
380
         * <!-- begin-user-doc --> <!-- end-user-doc -->
391
381
         * @see #getAttributeNameReferencedEntity()
392
382
         * @generated
393
383
         * @ordered
394
384
         */
395
 
        protected DTDEntity attributeNameReferencedEntity = null;
 
385
        protected DTDEntity attributeNameReferencedEntity;
396
386
 
397
387
        /**
398
 
         * The cached value of the '{@link #getAttributeTypeReferencedEntity() <em>Attribute Type Referenced Entity</em>}'
399
 
         * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
400
 
         * 
 
388
         * The cached value of the '{@link #getAttributeTypeReferencedEntity() <em>Attribute Type Referenced Entity</em>}' reference.
 
389
         * <!-- begin-user-doc --> <!-- end-user-doc -->
401
390
         * @see #getAttributeTypeReferencedEntity()
402
391
         * @generated
403
392
         * @ordered
404
393
         */
405
 
        protected DTDEntity attributeTypeReferencedEntity = null;
 
394
        protected DTDEntity attributeTypeReferencedEntity;
406
395
 
407
396
        /**
408
397
         * <!-- begin-user-doc --> <!-- end-user-doc -->
409
 
         * 
410
398
         * @generated
411
399
         */
412
400
        protected EClass eStaticClass() {
413
 
                return DTDPackage.eINSTANCE.getDTDAttribute();
 
401
                return DTDPackage.Literals.DTD_ATTRIBUTE;
414
402
        }
415
403
 
416
404
        /**
417
405
         * <!-- begin-user-doc --> <!-- end-user-doc -->
418
 
         * 
419
406
         * @generated
420
407
         */
421
408
        public String getComment() {
424
411
 
425
412
        /**
426
413
         * <!-- begin-user-doc --> <!-- end-user-doc -->
427
 
         * 
428
414
         * @generated
429
415
         */
430
416
        public void setComment(String newComment) {
436
422
 
437
423
        /**
438
424
         * <!-- begin-user-doc --> <!-- end-user-doc -->
439
 
         * 
440
425
         * @generated
441
426
         */
442
427
        public DTDDefaultKind getDefaultKind() {
445
430
 
446
431
        /**
447
432
         * <!-- begin-user-doc --> <!-- end-user-doc -->
448
 
         * 
449
433
         * @generated
450
434
         */
451
435
        public void setDefaultKind(DTDDefaultKind newDefaultKind) {
457
441
 
458
442
        /**
459
443
         * <!-- begin-user-doc --> <!-- end-user-doc -->
460
 
         * 
461
444
         * @generated
462
445
         */
463
446
        public String getDefaultValueString() {
466
449
 
467
450
        /**
468
451
         * <!-- begin-user-doc --> <!-- end-user-doc -->
469
 
         * 
470
452
         * @generated
471
453
         */
472
454
        public void setDefaultValueString(String newDefaultValueString) {
478
460
 
479
461
        /**
480
462
         * <!-- begin-user-doc --> <!-- end-user-doc -->
481
 
         * 
482
463
         * @generated
483
464
         */
484
465
        public DTDEntity getAttributeNameReferencedEntity() {
485
466
                if (attributeNameReferencedEntity != null && attributeNameReferencedEntity.eIsProxy()) {
486
 
                        DTDEntity oldAttributeNameReferencedEntity = attributeNameReferencedEntity;
487
 
                        attributeNameReferencedEntity = (DTDEntity) EcoreUtil.resolve(attributeNameReferencedEntity, this);
 
467
                        InternalEObject oldAttributeNameReferencedEntity = (InternalEObject)attributeNameReferencedEntity;
 
468
                        attributeNameReferencedEntity = (DTDEntity)eResolveProxy(oldAttributeNameReferencedEntity);
488
469
                        if (attributeNameReferencedEntity != oldAttributeNameReferencedEntity) {
489
470
                                if (eNotificationRequired())
490
471
                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_NAME_REFERENCED_ENTITY, oldAttributeNameReferencedEntity, attributeNameReferencedEntity));
495
476
 
496
477
        /**
497
478
         * <!-- begin-user-doc --> <!-- end-user-doc -->
498
 
         * 
499
479
         * @generated
500
480
         */
501
481
        public DTDEntity basicGetAttributeNameReferencedEntity() {
504
484
 
505
485
        /**
506
486
         * <!-- begin-user-doc --> <!-- end-user-doc -->
507
 
         * 
508
487
         * @generated
509
488
         */
510
489
        public NotificationChain basicSetAttributeNameReferencedEntity(DTDEntity newAttributeNameReferencedEntity, NotificationChain msgs) {
511
490
                DTDEntity oldAttributeNameReferencedEntity = attributeNameReferencedEntity;
512
491
                attributeNameReferencedEntity = newAttributeNameReferencedEntity;
513
492
                if (eNotificationRequired()) {
514
 
                        if (msgs == null)
515
 
                                msgs = new NotificationChainImpl(4);
516
 
                        msgs.add(new ENotificationImpl(this, Notification.SET, DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_NAME_REFERENCED_ENTITY, oldAttributeNameReferencedEntity, newAttributeNameReferencedEntity));
 
493
                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_NAME_REFERENCED_ENTITY, oldAttributeNameReferencedEntity, newAttributeNameReferencedEntity);
 
494
                        if (msgs == null) msgs = notification; else msgs.add(notification);
517
495
                }
518
496
                return msgs;
519
497
        }
520
498
 
521
499
        /**
522
500
         * <!-- begin-user-doc --> <!-- end-user-doc -->
523
 
         * 
524
501
         * @generated
525
502
         */
526
503
        public void setAttributeNameReferencedEntity(DTDEntity newAttributeNameReferencedEntity) {
527
504
                if (newAttributeNameReferencedEntity != attributeNameReferencedEntity) {
528
505
                        NotificationChain msgs = null;
529
506
                        if (attributeNameReferencedEntity != null)
530
 
                                msgs = ((InternalEObject) attributeNameReferencedEntity).eInverseRemove(this, DTDPackage.DTD_ENTITY__ATTRIBUTE_NAME_REFERENCE, DTDEntity.class, msgs);
 
507
                                msgs = ((InternalEObject)attributeNameReferencedEntity).eInverseRemove(this, DTDPackage.DTD_ENTITY__ATTRIBUTE_NAME_REFERENCE, DTDEntity.class, msgs);
531
508
                        if (newAttributeNameReferencedEntity != null)
532
 
                                msgs = ((InternalEObject) newAttributeNameReferencedEntity).eInverseAdd(this, DTDPackage.DTD_ENTITY__ATTRIBUTE_NAME_REFERENCE, DTDEntity.class, msgs);
 
509
                                msgs = ((InternalEObject)newAttributeNameReferencedEntity).eInverseAdd(this, DTDPackage.DTD_ENTITY__ATTRIBUTE_NAME_REFERENCE, DTDEntity.class, msgs);
533
510
                        msgs = basicSetAttributeNameReferencedEntity(newAttributeNameReferencedEntity, msgs);
534
 
                        if (msgs != null)
535
 
                                msgs.dispatch();
 
511
                        if (msgs != null) msgs.dispatch();
536
512
                }
537
513
                else if (eNotificationRequired())
538
514
                        eNotify(new ENotificationImpl(this, Notification.SET, DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_NAME_REFERENCED_ENTITY, newAttributeNameReferencedEntity, newAttributeNameReferencedEntity));
540
516
 
541
517
        /**
542
518
         * <!-- begin-user-doc --> <!-- end-user-doc -->
543
 
         * 
544
519
         * @generated
545
520
         */
546
521
        public DTDEntity getAttributeTypeReferencedEntity() {
547
522
                if (attributeTypeReferencedEntity != null && attributeTypeReferencedEntity.eIsProxy()) {
548
 
                        DTDEntity oldAttributeTypeReferencedEntity = attributeTypeReferencedEntity;
549
 
                        attributeTypeReferencedEntity = (DTDEntity) EcoreUtil.resolve(attributeTypeReferencedEntity, this);
 
523
                        InternalEObject oldAttributeTypeReferencedEntity = (InternalEObject)attributeTypeReferencedEntity;
 
524
                        attributeTypeReferencedEntity = (DTDEntity)eResolveProxy(oldAttributeTypeReferencedEntity);
550
525
                        if (attributeTypeReferencedEntity != oldAttributeTypeReferencedEntity) {
551
526
                                if (eNotificationRequired())
552
527
                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_TYPE_REFERENCED_ENTITY, oldAttributeTypeReferencedEntity, attributeTypeReferencedEntity));
557
532
 
558
533
        /**
559
534
         * <!-- begin-user-doc --> <!-- end-user-doc -->
560
 
         * 
561
535
         * @generated
562
536
         */
563
537
        public DTDEntity basicGetAttributeTypeReferencedEntity() {
566
540
 
567
541
        /**
568
542
         * <!-- begin-user-doc --> <!-- end-user-doc -->
569
 
         * 
570
543
         * @generated
571
544
         */
572
545
        public NotificationChain basicSetAttributeTypeReferencedEntity(DTDEntity newAttributeTypeReferencedEntity, NotificationChain msgs) {
573
546
                DTDEntity oldAttributeTypeReferencedEntity = attributeTypeReferencedEntity;
574
547
                attributeTypeReferencedEntity = newAttributeTypeReferencedEntity;
575
548
                if (eNotificationRequired()) {
576
 
                        if (msgs == null)
577
 
                                msgs = new NotificationChainImpl(4);
578
 
                        msgs.add(new ENotificationImpl(this, Notification.SET, DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_TYPE_REFERENCED_ENTITY, oldAttributeTypeReferencedEntity, newAttributeTypeReferencedEntity));
 
549
                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_TYPE_REFERENCED_ENTITY, oldAttributeTypeReferencedEntity, newAttributeTypeReferencedEntity);
 
550
                        if (msgs == null) msgs = notification; else msgs.add(notification);
579
551
                }
580
552
                return msgs;
581
553
        }
582
554
 
583
555
        /**
584
556
         * <!-- begin-user-doc --> <!-- end-user-doc -->
585
 
         * 
586
557
         * @generated
587
558
         */
588
559
        public void setAttributeTypeReferencedEntity(DTDEntity newAttributeTypeReferencedEntity) {
589
560
                if (newAttributeTypeReferencedEntity != attributeTypeReferencedEntity) {
590
561
                        NotificationChain msgs = null;
591
562
                        if (attributeTypeReferencedEntity != null)
592
 
                                msgs = ((InternalEObject) attributeTypeReferencedEntity).eInverseRemove(this, DTDPackage.DTD_ENTITY__ATTRIBUTE_TYPE_REFERENCE, DTDEntity.class, msgs);
 
563
                                msgs = ((InternalEObject)attributeTypeReferencedEntity).eInverseRemove(this, DTDPackage.DTD_ENTITY__ATTRIBUTE_TYPE_REFERENCE, DTDEntity.class, msgs);
593
564
                        if (newAttributeTypeReferencedEntity != null)
594
 
                                msgs = ((InternalEObject) newAttributeTypeReferencedEntity).eInverseAdd(this, DTDPackage.DTD_ENTITY__ATTRIBUTE_TYPE_REFERENCE, DTDEntity.class, msgs);
 
565
                                msgs = ((InternalEObject)newAttributeTypeReferencedEntity).eInverseAdd(this, DTDPackage.DTD_ENTITY__ATTRIBUTE_TYPE_REFERENCE, DTDEntity.class, msgs);
595
566
                        msgs = basicSetAttributeTypeReferencedEntity(newAttributeTypeReferencedEntity, msgs);
596
 
                        if (msgs != null)
597
 
                                msgs.dispatch();
 
567
                        if (msgs != null) msgs.dispatch();
598
568
                }
599
569
                else if (eNotificationRequired())
600
570
                        eNotify(new ENotificationImpl(this, Notification.SET, DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_TYPE_REFERENCED_ENTITY, newAttributeTypeReferencedEntity, newAttributeTypeReferencedEntity));
602
572
 
603
573
        /**
604
574
         * <!-- begin-user-doc --> <!-- end-user-doc -->
605
 
         * 
606
575
         * @generated
607
576
         */
608
577
        public DTDElement getDTDElement() {
609
 
                if (eContainerFeatureID() != DTDPackage.DTD_ATTRIBUTE__DTD_ELEMENT)
610
 
                        return null;
611
 
                return (DTDElement) eContainer;
 
578
                if (eContainerFeatureID() != DTDPackage.DTD_ATTRIBUTE__DTD_ELEMENT) return null;
 
579
                return (DTDElement)eContainer();
 
580
        }
 
581
 
 
582
        /**
 
583
         * <!-- begin-user-doc -->
 
584
         * <!-- end-user-doc -->
 
585
         * @generated
 
586
         */
 
587
        public NotificationChain basicSetDTDElement(DTDElement newDTDElement, NotificationChain msgs) {
 
588
                msgs = eBasicSetContainer((InternalEObject)newDTDElement, DTDPackage.DTD_ATTRIBUTE__DTD_ELEMENT, msgs);
 
589
                return msgs;
612
590
        }
613
591
 
614
592
        /**
615
593
         * <!-- begin-user-doc --> <!-- end-user-doc -->
616
 
         * 
617
594
         * @generated
618
595
         */
619
596
        public void setDTDElement(DTDElement newDTDElement) {
620
 
                if (newDTDElement != eContainer || (eContainerFeatureID() != DTDPackage.DTD_ATTRIBUTE__DTD_ELEMENT && newDTDElement != null)) {
 
597
                if (newDTDElement != eInternalContainer() || (eContainerFeatureID() != DTDPackage.DTD_ATTRIBUTE__DTD_ELEMENT && newDTDElement != null)) {
621
598
                        if (EcoreUtil.isAncestor(this, newDTDElement))
622
 
                                throw new IllegalArgumentException("Recursive containment not allowed for " + toString() + "."); //$NON-NLS-1$ //$NON-NLS-2$
 
599
                                throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
623
600
                        NotificationChain msgs = null;
624
 
                        if (eContainer != null)
 
601
                        if (eInternalContainer() != null)
625
602
                                msgs = eBasicRemoveFromContainer(msgs);
626
603
                        if (newDTDElement != null)
627
 
                                msgs = ((InternalEObject) newDTDElement).eInverseAdd(this, DTDPackage.DTD_ELEMENT__DTD_ATTRIBUTE, DTDElement.class, msgs);
628
 
                        msgs = eBasicSetContainer((InternalEObject) newDTDElement, DTDPackage.DTD_ATTRIBUTE__DTD_ELEMENT, msgs);
629
 
                        if (msgs != null)
630
 
                                msgs.dispatch();
 
604
                                msgs = ((InternalEObject)newDTDElement).eInverseAdd(this, DTDPackage.DTD_ELEMENT__DTD_ATTRIBUTE, DTDElement.class, msgs);
 
605
                        msgs = basicSetDTDElement(newDTDElement, msgs);
 
606
                        if (msgs != null) msgs.dispatch();
631
607
                }
632
608
                else if (eNotificationRequired())
633
609
                        eNotify(new ENotificationImpl(this, Notification.SET, DTDPackage.DTD_ATTRIBUTE__DTD_ELEMENT, newDTDElement, newDTDElement));
634
610
        }
635
611
 
636
612
        /**
637
 
         * <!-- begin-user-doc --> <!-- end-user-doc -->
638
 
         * 
639
 
         * @generated
640
 
         */
641
 
        public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
642
 
                if (featureID >= 0) {
643
 
                        switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
644
 
                                case DTDPackage.DTD_ATTRIBUTE__EANNOTATIONS :
645
 
                                        return ((InternalEList) getEAnnotations()).basicAdd(otherEnd, msgs);
646
 
                                case DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_NAME_REFERENCED_ENTITY :
647
 
                                        if (attributeNameReferencedEntity != null)
648
 
                                                msgs = ((InternalEObject) attributeNameReferencedEntity).eInverseRemove(this, DTDPackage.DTD_ENTITY__ATTRIBUTE_NAME_REFERENCE, DTDEntity.class, msgs);
649
 
                                        return basicSetAttributeNameReferencedEntity((DTDEntity) otherEnd, msgs);
650
 
                                case DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_TYPE_REFERENCED_ENTITY :
651
 
                                        if (attributeTypeReferencedEntity != null)
652
 
                                                msgs = ((InternalEObject) attributeTypeReferencedEntity).eInverseRemove(this, DTDPackage.DTD_ENTITY__ATTRIBUTE_TYPE_REFERENCE, DTDEntity.class, msgs);
653
 
                                        return basicSetAttributeTypeReferencedEntity((DTDEntity) otherEnd, msgs);
654
 
                                case DTDPackage.DTD_ATTRIBUTE__DTD_ELEMENT :
655
 
                                        if (eContainer != null)
656
 
                                                msgs = eBasicRemoveFromContainer(msgs);
657
 
                                        return eBasicSetContainer(otherEnd, DTDPackage.DTD_ATTRIBUTE__DTD_ELEMENT, msgs);
658
 
                                default :
659
 
                                        return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
660
 
                        }
661
 
                }
662
 
                if (eContainer != null)
663
 
                        msgs = eBasicRemoveFromContainer(msgs);
664
 
                return eBasicSetContainer(otherEnd, featureID, msgs);
665
 
        }
666
 
 
667
 
        /**
668
 
         * <!-- begin-user-doc --> <!-- end-user-doc -->
669
 
         * 
670
 
         * @generated
671
 
         */
672
 
        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
673
 
                if (featureID >= 0) {
674
 
                        switch (baseClass == null ? featureID : eDerivedStructuralFeatureID(featureID, baseClass)) {
675
 
                                case DTDPackage.DTD_ATTRIBUTE__EANNOTATIONS :
676
 
                                        return ((InternalEList) getEAnnotations()).basicRemove(otherEnd, msgs);
677
 
                                case DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_NAME_REFERENCED_ENTITY :
678
 
                                        return basicSetAttributeNameReferencedEntity(null, msgs);
679
 
                                case DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_TYPE_REFERENCED_ENTITY :
680
 
                                        return basicSetAttributeTypeReferencedEntity(null, msgs);
681
 
                                case DTDPackage.DTD_ATTRIBUTE__DTD_ELEMENT :
682
 
                                        return eBasicSetContainer(null, DTDPackage.DTD_ATTRIBUTE__DTD_ELEMENT, msgs);
683
 
                                default :
684
 
                                        return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
685
 
                        }
686
 
                }
687
 
                return eBasicSetContainer(null, featureID, msgs);
688
 
        }
689
 
 
690
 
        /**
691
 
         * <!-- begin-user-doc --> <!-- end-user-doc -->
692
 
         * 
693
 
         * @generated
694
 
         */
695
 
        public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
696
 
                if (eContainerFeatureID() >= 0) {
697
 
                        switch (eContainerFeatureID()) {
698
 
                                case DTDPackage.DTD_ATTRIBUTE__DTD_ELEMENT :
699
 
                                        return eContainer.eInverseRemove(this, DTDPackage.DTD_ELEMENT__DTD_ATTRIBUTE, DTDElement.class, msgs);
700
 
                                default :
701
 
                                        return eDynamicBasicRemoveFromContainer(msgs);
702
 
                        }
703
 
                }
704
 
                return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID(), null, msgs);
705
 
        }
706
 
 
707
 
        /**
708
 
         * <!-- begin-user-doc --> <!-- end-user-doc -->
709
 
         * 
710
 
         * @generated
711
 
         */
712
 
        public Object eGet(EStructuralFeature eFeature, boolean resolve) {
713
 
                switch (eDerivedStructuralFeatureID(eFeature.getFeatureID(), eFeature.getContainerClass())) {
714
 
                        case DTDPackage.DTD_ATTRIBUTE__EANNOTATIONS :
715
 
                                return getEAnnotations();
716
 
                        case DTDPackage.DTD_ATTRIBUTE__NAME :
717
 
                                return getName();
718
 
                        case DTDPackage.DTD_ATTRIBUTE__ETYPE :
719
 
                                if (resolve)
720
 
                                        return getEType();
721
 
                                return basicGetEType();
722
 
                        case DTDPackage.DTD_ATTRIBUTE__CHANGEABLE :
723
 
                                return isChangeable() ? Boolean.TRUE : Boolean.FALSE;
724
 
                        case DTDPackage.DTD_ATTRIBUTE__VOLATILE :
725
 
                                return isVolatile() ? Boolean.TRUE : Boolean.FALSE;
726
 
                        case DTDPackage.DTD_ATTRIBUTE__TRANSIENT :
727
 
                                return isTransient() ? Boolean.TRUE : Boolean.FALSE;
728
 
                        case DTDPackage.DTD_ATTRIBUTE__UNIQUE :
729
 
                                return isUnique() ? Boolean.TRUE : Boolean.FALSE;
730
 
                        case DTDPackage.DTD_ATTRIBUTE__DEFAULT_VALUE_LITERAL :
731
 
                                return getDefaultValueLiteral();
732
 
                        case DTDPackage.DTD_ATTRIBUTE__DEFAULT_VALUE :
733
 
                                return getDefaultValue();
734
 
                        case DTDPackage.DTD_ATTRIBUTE__LOWER_BOUND :
735
 
                                return new Integer(getLowerBound());
736
 
                        case DTDPackage.DTD_ATTRIBUTE__UPPER_BOUND :
737
 
                                return new Integer(getUpperBound());
738
 
                        case DTDPackage.DTD_ATTRIBUTE__MANY :
739
 
                                return isMany() ? Boolean.TRUE : Boolean.FALSE;
740
 
                        case DTDPackage.DTD_ATTRIBUTE__REQUIRED :
741
 
                                return isRequired() ? Boolean.TRUE : Boolean.FALSE;
742
 
                        case DTDPackage.DTD_ATTRIBUTE__ECONTAINING_CLASS :
743
 
                                return getEContainingClass();
744
 
                        case DTDPackage.DTD_ATTRIBUTE__UNSETTABLE :
745
 
                                return isUnsettable() ? Boolean.TRUE : Boolean.FALSE;
746
 
                        case DTDPackage.DTD_ATTRIBUTE__ID :
747
 
                                return isID() ? Boolean.TRUE : Boolean.FALSE;
748
 
                        case DTDPackage.DTD_ATTRIBUTE__EATTRIBUTE_TYPE :
749
 
                                if (resolve)
750
 
                                        return getEAttributeType();
751
 
                                return basicGetEAttributeType();
752
 
                        case DTDPackage.DTD_ATTRIBUTE__COMMENT :
 
613
         * <!-- begin-user-doc -->
 
614
         * <!-- end-user-doc -->
 
615
         * @generated
 
616
         */
 
617
        public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
 
618
                switch (featureID) {
 
619
                        case DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_NAME_REFERENCED_ENTITY:
 
620
                                if (attributeNameReferencedEntity != null)
 
621
                                        msgs = ((InternalEObject)attributeNameReferencedEntity).eInverseRemove(this, DTDPackage.DTD_ENTITY__ATTRIBUTE_NAME_REFERENCE, DTDEntity.class, msgs);
 
622
                                return basicSetAttributeNameReferencedEntity((DTDEntity)otherEnd, msgs);
 
623
                        case DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_TYPE_REFERENCED_ENTITY:
 
624
                                if (attributeTypeReferencedEntity != null)
 
625
                                        msgs = ((InternalEObject)attributeTypeReferencedEntity).eInverseRemove(this, DTDPackage.DTD_ENTITY__ATTRIBUTE_TYPE_REFERENCE, DTDEntity.class, msgs);
 
626
                                return basicSetAttributeTypeReferencedEntity((DTDEntity)otherEnd, msgs);
 
627
                        case DTDPackage.DTD_ATTRIBUTE__DTD_ELEMENT:
 
628
                                if (eInternalContainer() != null)
 
629
                                        msgs = eBasicRemoveFromContainer(msgs);
 
630
                                return basicSetDTDElement((DTDElement)otherEnd, msgs);
 
631
                }
 
632
                return super.eInverseAdd(otherEnd, featureID, msgs);
 
633
        }
 
634
 
 
635
        /**
 
636
         * <!-- begin-user-doc -->
 
637
         * <!-- end-user-doc -->
 
638
         * @generated
 
639
         */
 
640
        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
 
641
                switch (featureID) {
 
642
                        case DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_NAME_REFERENCED_ENTITY:
 
643
                                return basicSetAttributeNameReferencedEntity(null, msgs);
 
644
                        case DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_TYPE_REFERENCED_ENTITY:
 
645
                                return basicSetAttributeTypeReferencedEntity(null, msgs);
 
646
                        case DTDPackage.DTD_ATTRIBUTE__DTD_ELEMENT:
 
647
                                return basicSetDTDElement(null, msgs);
 
648
                }
 
649
                return super.eInverseRemove(otherEnd, featureID, msgs);
 
650
        }
 
651
 
 
652
        /**
 
653
         * <!-- begin-user-doc -->
 
654
         * <!-- end-user-doc -->
 
655
         * @generated
 
656
         */
 
657
        public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
 
658
                switch (eContainerFeatureID()) {
 
659
                        case DTDPackage.DTD_ATTRIBUTE__DTD_ELEMENT:
 
660
                                return eInternalContainer().eInverseRemove(this, DTDPackage.DTD_ELEMENT__DTD_ATTRIBUTE, DTDElement.class, msgs);
 
661
                }
 
662
                return super.eBasicRemoveFromContainerFeature(msgs);
 
663
        }
 
664
 
 
665
        /**
 
666
         * <!-- begin-user-doc -->
 
667
         * <!-- end-user-doc -->
 
668
         * @generated
 
669
         */
 
670
        public Object eGet(int featureID, boolean resolve, boolean coreType) {
 
671
                switch (featureID) {
 
672
                        case DTDPackage.DTD_ATTRIBUTE__COMMENT:
753
673
                                return getComment();
754
 
                        case DTDPackage.DTD_ATTRIBUTE__DEFAULT_KIND :
 
674
                        case DTDPackage.DTD_ATTRIBUTE__DEFAULT_KIND:
755
675
                                return getDefaultKind();
756
 
                        case DTDPackage.DTD_ATTRIBUTE__DEFAULT_VALUE_STRING :
 
676
                        case DTDPackage.DTD_ATTRIBUTE__DEFAULT_VALUE_STRING:
757
677
                                return getDefaultValueString();
758
 
                        case DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_NAME_REFERENCED_ENTITY :
759
 
                                if (resolve)
760
 
                                        return getAttributeNameReferencedEntity();
 
678
                        case DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_NAME_REFERENCED_ENTITY:
 
679
                                if (resolve) return getAttributeNameReferencedEntity();
761
680
                                return basicGetAttributeNameReferencedEntity();
762
 
                        case DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_TYPE_REFERENCED_ENTITY :
763
 
                                if (resolve)
764
 
                                        return getAttributeTypeReferencedEntity();
 
681
                        case DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_TYPE_REFERENCED_ENTITY:
 
682
                                if (resolve) return getAttributeTypeReferencedEntity();
765
683
                                return basicGetAttributeTypeReferencedEntity();
766
 
                        case DTDPackage.DTD_ATTRIBUTE__DTD_ELEMENT :
 
684
                        case DTDPackage.DTD_ATTRIBUTE__DTD_ELEMENT:
767
685
                                return getDTDElement();
768
 
                        case EcorePackage.ETYPED_ELEMENT__ORDERED:
769
 
                                return isOrdered() ? Boolean.TRUE : Boolean.FALSE;
770
 
                        case EcorePackage.EATTRIBUTE__DERIVED:
771
 
                                return isDerived() ? Boolean.TRUE : Boolean.FALSE;
772
 
                        case EcorePackage.ETYPED_ELEMENT__EGENERIC_TYPE:
773
 
                                return getEGenericType();
774
 
                }
775
 
                return eDynamicGet(eFeature, resolve);
776
 
        }
777
 
 
778
 
        /**
779
 
         * <!-- begin-user-doc --> <!-- end-user-doc -->
780
 
         * 
781
 
         * @generated
782
 
         */
783
 
        public void eSet(EStructuralFeature eFeature, Object newValue) {
784
 
                switch (eDerivedStructuralFeatureID(eFeature.getFeatureID(), eFeature.getContainerClass())) {
785
 
                        case DTDPackage.DTD_ATTRIBUTE__EANNOTATIONS :
786
 
                                getEAnnotations().clear();
787
 
                                getEAnnotations().addAll((Collection) newValue);
788
 
                                return;
789
 
                        case DTDPackage.DTD_ATTRIBUTE__NAME :
790
 
                                setName((String) newValue);
791
 
                                return;
792
 
                        case DTDPackage.DTD_ATTRIBUTE__ETYPE :
793
 
                                setEType((EClassifier) newValue);
794
 
                                return;
795
 
                        case DTDPackage.DTD_ATTRIBUTE__CHANGEABLE :
796
 
                                setChangeable(((Boolean) newValue).booleanValue());
797
 
                                return;
798
 
                        case DTDPackage.DTD_ATTRIBUTE__VOLATILE :
799
 
                                setVolatile(((Boolean) newValue).booleanValue());
800
 
                                return;
801
 
                        case DTDPackage.DTD_ATTRIBUTE__TRANSIENT :
802
 
                                setTransient(((Boolean) newValue).booleanValue());
803
 
                                return;
804
 
                        case DTDPackage.DTD_ATTRIBUTE__UNIQUE :
805
 
                                setUnique(((Boolean) newValue).booleanValue());
806
 
                                return;
807
 
                        case DTDPackage.DTD_ATTRIBUTE__DEFAULT_VALUE_LITERAL :
808
 
                                setDefaultValueLiteral((String) newValue);
809
 
                                return;
810
 
                        case DTDPackage.DTD_ATTRIBUTE__LOWER_BOUND :
811
 
                                setLowerBound(((Integer) newValue).intValue());
812
 
                                return;
813
 
                        case DTDPackage.DTD_ATTRIBUTE__UPPER_BOUND :
814
 
                                setUpperBound(((Integer) newValue).intValue());
815
 
                                return;
816
 
                        case DTDPackage.DTD_ATTRIBUTE__UNSETTABLE :
817
 
                                setUnsettable(((Boolean) newValue).booleanValue());
818
 
                                return;
819
 
                        case DTDPackage.DTD_ATTRIBUTE__ID :
820
 
                                setID(((Boolean) newValue).booleanValue());
821
 
                                return;
822
 
                        case DTDPackage.DTD_ATTRIBUTE__COMMENT :
823
 
                                setComment((String) newValue);
824
 
                                return;
825
 
                        case DTDPackage.DTD_ATTRIBUTE__DEFAULT_KIND :
826
 
                                setDefaultKind((DTDDefaultKind) newValue);
827
 
                                return;
828
 
                        case DTDPackage.DTD_ATTRIBUTE__DEFAULT_VALUE_STRING :
829
 
                                setDefaultValueString((String) newValue);
830
 
                                return;
831
 
                        case DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_NAME_REFERENCED_ENTITY :
832
 
                                setAttributeNameReferencedEntity((DTDEntity) newValue);
833
 
                                return;
834
 
                        case DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_TYPE_REFERENCED_ENTITY :
835
 
                                setAttributeTypeReferencedEntity((DTDEntity) newValue);
836
 
                                return;
837
 
                        case DTDPackage.DTD_ATTRIBUTE__DTD_ELEMENT :
838
 
                                setDTDElement((DTDElement) newValue);
839
 
                                return;
840
 
                }
841
 
                eDynamicSet(eFeature, newValue);
842
 
        }
843
 
 
844
 
        /**
845
 
         * <!-- begin-user-doc --> <!-- end-user-doc -->
846
 
         * 
847
 
         * @generated
848
 
         */
849
 
        public void eUnset(EStructuralFeature eFeature) {
850
 
                switch (eDerivedStructuralFeatureID(eFeature.getFeatureID(), eFeature.getContainerClass())) {
851
 
                        case DTDPackage.DTD_ATTRIBUTE__EANNOTATIONS :
852
 
                                getEAnnotations().clear();
853
 
                                return;
854
 
                        case DTDPackage.DTD_ATTRIBUTE__NAME :
855
 
                                setName(NAME_EDEFAULT);
856
 
                                return;
857
 
                        case DTDPackage.DTD_ATTRIBUTE__ETYPE :
858
 
                                setEType((EClassifier) null);
859
 
                                return;
860
 
                        case DTDPackage.DTD_ATTRIBUTE__CHANGEABLE :
861
 
                                setChangeable(CHANGEABLE_EDEFAULT);
862
 
                                return;
863
 
                        case DTDPackage.DTD_ATTRIBUTE__VOLATILE :
864
 
                                setVolatile(VOLATILE_EDEFAULT);
865
 
                                return;
866
 
                        case DTDPackage.DTD_ATTRIBUTE__TRANSIENT :
867
 
                                setTransient(TRANSIENT_EDEFAULT);
868
 
                                return;
869
 
                        case DTDPackage.DTD_ATTRIBUTE__UNIQUE :
870
 
                                setUnique(UNIQUE_EDEFAULT);
871
 
                                return;
872
 
                        case DTDPackage.DTD_ATTRIBUTE__DEFAULT_VALUE_LITERAL :
873
 
                                setDefaultValueLiteral(DEFAULT_VALUE_LITERAL_EDEFAULT);
874
 
                                return;
875
 
                        case DTDPackage.DTD_ATTRIBUTE__LOWER_BOUND :
876
 
                                setLowerBound(LOWER_BOUND_EDEFAULT);
877
 
                                return;
878
 
                        case DTDPackage.DTD_ATTRIBUTE__UPPER_BOUND :
879
 
                                setUpperBound(UPPER_BOUND_EDEFAULT);
880
 
                                return;
881
 
                        case DTDPackage.DTD_ATTRIBUTE__UNSETTABLE :
882
 
                                setUnsettable(UNSETTABLE_EDEFAULT);
883
 
                                return;
884
 
                        case DTDPackage.DTD_ATTRIBUTE__ID :
885
 
                                setID(ID_EDEFAULT);
886
 
                                return;
887
 
                        case DTDPackage.DTD_ATTRIBUTE__COMMENT :
 
686
                }
 
687
                return super.eGet(featureID, resolve, coreType);
 
688
        }
 
689
 
 
690
        /**
 
691
         * <!-- begin-user-doc -->
 
692
         * <!-- end-user-doc -->
 
693
         * @generated
 
694
         */
 
695
        public void eSet(int featureID, Object newValue) {
 
696
                switch (featureID) {
 
697
                        case DTDPackage.DTD_ATTRIBUTE__COMMENT:
 
698
                                setComment((String)newValue);
 
699
                                return;
 
700
                        case DTDPackage.DTD_ATTRIBUTE__DEFAULT_KIND:
 
701
                                setDefaultKind((DTDDefaultKind)newValue);
 
702
                                return;
 
703
                        case DTDPackage.DTD_ATTRIBUTE__DEFAULT_VALUE_STRING:
 
704
                                setDefaultValueString((String)newValue);
 
705
                                return;
 
706
                        case DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_NAME_REFERENCED_ENTITY:
 
707
                                setAttributeNameReferencedEntity((DTDEntity)newValue);
 
708
                                return;
 
709
                        case DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_TYPE_REFERENCED_ENTITY:
 
710
                                setAttributeTypeReferencedEntity((DTDEntity)newValue);
 
711
                                return;
 
712
                        case DTDPackage.DTD_ATTRIBUTE__DTD_ELEMENT:
 
713
                                setDTDElement((DTDElement)newValue);
 
714
                                return;
 
715
                }
 
716
                super.eSet(featureID, newValue);
 
717
        }
 
718
 
 
719
        /**
 
720
         * <!-- begin-user-doc -->
 
721
         * <!-- end-user-doc -->
 
722
         * @generated
 
723
         */
 
724
        public void eUnset(int featureID) {
 
725
                switch (featureID) {
 
726
                        case DTDPackage.DTD_ATTRIBUTE__COMMENT:
888
727
                                setComment(COMMENT_EDEFAULT);
889
728
                                return;
890
 
                        case DTDPackage.DTD_ATTRIBUTE__DEFAULT_KIND :
 
729
                        case DTDPackage.DTD_ATTRIBUTE__DEFAULT_KIND:
891
730
                                setDefaultKind(DEFAULT_KIND_EDEFAULT);
892
731
                                return;
893
 
                        case DTDPackage.DTD_ATTRIBUTE__DEFAULT_VALUE_STRING :
 
732
                        case DTDPackage.DTD_ATTRIBUTE__DEFAULT_VALUE_STRING:
894
733
                                setDefaultValueString(DEFAULT_VALUE_STRING_EDEFAULT);
895
734
                                return;
896
 
                        case DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_NAME_REFERENCED_ENTITY :
897
 
                                setAttributeNameReferencedEntity((DTDEntity) null);
898
 
                                return;
899
 
                        case DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_TYPE_REFERENCED_ENTITY :
900
 
                                setAttributeTypeReferencedEntity((DTDEntity) null);
901
 
                                return;
902
 
                        case DTDPackage.DTD_ATTRIBUTE__DTD_ELEMENT :
903
 
                                setDTDElement((DTDElement) null);
 
735
                        case DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_NAME_REFERENCED_ENTITY:
 
736
                                setAttributeNameReferencedEntity((DTDEntity)null);
 
737
                                return;
 
738
                        case DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_TYPE_REFERENCED_ENTITY:
 
739
                                setAttributeTypeReferencedEntity((DTDEntity)null);
 
740
                                return;
 
741
                        case DTDPackage.DTD_ATTRIBUTE__DTD_ELEMENT:
 
742
                                setDTDElement((DTDElement)null);
904
743
                                return;
905
744
                }
906
 
                eDynamicUnset(eFeature);
 
745
                super.eUnset(featureID);
907
746
        }
908
747
 
909
748
        /**
910
 
         * <!-- begin-user-doc --> <!-- end-user-doc -->
911
 
         * 
 
749
         * <!-- begin-user-doc -->
 
750
         * <!-- end-user-doc -->
912
751
         * @generated
913
752
         */
914
 
        public boolean eIsSet(EStructuralFeature eFeature) {
915
 
                switch (eDerivedStructuralFeatureID(eFeature.getFeatureID(), eFeature.getContainerClass())) {
916
 
                        case DTDPackage.DTD_ATTRIBUTE__EANNOTATIONS :
917
 
                                return eAnnotations != null && !getEAnnotations().isEmpty();
918
 
                        case DTDPackage.DTD_ATTRIBUTE__NAME :
919
 
                                return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
920
 
                        case DTDPackage.DTD_ATTRIBUTE__ETYPE :
921
 
                                return eType != null;
922
 
                        case DTDPackage.DTD_ATTRIBUTE__CHANGEABLE :
923
 
                                return ((eFlags & CHANGEABLE_EFLAG) != 0) != CHANGEABLE_EDEFAULT;
924
 
                        case DTDPackage.DTD_ATTRIBUTE__VOLATILE :
925
 
                                return ((eFlags & VOLATILE_EFLAG) != 0) != VOLATILE_EDEFAULT;
926
 
                        case DTDPackage.DTD_ATTRIBUTE__TRANSIENT :
927
 
                                return ((eFlags & TRANSIENT_EFLAG) != 0) != TRANSIENT_EDEFAULT;
928
 
                        case DTDPackage.DTD_ATTRIBUTE__UNIQUE :
929
 
                                return ((eFlags & UNIQUE_EFLAG) != 0) != UNIQUE_EDEFAULT;
930
 
                        case DTDPackage.DTD_ATTRIBUTE__DEFAULT_VALUE_LITERAL :
931
 
                                return DEFAULT_VALUE_LITERAL_EDEFAULT == null ? defaultValueLiteral != null : !DEFAULT_VALUE_LITERAL_EDEFAULT.equals(defaultValueLiteral);
932
 
                        case DTDPackage.DTD_ATTRIBUTE__DEFAULT_VALUE :
933
 
                                return getDefaultValue() != null;
934
 
                        case DTDPackage.DTD_ATTRIBUTE__LOWER_BOUND :
935
 
                                return lowerBound != LOWER_BOUND_EDEFAULT;
936
 
                        case DTDPackage.DTD_ATTRIBUTE__UPPER_BOUND :
937
 
                                return upperBound != UPPER_BOUND_EDEFAULT;
938
 
                        case DTDPackage.DTD_ATTRIBUTE__MANY :
939
 
                                return isMany() != false;
940
 
                        case DTDPackage.DTD_ATTRIBUTE__REQUIRED :
941
 
                                return isRequired() != false;
942
 
                        case DTDPackage.DTD_ATTRIBUTE__ECONTAINING_CLASS :
943
 
                                return getEContainingClass() != null;
944
 
                        case DTDPackage.DTD_ATTRIBUTE__UNSETTABLE :
945
 
                                return ((eFlags & UNSETTABLE_EFLAG) != 0) != UNSETTABLE_EDEFAULT;
946
 
                        case DTDPackage.DTD_ATTRIBUTE__ID :
947
 
                                return ((eFlags & ID_EFLAG) != 0) != ID_EDEFAULT;
948
 
                        case DTDPackage.DTD_ATTRIBUTE__EATTRIBUTE_TYPE :
949
 
                                return basicGetEAttributeType() != null;
950
 
                        case DTDPackage.DTD_ATTRIBUTE__COMMENT :
 
753
        public boolean eIsSet(int featureID) {
 
754
                switch (featureID) {
 
755
                        case DTDPackage.DTD_ATTRIBUTE__COMMENT:
951
756
                                return COMMENT_EDEFAULT == null ? comment != null : !COMMENT_EDEFAULT.equals(comment);
952
 
                        case DTDPackage.DTD_ATTRIBUTE__DEFAULT_KIND :
 
757
                        case DTDPackage.DTD_ATTRIBUTE__DEFAULT_KIND:
953
758
                                return defaultKind != DEFAULT_KIND_EDEFAULT;
954
 
                        case DTDPackage.DTD_ATTRIBUTE__DEFAULT_VALUE_STRING :
 
759
                        case DTDPackage.DTD_ATTRIBUTE__DEFAULT_VALUE_STRING:
955
760
                                return DEFAULT_VALUE_STRING_EDEFAULT == null ? defaultValueString != null : !DEFAULT_VALUE_STRING_EDEFAULT.equals(defaultValueString);
956
 
                        case DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_NAME_REFERENCED_ENTITY :
 
761
                        case DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_NAME_REFERENCED_ENTITY:
957
762
                                return attributeNameReferencedEntity != null;
958
 
                        case DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_TYPE_REFERENCED_ENTITY :
 
763
                        case DTDPackage.DTD_ATTRIBUTE__ATTRIBUTE_TYPE_REFERENCED_ENTITY:
959
764
                                return attributeTypeReferencedEntity != null;
960
 
                        case DTDPackage.DTD_ATTRIBUTE__DTD_ELEMENT :
 
765
                        case DTDPackage.DTD_ATTRIBUTE__DTD_ELEMENT:
961
766
                                return getDTDElement() != null;
962
 
                        case EcorePackage.ETYPED_ELEMENT__ORDERED:
963
 
                                return isOrdered();
964
 
                        case EcorePackage.EATTRIBUTE__DERIVED:
965
 
                                return isDerived();
966
767
                }
967
 
                return eDynamicIsSet(eFeature);
 
768
                return super.eIsSet(featureID);
968
769
        }
969
770
 
970
771
        /**
971
772
         * <!-- begin-user-doc --> <!-- end-user-doc -->
972
 
         * 
973
773
         * @generated
974
774
         */
975
775
        public String toString() {
976
 
                if (eIsProxy())
977
 
                        return super.toString();
 
776
                if (eIsProxy()) return super.toString();
978
777
 
979
778
                StringBuffer result = new StringBuffer(super.toString());
980
 
                result.append(" (comment: "); //$NON-NLS-1$
 
779
                result.append(" (comment: ");
981
780
                result.append(comment);
982
 
                result.append(", defaultKind: "); //$NON-NLS-1$
 
781
                result.append(", defaultKind: ");
983
782
                result.append(defaultKind);
984
 
                result.append(", defaultValueString: "); //$NON-NLS-1$
 
783
                result.append(", defaultValueString: ");
985
784
                result.append(defaultValueString);
986
785
                result.append(')');
987
786
                return result.toString();