Skip to main content
summaryrefslogtreecommitdiffstats
blob: 2b19c9871bd509735174515457950bc9f9b94371 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
/***************************************************************************************************
 * Copyright (c) 2005, 2006 IBM Corporation and others. 
 * All rights reserved. This program and the accompanying materials 
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors: 
 *   IBM Corporation - initial API and implementation
 *   Oracle Corporation - revision
 **************************************************************************************************/
package org.eclipse.jst.jsf.facesconfig.emf.impl;

import java.util.Collection;

import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.EObjectResolvingEList;
import org.eclipse.emf.ecore.util.InternalEList;
import org.eclipse.jst.jsf.facesconfig.emf.ApplicationType;
import org.eclipse.jst.jsf.facesconfig.emf.ComponentType;
import org.eclipse.jst.jsf.facesconfig.emf.ConverterType;
import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigExtensionType;
import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage;
import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigType;
import org.eclipse.jst.jsf.facesconfig.emf.FactoryType;
import org.eclipse.jst.jsf.facesconfig.emf.LifecycleType;
import org.eclipse.jst.jsf.facesconfig.emf.ManagedBeanType;
import org.eclipse.jst.jsf.facesconfig.emf.NavigationRuleType;
import org.eclipse.jst.jsf.facesconfig.emf.ReferencedBeanType;
import org.eclipse.jst.jsf.facesconfig.emf.RenderKitType;
import org.eclipse.jst.jsf.facesconfig.emf.ValidatorType;


/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Type</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link org.eclipse.jst.jsf.facesconfig.emf.impl.FacesConfigTypeImpl#getApplication <em>Application</em>}</li>
 *   <li>{@link org.eclipse.jst.jsf.facesconfig.emf.impl.FacesConfigTypeImpl#getFactory <em>Factory</em>}</li>
 *   <li>{@link org.eclipse.jst.jsf.facesconfig.emf.impl.FacesConfigTypeImpl#getComponent <em>Component</em>}</li>
 *   <li>{@link org.eclipse.jst.jsf.facesconfig.emf.impl.FacesConfigTypeImpl#getConverter <em>Converter</em>}</li>
 *   <li>{@link org.eclipse.jst.jsf.facesconfig.emf.impl.FacesConfigTypeImpl#getManagedBean <em>Managed Bean</em>}</li>
 *   <li>{@link org.eclipse.jst.jsf.facesconfig.emf.impl.FacesConfigTypeImpl#getNavigationRule <em>Navigation Rule</em>}</li>
 *   <li>{@link org.eclipse.jst.jsf.facesconfig.emf.impl.FacesConfigTypeImpl#getReferencedBean <em>Referenced Bean</em>}</li>
 *   <li>{@link org.eclipse.jst.jsf.facesconfig.emf.impl.FacesConfigTypeImpl#getRenderKit <em>Render Kit</em>}</li>
 *   <li>{@link org.eclipse.jst.jsf.facesconfig.emf.impl.FacesConfigTypeImpl#getLifecycle <em>Lifecycle</em>}</li>
 *   <li>{@link org.eclipse.jst.jsf.facesconfig.emf.impl.FacesConfigTypeImpl#getValidator <em>Validator</em>}</li>
 *   <li>{@link org.eclipse.jst.jsf.facesconfig.emf.impl.FacesConfigTypeImpl#getFacesConfigExtension <em>Faces Config Extension</em>}</li>
 *   <li>{@link org.eclipse.jst.jsf.facesconfig.emf.impl.FacesConfigTypeImpl#getXmlns <em>Xmlns</em>}</li>
 *   <li>{@link org.eclipse.jst.jsf.facesconfig.emf.impl.FacesConfigTypeImpl#getId <em>Id</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class FacesConfigTypeImpl extends EObjectImpl implements FacesConfigType {
    /**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public static final String copyright = "Copyright (c) 2005, 2006 IBM Corporation and others";

    /**
     * The cached value of the '{@link #getApplication() <em>Application</em>}' containment reference list.
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @see #getApplication()
     * @generated
     * @ordered
     */
	protected EList application = null;

    /**
     * The cached value of the '{@link #getFactory() <em>Factory</em>}' containment reference list.
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @see #getFactory()
     * @generated
     * @ordered
     */
	protected EList factory = null;

    /**
     * The cached value of the '{@link #getComponent() <em>Component</em>}' containment reference list.
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @see #getComponent()
     * @generated
     * @ordered
     */
	protected EList component = null;

    /**
     * The cached value of the '{@link #getConverter() <em>Converter</em>}' containment reference list.
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @see #getConverter()
     * @generated
     * @ordered
     */
	protected EList converter = null;

    /**
     * The cached value of the '{@link #getManagedBean() <em>Managed Bean</em>}' containment reference list.
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @see #getManagedBean()
     * @generated
     * @ordered
     */
	protected EList managedBean = null;

    /**
     * The cached value of the '{@link #getNavigationRule() <em>Navigation Rule</em>}' containment reference list.
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @see #getNavigationRule()
     * @generated
     * @ordered
     */
	protected EList navigationRule = null;

    /**
     * The cached value of the '{@link #getReferencedBean() <em>Referenced Bean</em>}' containment reference list.
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @see #getReferencedBean()
     * @generated
     * @ordered
     */
	protected EList referencedBean = null;

    /**
     * The cached value of the '{@link #getRenderKit() <em>Render Kit</em>}' containment reference list.
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @see #getRenderKit()
     * @generated
     * @ordered
     */
	protected EList renderKit = null;

    /**
     * The cached value of the '{@link #getLifecycle() <em>Lifecycle</em>}' containment reference list.
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @see #getLifecycle()
     * @generated
     * @ordered
     */
	protected EList lifecycle = null;

    /**
     * The cached value of the '{@link #getValidator() <em>Validator</em>}' containment reference list.
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @see #getValidator()
     * @generated
     * @ordered
     */
	protected EList validator = null;

    /**
     * The cached value of the '{@link #getFacesConfigExtension() <em>Faces Config Extension</em>}' reference list.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getFacesConfigExtension()
     * @generated
     * @ordered
     */
    protected EList facesConfigExtension = null;

    /**
     * The default value of the '{@link #getXmlns() <em>Xmlns</em>}' attribute.
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @see #getXmlns()
     * @generated
     * @ordered
     */
	protected static final String XMLNS_EDEFAULT = "http://java.sun.com/JSF/Configuration";

    /**
     * The cached value of the '{@link #getXmlns() <em>Xmlns</em>}' attribute.
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @see #getXmlns()
     * @generated
     * @ordered
     */
	protected String xmlns = XMLNS_EDEFAULT;

    /**
     * This is true if the Xmlns attribute has been set.
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     * @ordered
     */
	protected boolean xmlnsESet = false;

    /**
     * The default value of the '{@link #getId() <em>Id</em>}' attribute.
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @see #getId()
     * @generated
     * @ordered
     */
	protected static final String ID_EDEFAULT = null;

    /**
     * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @see #getId()
     * @generated
     * @ordered
     */
	protected String id = ID_EDEFAULT;

    /**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	protected FacesConfigTypeImpl() {
        super();
    }

    /**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	protected EClass eStaticClass() {
        return FacesConfigPackage.Literals.FACES_CONFIG_TYPE;
    }

    /**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public EList getApplication() {
        if (application == null) {
            application = new EObjectContainmentEList(ApplicationType.class, this, FacesConfigPackage.FACES_CONFIG_TYPE__APPLICATION);
        }
        return application;
    }

    /**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public EList getFactory() {
        if (factory == null) {
            factory = new EObjectContainmentEList(FactoryType.class, this, FacesConfigPackage.FACES_CONFIG_TYPE__FACTORY);
        }
        return factory;
    }

    /**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public EList getComponent() {
        if (component == null) {
            component = new EObjectContainmentEList(ComponentType.class, this, FacesConfigPackage.FACES_CONFIG_TYPE__COMPONENT);
        }
        return component;
    }

    /**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public EList getConverter() {
        if (converter == null) {
            converter = new EObjectContainmentEList(ConverterType.class, this, FacesConfigPackage.FACES_CONFIG_TYPE__CONVERTER);
        }
        return converter;
    }

    /**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public EList getManagedBean() {
        if (managedBean == null) {
            managedBean = new EObjectContainmentEList(ManagedBeanType.class, this, FacesConfigPackage.FACES_CONFIG_TYPE__MANAGED_BEAN);
        }
        return managedBean;
    }

    /**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public EList getNavigationRule() {
        if (navigationRule == null) {
            navigationRule = new EObjectContainmentEList(NavigationRuleType.class, this, FacesConfigPackage.FACES_CONFIG_TYPE__NAVIGATION_RULE);
        }
        return navigationRule;
    }

    /**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public EList getReferencedBean() {
        if (referencedBean == null) {
            referencedBean = new EObjectContainmentEList(ReferencedBeanType.class, this, FacesConfigPackage.FACES_CONFIG_TYPE__REFERENCED_BEAN);
        }
        return referencedBean;
    }

    /**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public EList getRenderKit() {
        if (renderKit == null) {
            renderKit = new EObjectContainmentEList(RenderKitType.class, this, FacesConfigPackage.FACES_CONFIG_TYPE__RENDER_KIT);
        }
        return renderKit;
    }

    /**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public EList getLifecycle() {
        if (lifecycle == null) {
            lifecycle = new EObjectContainmentEList(LifecycleType.class, this, FacesConfigPackage.FACES_CONFIG_TYPE__LIFECYCLE);
        }
        return lifecycle;
    }

    /**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public EList getValidator() {
        if (validator == null) {
            validator = new EObjectContainmentEList(ValidatorType.class, this, FacesConfigPackage.FACES_CONFIG_TYPE__VALIDATOR);
        }
        return validator;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public EList getFacesConfigExtension() {
        if (facesConfigExtension == null) {
            facesConfigExtension = new EObjectResolvingEList(FacesConfigExtensionType.class, this, FacesConfigPackage.FACES_CONFIG_TYPE__FACES_CONFIG_EXTENSION);
        }
        return facesConfigExtension;
    }

    /**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public String getXmlns() {
        return xmlns;
    }

    /**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public void setXmlns(String newXmlns) {
        String oldXmlns = xmlns;
        xmlns = newXmlns;
        boolean oldXmlnsESet = xmlnsESet;
        xmlnsESet = true;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, FacesConfigPackage.FACES_CONFIG_TYPE__XMLNS, oldXmlns, xmlns, !oldXmlnsESet));
    }

    /**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public void unsetXmlns() {
        String oldXmlns = xmlns;
        boolean oldXmlnsESet = xmlnsESet;
        xmlns = XMLNS_EDEFAULT;
        xmlnsESet = false;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.UNSET, FacesConfigPackage.FACES_CONFIG_TYPE__XMLNS, oldXmlns, XMLNS_EDEFAULT, oldXmlnsESet));
    }

    /**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public boolean isSetXmlns() {
        return xmlnsESet;
    }

    /**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public String getId() {
        return id;
    }

    /**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public void setId(String newId) {
        String oldId = id;
        id = newId;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, FacesConfigPackage.FACES_CONFIG_TYPE__ID, oldId, id));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
        switch (featureID) {
            case FacesConfigPackage.FACES_CONFIG_TYPE__APPLICATION:
                return ((InternalEList)getApplication()).basicRemove(otherEnd, msgs);
            case FacesConfigPackage.FACES_CONFIG_TYPE__FACTORY:
                return ((InternalEList)getFactory()).basicRemove(otherEnd, msgs);
            case FacesConfigPackage.FACES_CONFIG_TYPE__COMPONENT:
                return ((InternalEList)getComponent()).basicRemove(otherEnd, msgs);
            case FacesConfigPackage.FACES_CONFIG_TYPE__CONVERTER:
                return ((InternalEList)getConverter()).basicRemove(otherEnd, msgs);
            case FacesConfigPackage.FACES_CONFIG_TYPE__MANAGED_BEAN:
                return ((InternalEList)getManagedBean()).basicRemove(otherEnd, msgs);
            case FacesConfigPackage.FACES_CONFIG_TYPE__NAVIGATION_RULE:
                return ((InternalEList)getNavigationRule()).basicRemove(otherEnd, msgs);
            case FacesConfigPackage.FACES_CONFIG_TYPE__REFERENCED_BEAN:
                return ((InternalEList)getReferencedBean()).basicRemove(otherEnd, msgs);
            case FacesConfigPackage.FACES_CONFIG_TYPE__RENDER_KIT:
                return ((InternalEList)getRenderKit()).basicRemove(otherEnd, msgs);
            case FacesConfigPackage.FACES_CONFIG_TYPE__LIFECYCLE:
                return ((InternalEList)getLifecycle()).basicRemove(otherEnd, msgs);
            case FacesConfigPackage.FACES_CONFIG_TYPE__VALIDATOR:
                return ((InternalEList)getValidator()).basicRemove(otherEnd, msgs);
        }
        return super.eInverseRemove(otherEnd, featureID, msgs);
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public Object eGet(int featureID, boolean resolve, boolean coreType) {
        switch (featureID) {
            case FacesConfigPackage.FACES_CONFIG_TYPE__APPLICATION:
                return getApplication();
            case FacesConfigPackage.FACES_CONFIG_TYPE__FACTORY:
                return getFactory();
            case FacesConfigPackage.FACES_CONFIG_TYPE__COMPONENT:
                return getComponent();
            case FacesConfigPackage.FACES_CONFIG_TYPE__CONVERTER:
                return getConverter();
            case FacesConfigPackage.FACES_CONFIG_TYPE__MANAGED_BEAN:
                return getManagedBean();
            case FacesConfigPackage.FACES_CONFIG_TYPE__NAVIGATION_RULE:
                return getNavigationRule();
            case FacesConfigPackage.FACES_CONFIG_TYPE__REFERENCED_BEAN:
                return getReferencedBean();
            case FacesConfigPackage.FACES_CONFIG_TYPE__RENDER_KIT:
                return getRenderKit();
            case FacesConfigPackage.FACES_CONFIG_TYPE__LIFECYCLE:
                return getLifecycle();
            case FacesConfigPackage.FACES_CONFIG_TYPE__VALIDATOR:
                return getValidator();
            case FacesConfigPackage.FACES_CONFIG_TYPE__FACES_CONFIG_EXTENSION:
                return getFacesConfigExtension();
            case FacesConfigPackage.FACES_CONFIG_TYPE__XMLNS:
                return getXmlns();
            case FacesConfigPackage.FACES_CONFIG_TYPE__ID:
                return getId();
        }
        return super.eGet(featureID, resolve, coreType);
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void eSet(int featureID, Object newValue) {
        switch (featureID) {
            case FacesConfigPackage.FACES_CONFIG_TYPE__APPLICATION:
                getApplication().clear();
                getApplication().addAll((Collection)newValue);
                return;
            case FacesConfigPackage.FACES_CONFIG_TYPE__FACTORY:
                getFactory().clear();
                getFactory().addAll((Collection)newValue);
                return;
            case FacesConfigPackage.FACES_CONFIG_TYPE__COMPONENT:
                getComponent().clear();
                getComponent().addAll((Collection)newValue);
                return;
            case FacesConfigPackage.FACES_CONFIG_TYPE__CONVERTER:
                getConverter().clear();
                getConverter().addAll((Collection)newValue);
                return;
            case FacesConfigPackage.FACES_CONFIG_TYPE__MANAGED_BEAN:
                getManagedBean().clear();
                getManagedBean().addAll((Collection)newValue);
                return;
            case FacesConfigPackage.FACES_CONFIG_TYPE__NAVIGATION_RULE:
                getNavigationRule().clear();
                getNavigationRule().addAll((Collection)newValue);
                return;
            case FacesConfigPackage.FACES_CONFIG_TYPE__REFERENCED_BEAN:
                getReferencedBean().clear();
                getReferencedBean().addAll((Collection)newValue);
                return;
            case FacesConfigPackage.FACES_CONFIG_TYPE__RENDER_KIT:
                getRenderKit().clear();
                getRenderKit().addAll((Collection)newValue);
                return;
            case FacesConfigPackage.FACES_CONFIG_TYPE__LIFECYCLE:
                getLifecycle().clear();
                getLifecycle().addAll((Collection)newValue);
                return;
            case FacesConfigPackage.FACES_CONFIG_TYPE__VALIDATOR:
                getValidator().clear();
                getValidator().addAll((Collection)newValue);
                return;
            case FacesConfigPackage.FACES_CONFIG_TYPE__FACES_CONFIG_EXTENSION:
                getFacesConfigExtension().clear();
                getFacesConfigExtension().addAll((Collection)newValue);
                return;
            case FacesConfigPackage.FACES_CONFIG_TYPE__XMLNS:
                setXmlns((String)newValue);
                return;
            case FacesConfigPackage.FACES_CONFIG_TYPE__ID:
                setId((String)newValue);
                return;
        }
        super.eSet(featureID, newValue);
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void eUnset(int featureID) {
        switch (featureID) {
            case FacesConfigPackage.FACES_CONFIG_TYPE__APPLICATION:
                getApplication().clear();
                return;
            case FacesConfigPackage.FACES_CONFIG_TYPE__FACTORY:
                getFactory().clear();
                return;
            case FacesConfigPackage.FACES_CONFIG_TYPE__COMPONENT:
                getComponent().clear();
                return;
            case FacesConfigPackage.FACES_CONFIG_TYPE__CONVERTER:
                getConverter().clear();
                return;
            case FacesConfigPackage.FACES_CONFIG_TYPE__MANAGED_BEAN:
                getManagedBean().clear();
                return;
            case FacesConfigPackage.FACES_CONFIG_TYPE__NAVIGATION_RULE:
                getNavigationRule().clear();
                return;
            case FacesConfigPackage.FACES_CONFIG_TYPE__REFERENCED_BEAN:
                getReferencedBean().clear();
                return;
            case FacesConfigPackage.FACES_CONFIG_TYPE__RENDER_KIT:
                getRenderKit().clear();
                return;
            case FacesConfigPackage.FACES_CONFIG_TYPE__LIFECYCLE:
                getLifecycle().clear();
                return;
            case FacesConfigPackage.FACES_CONFIG_TYPE__VALIDATOR:
                getValidator().clear();
                return;
            case FacesConfigPackage.FACES_CONFIG_TYPE__FACES_CONFIG_EXTENSION:
                getFacesConfigExtension().clear();
                return;
            case FacesConfigPackage.FACES_CONFIG_TYPE__XMLNS:
                unsetXmlns();
                return;
            case FacesConfigPackage.FACES_CONFIG_TYPE__ID:
                setId(ID_EDEFAULT);
                return;
        }
        super.eUnset(featureID);
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public boolean eIsSet(int featureID) {
        switch (featureID) {
            case FacesConfigPackage.FACES_CONFIG_TYPE__APPLICATION:
                return application != null && !application.isEmpty();
            case FacesConfigPackage.FACES_CONFIG_TYPE__FACTORY:
                return factory != null && !factory.isEmpty();
            case FacesConfigPackage.FACES_CONFIG_TYPE__COMPONENT:
                return component != null && !component.isEmpty();
            case FacesConfigPackage.FACES_CONFIG_TYPE__CONVERTER:
                return converter != null && !converter.isEmpty();
            case FacesConfigPackage.FACES_CONFIG_TYPE__MANAGED_BEAN:
                return managedBean != null && !managedBean.isEmpty();
            case FacesConfigPackage.FACES_CONFIG_TYPE__NAVIGATION_RULE:
                return navigationRule != null && !navigationRule.isEmpty();
            case FacesConfigPackage.FACES_CONFIG_TYPE__REFERENCED_BEAN:
                return referencedBean != null && !referencedBean.isEmpty();
            case FacesConfigPackage.FACES_CONFIG_TYPE__RENDER_KIT:
                return renderKit != null && !renderKit.isEmpty();
            case FacesConfigPackage.FACES_CONFIG_TYPE__LIFECYCLE:
                return lifecycle != null && !lifecycle.isEmpty();
            case FacesConfigPackage.FACES_CONFIG_TYPE__VALIDATOR:
                return validator != null && !validator.isEmpty();
            case FacesConfigPackage.FACES_CONFIG_TYPE__FACES_CONFIG_EXTENSION:
                return facesConfigExtension != null && !facesConfigExtension.isEmpty();
            case FacesConfigPackage.FACES_CONFIG_TYPE__XMLNS:
                return isSetXmlns();
            case FacesConfigPackage.FACES_CONFIG_TYPE__ID:
                return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
        }
        return super.eIsSet(featureID);
    }

    /**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public String toString() {
        if (eIsProxy()) return super.toString();

        StringBuffer result = new StringBuffer(super.toString());
        result.append(" (xmlns: ");
        if (xmlnsESet) result.append(xmlns); else result.append("<unset>");
        result.append(", id: ");
        result.append(id);
        result.append(')');
        return result.toString();
    }

} //FacesConfigTypeImpl

Back to the top