EMMA Coverage Report (generated Thu Jan 20 11:39:44 EST 2011)
[all classes][com.hammurapi.eventbus.snapshot.impl]

COVERAGE SUMMARY FOR SOURCE FILE [PredicateNodeImpl.java]

nameclass, %method, %block, %line, %
PredicateNodeImpl.java100% (1/1)72%  (21/29)38%  (280/741)41%  (74.3/180)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PredicateNodeImpl100% (1/1)72%  (21/29)38%  (280/741)41%  (74.3/180)
eBasicRemoveFromContainerFeature (NotificationChain): NotificationChain 0%   (0/1)0%   (0/15)0%   (0/3)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/18)0%   (0/4)
eSet (int, Object): void 0%   (0/1)0%   (0/78)0%   (0/27)
eUnset (int): void 0%   (0/1)0%   (0/46)0%   (0/23)
getFalseOutputs (): EList 0%   (0/1)0%   (0/14)0%   (0/3)
getSnapshot (): Snapshot 0%   (0/1)0%   (0/10)0%   (0/2)
setSnapshot (Snapshot): void 0%   (0/1)0%   (0/69)0%   (0/13)
toString (): String 0%   (0/1)0%   (0/55)0%   (0/12)
basicSetPredicate (Predicate, NotificationChain): NotificationChain 100% (1/1)38%  (11/29)67%  (4/6)
setDetails (String): void 100% (1/1)48%  (10/21)80%  (4/5)
setId (String): void 100% (1/1)48%  (10/21)80%  (4/5)
setIsRoot (boolean): void 100% (1/1)48%  (10/21)80%  (4/5)
setName (String): void 100% (1/1)48%  (10/21)80%  (4/5)
setPredicate (Predicate): void 100% (1/1)52%  (27/52)70%  (7.7/11)
eInverseAdd (InternalEObject, int, NotificationChain): NotificationChain 100% (1/1)52%  (11/21)60%  (3/5)
eIsSet (int): boolean 100% (1/1)61%  (74/121)63%  (7.6/12)
eGet (int, boolean, boolean): Object 100% (1/1)69%  (27/39)75%  (9/12)
<static initializer> 100% (1/1)100% (7/7)100% (4/4)
PredicateNodeImpl (): void 100% (1/1)100% (15/15)100% (6/6)
basicSetSnapshot (Snapshot, NotificationChain): NotificationChain 100% (1/1)100% (9/9)100% (2/2)
eStaticClass (): EClass 100% (1/1)100% (2/2)100% (1/1)
getDetails (): String 100% (1/1)100% (3/3)100% (1/1)
getFalseChildren (): EList 100% (1/1)100% (14/14)100% (3/3)
getId (): String 100% (1/1)100% (3/3)100% (1/1)
getName (): String 100% (1/1)100% (3/3)100% (1/1)
getPredicate (): Predicate 100% (1/1)100% (3/3)100% (1/1)
getTrueChildren (): EList 100% (1/1)100% (14/14)100% (3/3)
getTrueOutputs (): EList 100% (1/1)100% (14/14)100% (3/3)
isIsRoot (): boolean 100% (1/1)100% (3/3)100% (1/1)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package com.hammurapi.eventbus.snapshot.impl;
8 
9import com.hammurapi.eventbus.snapshot.Predicate;
10import com.hammurapi.eventbus.snapshot.PredicateNode;
11import com.hammurapi.eventbus.snapshot.PredicateNodeOutput;
12import com.hammurapi.eventbus.snapshot.Snapshot;
13import com.hammurapi.eventbus.snapshot.SnapshotPackage;
14 
15import java.util.Collection;
16 
17import org.eclipse.emf.common.notify.Notification;
18 
19import org.eclipse.emf.common.notify.NotificationChain;
20import org.eclipse.emf.common.util.EList;
21 
22import org.eclipse.emf.ecore.EClass;
23 
24import org.eclipse.emf.ecore.InternalEObject;
25import org.eclipse.emf.ecore.impl.ENotificationImpl;
26import org.eclipse.emf.ecore.impl.EObjectImpl;
27 
28import org.eclipse.emf.ecore.util.EObjectResolvingEList;
29import org.eclipse.emf.ecore.util.EcoreUtil;
30 
31/**
32 * <!-- begin-user-doc -->
33 * An implementation of the model object '<em><b>Predicate Node</b></em>'.
34 * <!-- end-user-doc -->
35 * <p>
36 * The following features are implemented:
37 * <ul>
38 *   <li>{@link com.hammurapi.eventbus.snapshot.impl.PredicateNodeImpl#getId <em>Id</em>}</li>
39 *   <li>{@link com.hammurapi.eventbus.snapshot.impl.PredicateNodeImpl#getName <em>Name</em>}</li>
40 *   <li>{@link com.hammurapi.eventbus.snapshot.impl.PredicateNodeImpl#getDetails <em>Details</em>}</li>
41 *   <li>{@link com.hammurapi.eventbus.snapshot.impl.PredicateNodeImpl#getSnapshot <em>Snapshot</em>}</li>
42 *   <li>{@link com.hammurapi.eventbus.snapshot.impl.PredicateNodeImpl#getTrueOutputs <em>True Outputs</em>}</li>
43 *   <li>{@link com.hammurapi.eventbus.snapshot.impl.PredicateNodeImpl#getFalseOutputs <em>False Outputs</em>}</li>
44 *   <li>{@link com.hammurapi.eventbus.snapshot.impl.PredicateNodeImpl#getTrueChildren <em>True Children</em>}</li>
45 *   <li>{@link com.hammurapi.eventbus.snapshot.impl.PredicateNodeImpl#getFalseChildren <em>False Children</em>}</li>
46 *   <li>{@link com.hammurapi.eventbus.snapshot.impl.PredicateNodeImpl#isIsRoot <em>Is Root</em>}</li>
47 *   <li>{@link com.hammurapi.eventbus.snapshot.impl.PredicateNodeImpl#getPredicate <em>Predicate</em>}</li>
48 * </ul>
49 * </p>
50 *
51 * @generated
52 */
53public class PredicateNodeImpl extends EObjectImpl implements PredicateNode {
54        /**
55         * The default value of the '{@link #getId() <em>Id</em>}' attribute.
56         * <!-- begin-user-doc -->
57         * <!-- end-user-doc -->
58         * @see #getId()
59         * @generated
60         * @ordered
61         */
62        protected static final String ID_EDEFAULT = null;
63 
64        /**
65         * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
66         * <!-- begin-user-doc -->
67         * <!-- end-user-doc -->
68         * @see #getId()
69         * @generated
70         * @ordered
71         */
72        protected String id = ID_EDEFAULT;
73 
74        /**
75         * The default value of the '{@link #getName() <em>Name</em>}' attribute.
76         * <!-- begin-user-doc -->
77         * <!-- end-user-doc -->
78         * @see #getName()
79         * @generated
80         * @ordered
81         */
82        protected static final String NAME_EDEFAULT = null;
83 
84        /**
85         * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
86         * <!-- begin-user-doc -->
87         * <!-- end-user-doc -->
88         * @see #getName()
89         * @generated
90         * @ordered
91         */
92        protected String name = NAME_EDEFAULT;
93 
94        /**
95         * The default value of the '{@link #getDetails() <em>Details</em>}' attribute.
96         * <!-- begin-user-doc -->
97         * <!-- end-user-doc -->
98         * @see #getDetails()
99         * @generated
100         * @ordered
101         */
102        protected static final String DETAILS_EDEFAULT = null;
103 
104        /**
105         * The cached value of the '{@link #getDetails() <em>Details</em>}' attribute.
106         * <!-- begin-user-doc -->
107         * <!-- end-user-doc -->
108         * @see #getDetails()
109         * @generated
110         * @ordered
111         */
112        protected String details = DETAILS_EDEFAULT;
113 
114        /**
115         * The cached value of the '{@link #getTrueOutputs() <em>True Outputs</em>}' reference list.
116         * <!-- begin-user-doc -->
117         * <!-- end-user-doc -->
118         * @see #getTrueOutputs()
119         * @generated
120         * @ordered
121         */
122        protected EList<PredicateNodeOutput> trueOutputs;
123 
124        /**
125         * The cached value of the '{@link #getFalseOutputs() <em>False Outputs</em>}' reference list.
126         * <!-- begin-user-doc -->
127         * <!-- end-user-doc -->
128         * @see #getFalseOutputs()
129         * @generated
130         * @ordered
131         */
132        protected EList<PredicateNodeOutput> falseOutputs;
133 
134        /**
135         * The cached value of the '{@link #getTrueChildren() <em>True Children</em>}' reference list.
136         * <!-- begin-user-doc -->
137         * <!-- end-user-doc -->
138         * @see #getTrueChildren()
139         * @generated
140         * @ordered
141         */
142        protected EList<PredicateNode> trueChildren;
143 
144        /**
145         * The cached value of the '{@link #getFalseChildren() <em>False Children</em>}' reference list.
146         * <!-- begin-user-doc -->
147         * <!-- end-user-doc -->
148         * @see #getFalseChildren()
149         * @generated
150         * @ordered
151         */
152        protected EList<PredicateNode> falseChildren;
153 
154        /**
155         * The default value of the '{@link #isIsRoot() <em>Is Root</em>}' attribute.
156         * <!-- begin-user-doc -->
157         * <!-- end-user-doc -->
158         * @see #isIsRoot()
159         * @generated
160         * @ordered
161         */
162        protected static final boolean IS_ROOT_EDEFAULT = false;
163 
164        /**
165         * The cached value of the '{@link #isIsRoot() <em>Is Root</em>}' attribute.
166         * <!-- begin-user-doc -->
167         * <!-- end-user-doc -->
168         * @see #isIsRoot()
169         * @generated
170         * @ordered
171         */
172        protected boolean isRoot = IS_ROOT_EDEFAULT;
173 
174        /**
175         * The cached value of the '{@link #getPredicate() <em>Predicate</em>}' containment reference.
176         * <!-- begin-user-doc -->
177         * <!-- end-user-doc -->
178         * @see #getPredicate()
179         * @generated
180         * @ordered
181         */
182        protected Predicate predicate;
183 
184        /**
185         * <!-- begin-user-doc -->
186         * <!-- end-user-doc -->
187         * @generated
188         */
189        protected PredicateNodeImpl() {
190                super();
191        }
192 
193        /**
194         * <!-- begin-user-doc -->
195         * <!-- end-user-doc -->
196         * @generated
197         */
198        @Override
199        protected EClass eStaticClass() {
200                return SnapshotPackage.Literals.PREDICATE_NODE;
201        }
202 
203        /**
204         * <!-- begin-user-doc -->
205         * <!-- end-user-doc -->
206         * @generated
207         */
208        public String getId() {
209                return id;
210        }
211 
212        /**
213         * <!-- begin-user-doc -->
214         * <!-- end-user-doc -->
215         * @generated
216         */
217        public void setId(String newId) {
218                String oldId = id;
219                id = newId;
220                if (eNotificationRequired())
221                        eNotify(new ENotificationImpl(this, Notification.SET, SnapshotPackage.PREDICATE_NODE__ID, oldId, id));
222        }
223 
224        /**
225         * <!-- begin-user-doc -->
226         * <!-- end-user-doc -->
227         * @generated
228         */
229        public String getName() {
230                return name;
231        }
232 
233        /**
234         * <!-- begin-user-doc -->
235         * <!-- end-user-doc -->
236         * @generated
237         */
238        public void setName(String newName) {
239                String oldName = name;
240                name = newName;
241                if (eNotificationRequired())
242                        eNotify(new ENotificationImpl(this, Notification.SET, SnapshotPackage.PREDICATE_NODE__NAME, oldName, name));
243        }
244 
245        /**
246         * <!-- begin-user-doc -->
247         * <!-- end-user-doc -->
248         * @generated
249         */
250        public String getDetails() {
251                return details;
252        }
253 
254        /**
255         * <!-- begin-user-doc -->
256         * <!-- end-user-doc -->
257         * @generated
258         */
259        public void setDetails(String newDetails) {
260                String oldDetails = details;
261                details = newDetails;
262                if (eNotificationRequired())
263                        eNotify(new ENotificationImpl(this, Notification.SET, SnapshotPackage.PREDICATE_NODE__DETAILS, oldDetails, details));
264        }
265 
266        /**
267         * <!-- begin-user-doc -->
268         * <!-- end-user-doc -->
269         * @generated
270         */
271        public Snapshot getSnapshot() {
272                if (eContainerFeatureID() != SnapshotPackage.PREDICATE_NODE__SNAPSHOT) return null;
273                return (Snapshot)eContainer();
274        }
275 
276        /**
277         * <!-- begin-user-doc -->
278         * <!-- end-user-doc -->
279         * @generated
280         */
281        public NotificationChain basicSetSnapshot(Snapshot newSnapshot, NotificationChain msgs) {
282                msgs = eBasicSetContainer((InternalEObject)newSnapshot, SnapshotPackage.PREDICATE_NODE__SNAPSHOT, msgs);
283                return msgs;
284        }
285 
286        /**
287         * <!-- begin-user-doc -->
288         * <!-- end-user-doc -->
289         * @generated
290         */
291        public void setSnapshot(Snapshot newSnapshot) {
292                if (newSnapshot != eInternalContainer() || (eContainerFeatureID() != SnapshotPackage.PREDICATE_NODE__SNAPSHOT && newSnapshot != null)) {
293                        if (EcoreUtil.isAncestor(this, newSnapshot))
294                                throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
295                        NotificationChain msgs = null;
296                        if (eInternalContainer() != null)
297                                msgs = eBasicRemoveFromContainer(msgs);
298                        if (newSnapshot != null)
299                                msgs = ((InternalEObject)newSnapshot).eInverseAdd(this, SnapshotPackage.SNAPSHOT__ELEMENTS, Snapshot.class, msgs);
300                        msgs = basicSetSnapshot(newSnapshot, msgs);
301                        if (msgs != null) msgs.dispatch();
302                }
303                else if (eNotificationRequired())
304                        eNotify(new ENotificationImpl(this, Notification.SET, SnapshotPackage.PREDICATE_NODE__SNAPSHOT, newSnapshot, newSnapshot));
305        }
306 
307        /**
308         * <!-- begin-user-doc -->
309         * <!-- end-user-doc -->
310         * @generated
311         */
312        public EList<PredicateNodeOutput> getTrueOutputs() {
313                if (trueOutputs == null) {
314                        trueOutputs = new EObjectResolvingEList<PredicateNodeOutput>(PredicateNodeOutput.class, this, SnapshotPackage.PREDICATE_NODE__TRUE_OUTPUTS);
315                }
316                return trueOutputs;
317        }
318 
319        /**
320         * <!-- begin-user-doc -->
321         * <!-- end-user-doc -->
322         * @generated
323         */
324        public EList<PredicateNodeOutput> getFalseOutputs() {
325                if (falseOutputs == null) {
326                        falseOutputs = new EObjectResolvingEList<PredicateNodeOutput>(PredicateNodeOutput.class, this, SnapshotPackage.PREDICATE_NODE__FALSE_OUTPUTS);
327                }
328                return falseOutputs;
329        }
330 
331        /**
332         * <!-- begin-user-doc -->
333         * <!-- end-user-doc -->
334         * @generated
335         */
336        public EList<PredicateNode> getTrueChildren() {
337                if (trueChildren == null) {
338                        trueChildren = new EObjectResolvingEList<PredicateNode>(PredicateNode.class, this, SnapshotPackage.PREDICATE_NODE__TRUE_CHILDREN);
339                }
340                return trueChildren;
341        }
342 
343        /**
344         * <!-- begin-user-doc -->
345         * <!-- end-user-doc -->
346         * @generated
347         */
348        public EList<PredicateNode> getFalseChildren() {
349                if (falseChildren == null) {
350                        falseChildren = new EObjectResolvingEList<PredicateNode>(PredicateNode.class, this, SnapshotPackage.PREDICATE_NODE__FALSE_CHILDREN);
351                }
352                return falseChildren;
353        }
354 
355        /**
356         * <!-- begin-user-doc -->
357         * <!-- end-user-doc -->
358         * @generated
359         */
360        public boolean isIsRoot() {
361                return isRoot;
362        }
363 
364        /**
365         * <!-- begin-user-doc -->
366         * <!-- end-user-doc -->
367         * @generated
368         */
369        public void setIsRoot(boolean newIsRoot) {
370                boolean oldIsRoot = isRoot;
371                isRoot = newIsRoot;
372                if (eNotificationRequired())
373                        eNotify(new ENotificationImpl(this, Notification.SET, SnapshotPackage.PREDICATE_NODE__IS_ROOT, oldIsRoot, isRoot));
374        }
375 
376        /**
377         * <!-- begin-user-doc -->
378         * <!-- end-user-doc -->
379         * @generated
380         */
381        public Predicate getPredicate() {
382                return predicate;
383        }
384 
385        /**
386         * <!-- begin-user-doc -->
387         * <!-- end-user-doc -->
388         * @generated
389         */
390        public NotificationChain basicSetPredicate(Predicate newPredicate, NotificationChain msgs) {
391                Predicate oldPredicate = predicate;
392                predicate = newPredicate;
393                if (eNotificationRequired()) {
394                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SnapshotPackage.PREDICATE_NODE__PREDICATE, oldPredicate, newPredicate);
395                        if (msgs == null) msgs = notification; else msgs.add(notification);
396                }
397                return msgs;
398        }
399 
400        /**
401         * <!-- begin-user-doc -->
402         * <!-- end-user-doc -->
403         * @generated
404         */
405        public void setPredicate(Predicate newPredicate) {
406                if (newPredicate != predicate) {
407                        NotificationChain msgs = null;
408                        if (predicate != null)
409                                msgs = ((InternalEObject)predicate).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SnapshotPackage.PREDICATE_NODE__PREDICATE, null, msgs);
410                        if (newPredicate != null)
411                                msgs = ((InternalEObject)newPredicate).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SnapshotPackage.PREDICATE_NODE__PREDICATE, null, msgs);
412                        msgs = basicSetPredicate(newPredicate, msgs);
413                        if (msgs != null) msgs.dispatch();
414                }
415                else if (eNotificationRequired())
416                        eNotify(new ENotificationImpl(this, Notification.SET, SnapshotPackage.PREDICATE_NODE__PREDICATE, newPredicate, newPredicate));
417        }
418 
419        /**
420         * <!-- begin-user-doc -->
421         * <!-- end-user-doc -->
422         * @generated
423         */
424        @Override
425        public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
426                switch (featureID) {
427                        case SnapshotPackage.PREDICATE_NODE__SNAPSHOT:
428                                if (eInternalContainer() != null)
429                                        msgs = eBasicRemoveFromContainer(msgs);
430                                return basicSetSnapshot((Snapshot)otherEnd, msgs);
431                }
432                return super.eInverseAdd(otherEnd, featureID, msgs);
433        }
434 
435        /**
436         * <!-- begin-user-doc -->
437         * <!-- end-user-doc -->
438         * @generated
439         */
440        @Override
441        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
442                switch (featureID) {
443                        case SnapshotPackage.PREDICATE_NODE__SNAPSHOT:
444                                return basicSetSnapshot(null, msgs);
445                        case SnapshotPackage.PREDICATE_NODE__PREDICATE:
446                                return basicSetPredicate(null, msgs);
447                }
448                return super.eInverseRemove(otherEnd, featureID, msgs);
449        }
450 
451        /**
452         * <!-- begin-user-doc -->
453         * <!-- end-user-doc -->
454         * @generated
455         */
456        @Override
457        public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
458                switch (eContainerFeatureID()) {
459                        case SnapshotPackage.PREDICATE_NODE__SNAPSHOT:
460                                return eInternalContainer().eInverseRemove(this, SnapshotPackage.SNAPSHOT__ELEMENTS, Snapshot.class, msgs);
461                }
462                return super.eBasicRemoveFromContainerFeature(msgs);
463        }
464 
465        /**
466         * <!-- begin-user-doc -->
467         * <!-- end-user-doc -->
468         * @generated
469         */
470        @Override
471        public Object eGet(int featureID, boolean resolve, boolean coreType) {
472                switch (featureID) {
473                        case SnapshotPackage.PREDICATE_NODE__ID:
474                                return getId();
475                        case SnapshotPackage.PREDICATE_NODE__NAME:
476                                return getName();
477                        case SnapshotPackage.PREDICATE_NODE__DETAILS:
478                                return getDetails();
479                        case SnapshotPackage.PREDICATE_NODE__SNAPSHOT:
480                                return getSnapshot();
481                        case SnapshotPackage.PREDICATE_NODE__TRUE_OUTPUTS:
482                                return getTrueOutputs();
483                        case SnapshotPackage.PREDICATE_NODE__FALSE_OUTPUTS:
484                                return getFalseOutputs();
485                        case SnapshotPackage.PREDICATE_NODE__TRUE_CHILDREN:
486                                return getTrueChildren();
487                        case SnapshotPackage.PREDICATE_NODE__FALSE_CHILDREN:
488                                return getFalseChildren();
489                        case SnapshotPackage.PREDICATE_NODE__IS_ROOT:
490                                return isIsRoot();
491                        case SnapshotPackage.PREDICATE_NODE__PREDICATE:
492                                return getPredicate();
493                }
494                return super.eGet(featureID, resolve, coreType);
495        }
496 
497        /**
498         * <!-- begin-user-doc -->
499         * <!-- end-user-doc -->
500         * @generated
501         */
502        @SuppressWarnings("unchecked")
503        @Override
504        public void eSet(int featureID, Object newValue) {
505                switch (featureID) {
506                        case SnapshotPackage.PREDICATE_NODE__ID:
507                                setId((String)newValue);
508                                return;
509                        case SnapshotPackage.PREDICATE_NODE__NAME:
510                                setName((String)newValue);
511                                return;
512                        case SnapshotPackage.PREDICATE_NODE__DETAILS:
513                                setDetails((String)newValue);
514                                return;
515                        case SnapshotPackage.PREDICATE_NODE__SNAPSHOT:
516                                setSnapshot((Snapshot)newValue);
517                                return;
518                        case SnapshotPackage.PREDICATE_NODE__TRUE_OUTPUTS:
519                                getTrueOutputs().clear();
520                                getTrueOutputs().addAll((Collection<? extends PredicateNodeOutput>)newValue);
521                                return;
522                        case SnapshotPackage.PREDICATE_NODE__FALSE_OUTPUTS:
523                                getFalseOutputs().clear();
524                                getFalseOutputs().addAll((Collection<? extends PredicateNodeOutput>)newValue);
525                                return;
526                        case SnapshotPackage.PREDICATE_NODE__TRUE_CHILDREN:
527                                getTrueChildren().clear();
528                                getTrueChildren().addAll((Collection<? extends PredicateNode>)newValue);
529                                return;
530                        case SnapshotPackage.PREDICATE_NODE__FALSE_CHILDREN:
531                                getFalseChildren().clear();
532                                getFalseChildren().addAll((Collection<? extends PredicateNode>)newValue);
533                                return;
534                        case SnapshotPackage.PREDICATE_NODE__IS_ROOT:
535                                setIsRoot((Boolean)newValue);
536                                return;
537                        case SnapshotPackage.PREDICATE_NODE__PREDICATE:
538                                setPredicate((Predicate)newValue);
539                                return;
540                }
541                super.eSet(featureID, newValue);
542        }
543 
544        /**
545         * <!-- begin-user-doc -->
546         * <!-- end-user-doc -->
547         * @generated
548         */
549        @Override
550        public void eUnset(int featureID) {
551                switch (featureID) {
552                        case SnapshotPackage.PREDICATE_NODE__ID:
553                                setId(ID_EDEFAULT);
554                                return;
555                        case SnapshotPackage.PREDICATE_NODE__NAME:
556                                setName(NAME_EDEFAULT);
557                                return;
558                        case SnapshotPackage.PREDICATE_NODE__DETAILS:
559                                setDetails(DETAILS_EDEFAULT);
560                                return;
561                        case SnapshotPackage.PREDICATE_NODE__SNAPSHOT:
562                                setSnapshot((Snapshot)null);
563                                return;
564                        case SnapshotPackage.PREDICATE_NODE__TRUE_OUTPUTS:
565                                getTrueOutputs().clear();
566                                return;
567                        case SnapshotPackage.PREDICATE_NODE__FALSE_OUTPUTS:
568                                getFalseOutputs().clear();
569                                return;
570                        case SnapshotPackage.PREDICATE_NODE__TRUE_CHILDREN:
571                                getTrueChildren().clear();
572                                return;
573                        case SnapshotPackage.PREDICATE_NODE__FALSE_CHILDREN:
574                                getFalseChildren().clear();
575                                return;
576                        case SnapshotPackage.PREDICATE_NODE__IS_ROOT:
577                                setIsRoot(IS_ROOT_EDEFAULT);
578                                return;
579                        case SnapshotPackage.PREDICATE_NODE__PREDICATE:
580                                setPredicate((Predicate)null);
581                                return;
582                }
583                super.eUnset(featureID);
584        }
585 
586        /**
587         * <!-- begin-user-doc -->
588         * <!-- end-user-doc -->
589         * @generated
590         */
591        @Override
592        public boolean eIsSet(int featureID) {
593                switch (featureID) {
594                        case SnapshotPackage.PREDICATE_NODE__ID:
595                                return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
596                        case SnapshotPackage.PREDICATE_NODE__NAME:
597                                return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
598                        case SnapshotPackage.PREDICATE_NODE__DETAILS:
599                                return DETAILS_EDEFAULT == null ? details != null : !DETAILS_EDEFAULT.equals(details);
600                        case SnapshotPackage.PREDICATE_NODE__SNAPSHOT:
601                                return getSnapshot() != null;
602                        case SnapshotPackage.PREDICATE_NODE__TRUE_OUTPUTS:
603                                return trueOutputs != null && !trueOutputs.isEmpty();
604                        case SnapshotPackage.PREDICATE_NODE__FALSE_OUTPUTS:
605                                return falseOutputs != null && !falseOutputs.isEmpty();
606                        case SnapshotPackage.PREDICATE_NODE__TRUE_CHILDREN:
607                                return trueChildren != null && !trueChildren.isEmpty();
608                        case SnapshotPackage.PREDICATE_NODE__FALSE_CHILDREN:
609                                return falseChildren != null && !falseChildren.isEmpty();
610                        case SnapshotPackage.PREDICATE_NODE__IS_ROOT:
611                                return isRoot != IS_ROOT_EDEFAULT;
612                        case SnapshotPackage.PREDICATE_NODE__PREDICATE:
613                                return predicate != null;
614                }
615                return super.eIsSet(featureID);
616        }
617 
618        /**
619         * <!-- begin-user-doc -->
620         * <!-- end-user-doc -->
621         * @generated
622         */
623        @Override
624        public String toString() {
625                if (eIsProxy()) return super.toString();
626 
627                StringBuffer result = new StringBuffer(super.toString());
628                result.append(" (id: ");
629                result.append(id);
630                result.append(", name: ");
631                result.append(name);
632                result.append(", details: ");
633                result.append(details);
634                result.append(", isRoot: ");
635                result.append(isRoot);
636                result.append(')');
637                return result.toString();
638        }
639 
640} //PredicateNodeImpl

[all classes][com.hammurapi.eventbus.snapshot.impl]
EMMA 2.0.5312 EclEmma Fix 2 (C) Vladimir Roubtsov