Skip to content

Package: TaskImpl

TaskImpl

nameinstructionbranchcomplexitylinemethod
TaskImpl()
M: 15 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 6 C: 0
0%
M: 1 C: 0
0%
basicGetAssignee()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
basicSetAssignee(User, NotificationChain)
M: 29 C: 0
0%
M: 4 C: 0
0%
M: 3 C: 0
0%
M: 11 C: 0
0%
M: 1 C: 0
0%
eGet(int, boolean, boolean)
M: 32 C: 0
0%
M: 9 C: 0
0%
M: 8 C: 0
0%
M: 10 C: 0
0%
M: 1 C: 0
0%
eInverseAdd(InternalEObject, int, NotificationChain)
M: 26 C: 0
0%
M: 4 C: 0
0%
M: 3 C: 0
0%
M: 5 C: 0
0%
M: 1 C: 0
0%
eInverseRemove(InternalEObject, int, NotificationChain)
M: 20 C: 0
0%
M: 3 C: 0
0%
M: 3 C: 0
0%
M: 4 C: 0
0%
M: 1 C: 0
0%
eInvoke(int, EList)
M: 19 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
eIsSet(int)
M: 81 C: 0
0%
M: 31 C: 0
0%
M: 19 C: 0
0%
M: 8 C: 0
0%
M: 1 C: 0
0%
eSet(int, Object)
M: 43 C: 0
0%
M: 7 C: 0
0%
M: 7 C: 0
0%
M: 16 C: 0
0%
M: 1 C: 0
0%
eStaticClass()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
eUnset(int)
M: 30 C: 0
0%
M: 7 C: 0
0%
M: 7 C: 0
0%
M: 15 C: 0
0%
M: 1 C: 0
0%
getAssignee()
M: 38 C: 0
0%
M: 8 C: 0
0%
M: 5 C: 0
0%
M: 8 C: 0
0%
M: 1 C: 0
0%
getDescription()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getDueDate()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getName()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getSubTasks()
M: 14 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
hasName(DiagnosticChain, Map)
M: 34 C: 0
0%
M: 6 C: 0
0%
M: 4 C: 0
0%
M: 10 C: 0
0%
M: 1 C: 0
0%
isDone()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
setAssignee(User)
M: 52 C: 0
0%
M: 10 C: 0
0%
M: 6 C: 0
0%
M: 13 C: 0
0%
M: 1 C: 0
0%
setDescription(String)
M: 21 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 6 C: 0
0%
M: 1 C: 0
0%
setDone(boolean)
M: 21 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 5 C: 0
0%
M: 1 C: 0
0%
setDueDate(Date)
M: 21 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 5 C: 0
0%
M: 1 C: 0
0%
setName(String)
M: 21 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 5 C: 0
0%
M: 1 C: 0
0%
static {...}
M: 7 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 4 C: 0
0%
M: 1 C: 0
0%
toString()
M: 55 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 13 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /**
2: * Copyright (c) 2011-2014 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * EclipseSource Munich - initial API and implementation
13: */
14: package org.eclipse.emf.ecp.makeithappen.model.task.impl;
15:
16: import java.lang.reflect.InvocationTargetException;
17: import java.util.Collection;
18: import java.util.Date;
19: import java.util.Map;
20:
21: import org.eclipse.emf.common.notify.Notification;
22: import org.eclipse.emf.common.notify.NotificationChain;
23: import org.eclipse.emf.common.util.BasicDiagnostic;
24: import org.eclipse.emf.common.util.Diagnostic;
25: import org.eclipse.emf.common.util.DiagnosticChain;
26: import org.eclipse.emf.common.util.EList;
27: import org.eclipse.emf.ecore.EClass;
28: import org.eclipse.emf.ecore.InternalEObject;
29: import org.eclipse.emf.ecore.impl.ENotificationImpl;
30: import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
31: import org.eclipse.emf.ecore.util.EObjectContainmentEList;
32: import org.eclipse.emf.ecore.util.InternalEList;
33: import org.eclipse.emf.ecp.makeithappen.model.task.Task;
34: import org.eclipse.emf.ecp.makeithappen.model.task.TaskPackage;
35: import org.eclipse.emf.ecp.makeithappen.model.task.User;
36: import org.eclipse.emf.ecp.makeithappen.model.task.util.TaskValidator;
37:
38: /**
39: * <!-- begin-user-doc -->
40: * An implementation of the model object '<em><b>Task</b></em>'.
41: * <!-- end-user-doc -->
42: * <p>
43: * The following features are implemented:
44: * <ul>
45: * <li>{@link org.eclipse.emf.ecp.makeithappen.model.task.impl.TaskImpl#getName <em>Name</em>}</li>
46: * <li>{@link org.eclipse.emf.ecp.makeithappen.model.task.impl.TaskImpl#getDescription <em>Description</em>}</li>
47: * <li>{@link org.eclipse.emf.ecp.makeithappen.model.task.impl.TaskImpl#getAssignee <em>Assignee</em>}</li>
48: * <li>{@link org.eclipse.emf.ecp.makeithappen.model.task.impl.TaskImpl#getDueDate <em>Due Date</em>}</li>
49: * <li>{@link org.eclipse.emf.ecp.makeithappen.model.task.impl.TaskImpl#getSubTasks <em>Sub Tasks</em>}</li>
50: * <li>{@link org.eclipse.emf.ecp.makeithappen.model.task.impl.TaskImpl#isDone <em>Done</em>}</li>
51: * </ul>
52: * </p>
53: *
54: * @generated
55: */
56: public class TaskImpl extends MinimalEObjectImpl.Container implements Task {
57:         /**
58:          * The default value of the '{@link #getName() <em>Name</em>}' attribute.
59:          * <!-- begin-user-doc -->
60:          * <!-- end-user-doc -->
61:          *
62:          * @see #getName()
63:          * @generated
64:          * @ordered
65:          */
66:         protected static final String NAME_EDEFAULT = null;
67:
68:         /**
69:          * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
70:          * <!-- begin-user-doc -->
71:          * <!-- end-user-doc -->
72:          *
73:          * @see #getName()
74:          * @generated
75:          * @ordered
76:          */
77:         protected String name = NAME_EDEFAULT;
78:
79:         /**
80:          * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
81:          * <!-- begin-user-doc -->
82:          * <!-- end-user-doc -->
83:          *
84:          * @see #getDescription()
85:          * @generated
86:          * @ordered
87:          */
88:         protected static final String DESCRIPTION_EDEFAULT = null;
89:
90:         /**
91:          * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute.
92:          * <!-- begin-user-doc -->
93:          * <!-- end-user-doc -->
94:          *
95:          * @see #getDescription()
96:          * @generated
97:          * @ordered
98:          */
99:         protected String description = DESCRIPTION_EDEFAULT;
100:
101:         /**
102:          * The cached value of the '{@link #getAssignee() <em>Assignee</em>}' reference.
103:          * <!-- begin-user-doc -->
104:          * <!-- end-user-doc -->
105:          *
106:          * @see #getAssignee()
107:          * @generated
108:          * @ordered
109:          */
110:         protected User assignee;
111:
112:         /**
113:          * The default value of the '{@link #getDueDate() <em>Due Date</em>}' attribute.
114:          * <!-- begin-user-doc -->
115:          * <!-- end-user-doc -->
116:          *
117:          * @see #getDueDate()
118:          * @generated
119:          * @ordered
120:          */
121:         protected static final Date DUE_DATE_EDEFAULT = null;
122:
123:         /**
124:          * The cached value of the '{@link #getDueDate() <em>Due Date</em>}' attribute.
125:          * <!-- begin-user-doc -->
126:          * <!-- end-user-doc -->
127:          *
128:          * @see #getDueDate()
129:          * @generated
130:          * @ordered
131:          */
132:         protected Date dueDate = DUE_DATE_EDEFAULT;
133:
134:         /**
135:          * The cached value of the '{@link #getSubTasks() <em>Sub Tasks</em>}' containment reference list.
136:          * <!-- begin-user-doc -->
137:          * <!-- end-user-doc -->
138:          *
139:          * @see #getSubTasks()
140:          * @generated
141:          * @ordered
142:          */
143:         protected EList<Task> subTasks;
144:
145:         /**
146:          * The default value of the '{@link #isDone() <em>Done</em>}' attribute.
147:          * <!-- begin-user-doc -->
148:          * <!-- end-user-doc -->
149:          *
150:          * @see #isDone()
151:          * @generated
152:          * @ordered
153:          */
154:         protected static final boolean DONE_EDEFAULT = false;
155:
156:         /**
157:          * The cached value of the '{@link #isDone() <em>Done</em>}' attribute.
158:          * <!-- begin-user-doc -->
159:          * <!-- end-user-doc -->
160:          *
161:          * @see #isDone()
162:          * @generated
163:          * @ordered
164:          */
165:         protected boolean done = DONE_EDEFAULT;
166:
167:         /**
168:          * <!-- begin-user-doc -->
169:          * <!-- end-user-doc -->
170:          *
171:          * @generated
172:          */
173:         protected TaskImpl() {
174:                 super();
175:         }
176:
177:         /**
178:          * <!-- begin-user-doc -->
179:          * <!-- end-user-doc -->
180:          *
181:          * @generated
182:          */
183:         @Override
184:         protected EClass eStaticClass() {
185:                 return TaskPackage.Literals.TASK;
186:         }
187:
188:         /**
189:          * <!-- begin-user-doc -->
190:          * <!-- end-user-doc -->
191:          *
192:          * @generated
193:          */
194:         @Override
195:         public String getName() {
196:                 return name;
197:         }
198:
199:         /**
200:          * <!-- begin-user-doc -->
201:          * <!-- end-user-doc -->
202:          *
203:          * @generated
204:          */
205:         @Override
206:         public void setName(String newName) {
207:•                final String oldName = name;
208:                 name = newName;
209:                 if (eNotificationRequired()) {
210:                         eNotify(new ENotificationImpl(this, Notification.SET, TaskPackage.TASK__NAME, oldName, name));
211:                 }
212:         }
213:
214:         /**
215:          * <!-- begin-user-doc -->
216:          * <!-- end-user-doc -->
217:          *
218:          * @generated
219:          */
220:•        @Override
221:         public User getAssignee() {
222:                 if (assignee != null && assignee.eIsProxy()) {
223:                         final InternalEObject oldAssignee = (InternalEObject) assignee;
224:•                        assignee = (User) eResolveProxy(oldAssignee);
225:                         if (assignee != oldAssignee) {
226:•                                if (eNotificationRequired()) {
227:                                         eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaskPackage.TASK__ASSIGNEE, oldAssignee,
228:                                                 assignee));
229:                                 }
230:                         }
231:                 }
232:                 return assignee;
233:         }
234:
235:         /**
236:          * <!-- begin-user-doc -->
237:          * <!-- end-user-doc -->
238:          *
239:          * @generated
240:          */
241:         public User basicGetAssignee() {
242:                 return assignee;
243:         }
244:
245:         /**
246:          * <!-- begin-user-doc -->
247:          * <!-- end-user-doc -->
248:          *
249:          * @generated
250:          */
251:         public NotificationChain basicSetAssignee(User newAssignee, NotificationChain msgs) {
252:                 final User oldAssignee = assignee;
253:                 assignee = newAssignee;
254:•                if (eNotificationRequired()) {
255:                         final ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
256:                                 TaskPackage.TASK__ASSIGNEE,
257:                                 oldAssignee, newAssignee);
258:                         if (msgs == null) {
259:•                                msgs = notification;
260:                         } else {
261:                                 msgs.add(notification);
262:                         }
263:                 }
264:                 return msgs;
265:         }
266:
267:         /**
268:          * <!-- begin-user-doc -->
269:          * <!-- end-user-doc -->
270:          *
271:          * @generated
272:          */
273:         @Override
274:         public void setAssignee(User newAssignee) {
275:                 if (newAssignee != assignee) {
276:•                        NotificationChain msgs = null;
277:                         if (assignee != null) {
278:                                 msgs = ((InternalEObject) assignee).eInverseRemove(this, TaskPackage.USER__TASKS, User.class, msgs);
279:•                        }
280:                         if (newAssignee != null) {
281:                                 msgs = ((InternalEObject) newAssignee).eInverseAdd(this, TaskPackage.USER__TASKS, User.class, msgs);
282:•                        }
283:                         msgs = basicSetAssignee(newAssignee, msgs);
284:                         if (msgs != null) {
285:                                 msgs.dispatch();
286:•                        }
287:                 } else if (eNotificationRequired()) {
288:                         eNotify(
289:                                 new ENotificationImpl(this, Notification.SET, TaskPackage.TASK__ASSIGNEE, newAssignee, newAssignee));
290:•                }
291:         }
292:
293:         /**
294:          * <!-- begin-user-doc -->
295:          * <!-- end-user-doc -->
296:          *
297:          * @generated
298:          */
299:         @Override
300:         public EList<Task> getSubTasks() {
301:                 if (subTasks == null) {
302:                         subTasks = new EObjectContainmentEList<Task>(Task.class, this, TaskPackage.TASK__SUB_TASKS);
303:•                }
304:                 return subTasks;
305:         }
306:
307:         /**
308:          * <!-- begin-user-doc -->
309:          * <!-- end-user-doc -->
310:          *
311:          * @generated
312:          */
313:         @Override
314:         public boolean isDone() {
315:                 return done;
316:         }
317:
318:         /**
319:          * <!-- begin-user-doc -->
320:          * <!-- end-user-doc -->
321:          *
322:          * @generated
323:          */
324:         @Override
325:         public void setDone(boolean newDone) {
326:                 final boolean oldDone = done;
327:                 done = newDone;
328:                 if (eNotificationRequired()) {
329:                         eNotify(new ENotificationImpl(this, Notification.SET, TaskPackage.TASK__DONE, oldDone, done));
330:                 }
331:•        }
332:
333:         /**
334:          * <!-- begin-user-doc -->
335:          * <!-- end-user-doc -->
336:          *
337:          * @param chain the diagnostic chain.
338:          * @param context the context.
339:          * @return whether the task has a name.
340:          * @generated NOT
341:          */
342:         @Override
343:         public boolean hasName(DiagnosticChain chain, Map<?, ?> context) {
344:                 if (getName() == null || getName().equals("")) { //$NON-NLS-1$
345:                         if (chain != null) {
346:                                 chain.add(new BasicDiagnostic(Diagnostic.ERROR,
347:•                                        TaskValidator.DIAGNOSTIC_SOURCE,
348:•                                        TaskValidator.TASK__HAS_NAME, "Task needs to have a name", //$NON-NLS-1$
349:                                         new Object[] { this, TaskPackage.eINSTANCE.getTask_Name() }));
350:                         }
351:                         return false;
352:                 }
353:                 return true;
354:         }
355:
356:         /**
357:          * <!-- begin-user-doc -->.
358:          * <!-- end-user-doc -->
359:          *
360:          * @generated
361:          */
362:         @Override
363:         public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
364:                 switch (featureID) {
365:                 case TaskPackage.TASK__ASSIGNEE:
366:                         if (assignee != null) {
367:                                 msgs = ((InternalEObject) assignee).eInverseRemove(this, TaskPackage.USER__TASKS, User.class, msgs);
368:                         }
369:•                        return basicSetAssignee((User) otherEnd, msgs);
370:                 }
371:                 return super.eInverseAdd(otherEnd, featureID, msgs);
372:•        }
373:
374:         /**
375:          * <!-- begin-user-doc -->
376:          * <!-- end-user-doc -->
377:          *
378:          * @generated
379:          */
380:         @Override
381:         public Date getDueDate() {
382:                 return dueDate;
383:         }
384:
385:         /**
386:          * <!-- begin-user-doc -->
387:          * <!-- end-user-doc -->
388:          *
389:          * @generated
390:          */
391:         @Override
392:         public void setDueDate(Date newDueDate) {
393:                 final Date oldDueDate = dueDate;
394:                 dueDate = newDueDate;
395:                 if (eNotificationRequired()) {
396:                         eNotify(new ENotificationImpl(this, Notification.SET, TaskPackage.TASK__DUE_DATE, oldDueDate, dueDate));
397:                 }
398:         }
399:
400:         /**
401:•         * <!-- begin-user-doc -->
402:          * <!-- end-user-doc -->
403:          *
404:          * @generated
405:          */
406:         @Override
407:         public String getDescription() {
408:                 return description;
409:         }
410:
411:         /**
412:          * <!-- begin-user-doc -->
413:          * <!-- end-user-doc -->
414:          *
415:          * @generated
416:          */
417:         @Override
418:         public void setDescription(String newDescription) {
419:                 final String oldDescription = description;
420:                 description = newDescription;
421:                 if (eNotificationRequired()) {
422:                         eNotify(new ENotificationImpl(this, Notification.SET, TaskPackage.TASK__DESCRIPTION, oldDescription,
423:                                 description));
424:                 }
425:         }
426:
427:•        /**
428:          * <!-- begin-user-doc -->
429:          * <!-- end-user-doc -->
430:          *
431:          * @generated
432:          */
433:         @Override
434:         public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
435:                 switch (featureID) {
436:                 case TaskPackage.TASK__ASSIGNEE:
437:                         return basicSetAssignee(null, msgs);
438:                 case TaskPackage.TASK__SUB_TASKS:
439:                         return ((InternalEList<?>) getSubTasks()).basicRemove(otherEnd, msgs);
440:                 }
441:•                return super.eInverseRemove(otherEnd, featureID, msgs);
442:         }
443:
444:         /**
445:          * <!-- begin-user-doc -->
446:          * <!-- end-user-doc -->
447:          *
448:          * @generated
449:          */
450:         @Override
451:         public Object eGet(int featureID, boolean resolve, boolean coreType) {
452:                 switch (featureID) {
453:                 case TaskPackage.TASK__NAME:
454:                         return getName();
455:                 case TaskPackage.TASK__DESCRIPTION:
456:                         return getDescription();
457:                 case TaskPackage.TASK__ASSIGNEE:
458:                         if (resolve) {
459:•                                return getAssignee();
460:                         }
461:                         return basicGetAssignee();
462:                 case TaskPackage.TASK__DUE_DATE:
463:                         return getDueDate();
464:                 case TaskPackage.TASK__SUB_TASKS:
465:                         return getSubTasks();
466:•                case TaskPackage.TASK__DONE:
467:                         return isDone();
468:                 }
469:                 return super.eGet(featureID, resolve, coreType);
470:         }
471:
472:         /**
473:          * <!-- begin-user-doc -->
474:          * <!-- end-user-doc -->
475:          *
476:          * @generated
477:          */
478:         @SuppressWarnings("unchecked")
479:         @Override
480:         public void eSet(int featureID, Object newValue) {
481:                 switch (featureID) {
482:                 case TaskPackage.TASK__NAME:
483:                         setName((String) newValue);
484:                         return;
485:                 case TaskPackage.TASK__DESCRIPTION:
486:                         setDescription((String) newValue);
487:                         return;
488:                 case TaskPackage.TASK__ASSIGNEE:
489:•                        setAssignee((User) newValue);
490:                         return;
491:                 case TaskPackage.TASK__DUE_DATE:
492:                         setDueDate((Date) newValue);
493:                         return;
494:                 case TaskPackage.TASK__SUB_TASKS:
495:                         getSubTasks().clear();
496:                         getSubTasks().addAll((Collection<? extends Task>) newValue);
497:                         return;
498:                 case TaskPackage.TASK__DONE:
499:                         setDone((Boolean) newValue);
500:                         return;
501:                 }
502:                 super.eSet(featureID, newValue);
503:         }
504:
505:         /**
506:          * <!-- begin-user-doc -->
507:          * <!-- end-user-doc -->
508:          *
509:          * @generated
510:          */
511:         @Override
512:         public void eUnset(int featureID) {
513:                 switch (featureID) {
514:                 case TaskPackage.TASK__NAME:
515:                         setName(NAME_EDEFAULT);
516:                         return;
517:                 case TaskPackage.TASK__DESCRIPTION:
518:                         setDescription(DESCRIPTION_EDEFAULT);
519:                         return;
520:                 case TaskPackage.TASK__ASSIGNEE:
521:                         setAssignee((User) null);
522:•                        return;
523:                 case TaskPackage.TASK__DUE_DATE:
524:                         setDueDate(DUE_DATE_EDEFAULT);
525:                         return;
526:                 case TaskPackage.TASK__SUB_TASKS:
527:                         getSubTasks().clear();
528:                         return;
529:                 case TaskPackage.TASK__DONE:
530:                         setDone(DONE_EDEFAULT);
531:                         return;
532:                 }
533:                 super.eUnset(featureID);
534:         }
535:
536:         /**
537:          * <!-- begin-user-doc -->
538:          * <!-- end-user-doc -->
539:          *
540:          * @generated
541:          */
542:         @Override
543:         public boolean eIsSet(int featureID) {
544:                 switch (featureID) {
545:                 case TaskPackage.TASK__NAME:
546:                         return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
547:                 case TaskPackage.TASK__DESCRIPTION:
548:                         return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
549:                 case TaskPackage.TASK__ASSIGNEE:
550:                         return assignee != null;
551:                 case TaskPackage.TASK__DUE_DATE:
552:                         return DUE_DATE_EDEFAULT == null ? dueDate != null : !DUE_DATE_EDEFAULT.equals(dueDate);
553:                 case TaskPackage.TASK__SUB_TASKS:
554:•                        return subTasks != null && !subTasks.isEmpty();
555:                 case TaskPackage.TASK__DONE:
556:                         return done != DONE_EDEFAULT;
557:•                }
558:                 return super.eIsSet(featureID);
559:•        }
560:
561:•        /**
562:          * <!-- begin-user-doc -->
563:•         * <!-- end-user-doc -->
564:          *
565:•         * @generated
566:          */
567:         @Override
568:         public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
569:                 switch (operationID) {
570:                 case TaskPackage.TASK___HAS_NAME__DIAGNOSTICCHAIN_MAP:
571:                         return hasName((DiagnosticChain) arguments.get(0), (Map<?, ?>) arguments.get(1));
572:                 }
573:                 return super.eInvoke(operationID, arguments);
574:         }
575:
576:         /**
577:          * <!-- begin-user-doc -->
578:          * <!-- end-user-doc -->
579:          *
580:•         * @generated
581:          */
582:         @Override
583:         public String toString() {
584:                 if (eIsProxy()) {
585:                         return super.toString();
586:                 }
587:
588:                 final StringBuffer result = new StringBuffer(super.toString());
589:                 result.append(" (name: "); //$NON-NLS-1$
590:                 result.append(name);
591:                 result.append(", description: "); //$NON-NLS-1$
592:                 result.append(description);
593:                 result.append(", dueDate: "); //$NON-NLS-1$
594:                 result.append(dueDate);
595:                 result.append(", done: "); //$NON-NLS-1$
596:•                result.append(done);
597:                 result.append(')');
598:                 return result.toString();
599:         }
600:
601: } // TaskImpl