Source Code Cross Referenced for ProcessImpl.java in  » Workflow-Engines » osbl-1_0 » newprocess » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » osbl 1_0 » newprocess.impl 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * <copyright>
003:         * </copyright>
004:         *
005:         * $Id$
006:         */package newprocess.impl;
007:
008:        import java.util.Collection;
009:
010:        import newprocess.Actor;
011:        import newprocess.AsyncActivity;
012:        import newprocess.Conclusion;
013:        import newprocess.ConditionProxy;
014:        import newprocess.Event;
015:        import newprocess.Expansion;
016:        import newprocess.Globals;
017:        import newprocess.Listener;
018:        import newprocess.Message;
019:        import newprocess.NewprocessPackage;
020:        import newprocess.Process;
021:        import newprocess.SyncActivity;
022:        import newprocess.validation.ProcessValidator;
023:        import newprocess.validation.ProcessValidatorImpl;
024:
025:        import org.eclipse.emf.common.notify.Notification;
026:        import org.eclipse.emf.common.notify.NotificationChain;
027:        import org.eclipse.emf.common.util.EList;
028:        import org.eclipse.emf.ecore.EClass;
029:        import org.eclipse.emf.ecore.InternalEObject;
030:        import org.eclipse.emf.ecore.impl.ENotificationImpl;
031:        import org.eclipse.emf.ecore.util.EObjectContainmentEList;
032:        import org.eclipse.emf.ecore.util.InternalEList;
033:
034:        /**
035:         * <!-- begin-user-doc -->
036:         * An implementation of the model object '<em><b>Process</b></em>'.
037:         * <!-- end-user-doc -->
038:         * <p>
039:         * The following features are implemented:
040:         * <ul>
041:         *   <li>{@link newprocess.impl.ProcessImpl#getSubject <em>Subject</em>}</li>
042:         *   <li>{@link newprocess.impl.ProcessImpl#getHasSyncActivities <em>Has Sync Activities</em>}</li>
043:         *   <li>{@link newprocess.impl.ProcessImpl#getHasAsyncActivities <em>Has Async Activities</em>}</li>
044:         *   <li>{@link newprocess.impl.ProcessImpl#getHasEvents <em>Has Events</em>}</li>
045:         *   <li>{@link newprocess.impl.ProcessImpl#getHasListeners <em>Has Listeners</em>}</li>
046:         *   <li>{@link newprocess.impl.ProcessImpl#getHasActors <em>Has Actors</em>}</li>
047:         *   <li>{@link newprocess.impl.ProcessImpl#getHasMessages <em>Has Messages</em>}</li>
048:         *   <li>{@link newprocess.impl.ProcessImpl#getHasConclusions <em>Has Conclusions</em>}</li>
049:         *   <li>{@link newprocess.impl.ProcessImpl#getHasExpansions <em>Has Expansions</em>}</li>
050:         *   <li>{@link newprocess.impl.ProcessImpl#getHasConditionProxy <em>Has Condition Proxy</em>}</li>
051:         *   <li>{@link newprocess.impl.ProcessImpl#getHasGlobals <em>Has Globals</em>}</li>
052:         *   <li>{@link newprocess.impl.ProcessImpl#getNamespace <em>Namespace</em>}</li>
053:         * </ul>
054:         * </p>
055:         *
056:         * @generated NOT
057:         * @author sh
058:         */
059:        public class ProcessImpl extends ElementImpl implements 
060:                newprocess.Process, ProcessValidator {
061:
062:            /**
063:             * The default value of the '{@link #getSubject() <em>Subject</em>}' attribute.
064:             * <!-- begin-user-doc -->
065:             * <!-- end-user-doc -->
066:             * @see #getSubject()
067:             * @generated
068:             * @ordered
069:             */
070:            protected static final String SUBJECT_EDEFAULT = null;
071:
072:            /**
073:             * The cached value of the '{@link #getSubject() <em>Subject</em>}' attribute.
074:             * <!-- begin-user-doc -->
075:             * <!-- end-user-doc -->
076:             * @see #getSubject()
077:             * @generated
078:             * @ordered
079:             */
080:            protected String subject = SUBJECT_EDEFAULT;
081:
082:            /**
083:             * The cached value of the '{@link #getHasSyncActivities() <em>Has Sync Activities</em>}' containment reference list.
084:             * <!-- begin-user-doc -->
085:             * <!-- end-user-doc -->
086:             * @see #getHasSyncActivities()
087:             * @generated
088:             * @ordered
089:             */
090:            protected EList<SyncActivity> hasSyncActivities = null;
091:
092:            /**
093:             * The cached value of the '{@link #getHasAsyncActivities() <em>Has Async Activities</em>}' containment reference list.
094:             * <!-- begin-user-doc -->
095:             * <!-- end-user-doc -->
096:             * @see #getHasAsyncActivities()
097:             * @generated
098:             * @ordered
099:             */
100:            protected EList<AsyncActivity> hasAsyncActivities = null;
101:
102:            /**
103:             * The cached value of the '{@link #getHasEvents() <em>Has Events</em>}' containment reference list.
104:             * <!-- begin-user-doc -->
105:             * <!-- end-user-doc -->
106:             * @see #getHasEvents()
107:             * @generated
108:             * @ordered
109:             */
110:            protected EList<Event> hasEvents = null;
111:
112:            /**
113:             * The cached value of the '{@link #getHasListeners() <em>Has Listeners</em>}' containment reference list.
114:             * <!-- begin-user-doc -->
115:             * <!-- end-user-doc -->
116:             * @see #getHasListeners()
117:             * @generated
118:             * @ordered
119:             */
120:            protected EList<Listener> hasListeners = null;
121:
122:            /**
123:             * The cached value of the '{@link #getHasActors() <em>Has Actors</em>}' containment reference list.
124:             * <!-- begin-user-doc -->
125:             * <!-- end-user-doc -->
126:             * @see #getHasActors()
127:             * @generated
128:             * @ordered
129:             */
130:            protected EList<Actor> hasActors = null;
131:
132:            /**
133:             * The cached value of the '{@link #getHasMessages() <em>Has Messages</em>}' containment reference list.
134:             * <!-- begin-user-doc -->
135:             * <!-- end-user-doc -->
136:             * @see #getHasMessages()
137:             * @generated
138:             * @ordered
139:             */
140:            protected EList<Message> hasMessages = null;
141:
142:            /**
143:             * The cached value of the '{@link #getHasConclusions() <em>Has Conclusions</em>}' containment reference list.
144:             * <!-- begin-user-doc -->
145:             * <!-- end-user-doc -->
146:             * @see #getHasConclusions()
147:             * @generated
148:             * @ordered
149:             */
150:            protected EList<Conclusion> hasConclusions = null;
151:
152:            /**
153:             * The cached value of the '{@link #getHasExpansions() <em>Has Expansions</em>}' containment reference list.
154:             * <!-- begin-user-doc -->
155:             * <!-- end-user-doc -->
156:             * @see #getHasExpansions()
157:             * @generated
158:             * @ordered
159:             */
160:            protected EList<Expansion> hasExpansions = null;
161:
162:            /**
163:             * The cached value of the '{@link #getHasConditionProxy() <em>Has Condition Proxy</em>}' containment reference list.
164:             * <!-- begin-user-doc -->
165:             * <!-- end-user-doc -->
166:             * @see #getHasConditionProxy()
167:             * @generated
168:             * @ordered
169:             */
170:            protected EList<ConditionProxy> hasConditionProxy = null;
171:
172:            /**
173:             * The cached value of the '{@link #getHasGlobals() <em>Has Globals</em>}' containment reference.
174:             * <!-- begin-user-doc -->
175:             * <!-- end-user-doc -->
176:             * @see #getHasGlobals()
177:             * @generated
178:             * @ordered
179:             */
180:            protected Globals hasGlobals = null;
181:
182:            /**
183:             * The default value of the '{@link #getNamespace() <em>Namespace</em>}' attribute.
184:             * <!-- begin-user-doc -->
185:             * <!-- end-user-doc -->
186:             * @see #getNamespace()
187:             * @generated
188:             * @ordered
189:             */
190:            protected static final String NAMESPACE_EDEFAULT = null;
191:
192:            /**
193:             * The cached value of the '{@link #getNamespace() <em>Namespace</em>}' attribute.
194:             * <!-- begin-user-doc -->
195:             * <!-- end-user-doc -->
196:             * @see #getNamespace()
197:             * @generated
198:             * @ordered
199:             */
200:            protected String namespace = NAMESPACE_EDEFAULT;
201:
202:            /**
203:             * <!-- begin-user-doc -->
204:             * <!-- end-user-doc -->
205:             * @generated
206:             */
207:            protected ProcessImpl() {
208:                super ();
209:            }
210:
211:            /**
212:             * <!-- begin-user-doc -->
213:             * <!-- end-user-doc -->
214:             * @generated
215:             */
216:            @Override
217:            protected EClass eStaticClass() {
218:                return NewprocessPackage.Literals.PROCESS;
219:            }
220:
221:            /**
222:             * <!-- begin-user-doc -->
223:             * <!-- end-user-doc -->
224:             * @generated
225:             */
226:            public String getSubject() {
227:                return subject;
228:            }
229:
230:            /**
231:             * <!-- begin-user-doc -->
232:             * <!-- end-user-doc -->
233:             * @generated
234:             */
235:            public void setSubject(String newSubject) {
236:                String oldSubject = subject;
237:                subject = newSubject;
238:                if (eNotificationRequired())
239:                    eNotify(new ENotificationImpl(this , Notification.SET,
240:                            NewprocessPackage.PROCESS__SUBJECT, oldSubject,
241:                            subject));
242:            }
243:
244:            /**
245:             * <!-- begin-user-doc -->
246:             * <!-- end-user-doc -->
247:             * @generated
248:             */
249:            public EList<SyncActivity> getHasSyncActivities() {
250:                if (hasSyncActivities == null) {
251:                    hasSyncActivities = new EObjectContainmentEList<SyncActivity>(
252:                            SyncActivity.class, this ,
253:                            NewprocessPackage.PROCESS__HAS_SYNC_ACTIVITIES);
254:                }
255:                return hasSyncActivities;
256:            }
257:
258:            /**
259:             * <!-- begin-user-doc -->
260:             * <!-- end-user-doc -->
261:             * @generated
262:             */
263:            public EList<AsyncActivity> getHasAsyncActivities() {
264:                if (hasAsyncActivities == null) {
265:                    hasAsyncActivities = new EObjectContainmentEList<AsyncActivity>(
266:                            AsyncActivity.class, this ,
267:                            NewprocessPackage.PROCESS__HAS_ASYNC_ACTIVITIES);
268:                }
269:                return hasAsyncActivities;
270:            }
271:
272:            /**
273:             * <!-- begin-user-doc -->
274:             * <!-- end-user-doc -->
275:             * @generated
276:             */
277:            public EList<Event> getHasEvents() {
278:                if (hasEvents == null) {
279:                    hasEvents = new EObjectContainmentEList<Event>(Event.class,
280:                            this , NewprocessPackage.PROCESS__HAS_EVENTS);
281:                }
282:                return hasEvents;
283:            }
284:
285:            /**
286:             * <!-- begin-user-doc -->
287:             * <!-- end-user-doc -->
288:             * @generated
289:             */
290:            public EList<Listener> getHasListeners() {
291:                if (hasListeners == null) {
292:                    hasListeners = new EObjectContainmentEList<Listener>(
293:                            Listener.class, this ,
294:                            NewprocessPackage.PROCESS__HAS_LISTENERS);
295:                }
296:                return hasListeners;
297:            }
298:
299:            /**
300:             * <!-- begin-user-doc -->
301:             * <!-- end-user-doc -->
302:             * @generated
303:             */
304:            public EList<Actor> getHasActors() {
305:                if (hasActors == null) {
306:                    hasActors = new EObjectContainmentEList<Actor>(Actor.class,
307:                            this , NewprocessPackage.PROCESS__HAS_ACTORS);
308:                }
309:                return hasActors;
310:            }
311:
312:            /**
313:             * <!-- begin-user-doc -->
314:             * <!-- end-user-doc -->
315:             * @generated
316:             */
317:            public EList<Message> getHasMessages() {
318:                if (hasMessages == null) {
319:                    hasMessages = new EObjectContainmentEList<Message>(
320:                            Message.class, this ,
321:                            NewprocessPackage.PROCESS__HAS_MESSAGES);
322:                }
323:                return hasMessages;
324:            }
325:
326:            /**
327:             * <!-- begin-user-doc -->
328:             * <!-- end-user-doc -->
329:             * @generated
330:             */
331:            public EList<Conclusion> getHasConclusions() {
332:                if (hasConclusions == null) {
333:                    hasConclusions = new EObjectContainmentEList<Conclusion>(
334:                            Conclusion.class, this ,
335:                            NewprocessPackage.PROCESS__HAS_CONCLUSIONS);
336:                }
337:                return hasConclusions;
338:            }
339:
340:            /**
341:             * <!-- begin-user-doc -->
342:             * <!-- end-user-doc -->
343:             * @generated
344:             */
345:            public EList<Expansion> getHasExpansions() {
346:                if (hasExpansions == null) {
347:                    hasExpansions = new EObjectContainmentEList<Expansion>(
348:                            Expansion.class, this ,
349:                            NewprocessPackage.PROCESS__HAS_EXPANSIONS);
350:                }
351:                return hasExpansions;
352:            }
353:
354:            /**
355:             * <!-- begin-user-doc -->
356:             * <!-- end-user-doc -->
357:             * @generated
358:             */
359:            public EList<ConditionProxy> getHasConditionProxy() {
360:                if (hasConditionProxy == null) {
361:                    hasConditionProxy = new EObjectContainmentEList<ConditionProxy>(
362:                            ConditionProxy.class, this ,
363:                            NewprocessPackage.PROCESS__HAS_CONDITION_PROXY);
364:                }
365:                return hasConditionProxy;
366:            }
367:
368:            /**
369:             * <!-- begin-user-doc -->
370:             * <!-- end-user-doc -->
371:             * @generated
372:             */
373:            public Globals getHasGlobals() {
374:                return hasGlobals;
375:            }
376:
377:            /**
378:             * <!-- begin-user-doc -->
379:             * <!-- end-user-doc -->
380:             * @generated
381:             */
382:            public NotificationChain basicSetHasGlobals(Globals newHasGlobals,
383:                    NotificationChain msgs) {
384:                Globals oldHasGlobals = hasGlobals;
385:                hasGlobals = newHasGlobals;
386:                if (eNotificationRequired()) {
387:                    ENotificationImpl notification = new ENotificationImpl(
388:                            this , Notification.SET,
389:                            NewprocessPackage.PROCESS__HAS_GLOBALS,
390:                            oldHasGlobals, newHasGlobals);
391:                    if (msgs == null)
392:                        msgs = notification;
393:                    else
394:                        msgs.add(notification);
395:                }
396:                return msgs;
397:            }
398:
399:            /**
400:             * <!-- begin-user-doc -->
401:             * <!-- end-user-doc -->
402:             * @generated
403:             */
404:            public void setHasGlobals(Globals newHasGlobals) {
405:                if (newHasGlobals != hasGlobals) {
406:                    NotificationChain msgs = null;
407:                    if (hasGlobals != null)
408:                        msgs = ((InternalEObject) hasGlobals)
409:                                .eInverseRemove(
410:                                        this ,
411:                                        EOPPOSITE_FEATURE_BASE
412:                                                - NewprocessPackage.PROCESS__HAS_GLOBALS,
413:                                        null, msgs);
414:                    if (newHasGlobals != null)
415:                        msgs = ((InternalEObject) newHasGlobals)
416:                                .eInverseAdd(
417:                                        this ,
418:                                        EOPPOSITE_FEATURE_BASE
419:                                                - NewprocessPackage.PROCESS__HAS_GLOBALS,
420:                                        null, msgs);
421:                    msgs = basicSetHasGlobals(newHasGlobals, msgs);
422:                    if (msgs != null)
423:                        msgs.dispatch();
424:                } else if (eNotificationRequired())
425:                    eNotify(new ENotificationImpl(this , Notification.SET,
426:                            NewprocessPackage.PROCESS__HAS_GLOBALS,
427:                            newHasGlobals, newHasGlobals));
428:            }
429:
430:            /**
431:             * <!-- begin-user-doc -->
432:             * <!-- end-user-doc -->
433:             * @generated
434:             */
435:            public String getNamespace() {
436:                return namespace;
437:            }
438:
439:            /**
440:             * <!-- begin-user-doc -->
441:             * <!-- end-user-doc -->
442:             * @generated
443:             */
444:            public void setNamespace(String newNamespace) {
445:                String oldNamespace = namespace;
446:                namespace = newNamespace;
447:                if (eNotificationRequired())
448:                    eNotify(new ENotificationImpl(this , Notification.SET,
449:                            NewprocessPackage.PROCESS__NAMESPACE, oldNamespace,
450:                            namespace));
451:            }
452:
453:            /**
454:             * <!-- begin-user-doc -->
455:             * <!-- end-user-doc -->
456:             * @generated
457:             */
458:            @Override
459:            public NotificationChain eInverseRemove(InternalEObject otherEnd,
460:                    int featureID, NotificationChain msgs) {
461:                switch (featureID) {
462:                case NewprocessPackage.PROCESS__HAS_SYNC_ACTIVITIES:
463:                    return ((InternalEList<?>) getHasSyncActivities())
464:                            .basicRemove(otherEnd, msgs);
465:                case NewprocessPackage.PROCESS__HAS_ASYNC_ACTIVITIES:
466:                    return ((InternalEList<?>) getHasAsyncActivities())
467:                            .basicRemove(otherEnd, msgs);
468:                case NewprocessPackage.PROCESS__HAS_EVENTS:
469:                    return ((InternalEList<?>) getHasEvents()).basicRemove(
470:                            otherEnd, msgs);
471:                case NewprocessPackage.PROCESS__HAS_LISTENERS:
472:                    return ((InternalEList<?>) getHasListeners()).basicRemove(
473:                            otherEnd, msgs);
474:                case NewprocessPackage.PROCESS__HAS_ACTORS:
475:                    return ((InternalEList<?>) getHasActors()).basicRemove(
476:                            otherEnd, msgs);
477:                case NewprocessPackage.PROCESS__HAS_MESSAGES:
478:                    return ((InternalEList<?>) getHasMessages()).basicRemove(
479:                            otherEnd, msgs);
480:                case NewprocessPackage.PROCESS__HAS_CONCLUSIONS:
481:                    return ((InternalEList<?>) getHasConclusions())
482:                            .basicRemove(otherEnd, msgs);
483:                case NewprocessPackage.PROCESS__HAS_EXPANSIONS:
484:                    return ((InternalEList<?>) getHasExpansions()).basicRemove(
485:                            otherEnd, msgs);
486:                case NewprocessPackage.PROCESS__HAS_CONDITION_PROXY:
487:                    return ((InternalEList<?>) getHasConditionProxy())
488:                            .basicRemove(otherEnd, msgs);
489:                case NewprocessPackage.PROCESS__HAS_GLOBALS:
490:                    return basicSetHasGlobals(null, msgs);
491:                }
492:                return super .eInverseRemove(otherEnd, featureID, msgs);
493:            }
494:
495:            /**
496:             * <!-- begin-user-doc -->
497:             * <!-- end-user-doc -->
498:             * @generated
499:             */
500:            @Override
501:            public Object eGet(int featureID, boolean resolve, boolean coreType) {
502:                switch (featureID) {
503:                case NewprocessPackage.PROCESS__SUBJECT:
504:                    return getSubject();
505:                case NewprocessPackage.PROCESS__HAS_SYNC_ACTIVITIES:
506:                    return getHasSyncActivities();
507:                case NewprocessPackage.PROCESS__HAS_ASYNC_ACTIVITIES:
508:                    return getHasAsyncActivities();
509:                case NewprocessPackage.PROCESS__HAS_EVENTS:
510:                    return getHasEvents();
511:                case NewprocessPackage.PROCESS__HAS_LISTENERS:
512:                    return getHasListeners();
513:                case NewprocessPackage.PROCESS__HAS_ACTORS:
514:                    return getHasActors();
515:                case NewprocessPackage.PROCESS__HAS_MESSAGES:
516:                    return getHasMessages();
517:                case NewprocessPackage.PROCESS__HAS_CONCLUSIONS:
518:                    return getHasConclusions();
519:                case NewprocessPackage.PROCESS__HAS_EXPANSIONS:
520:                    return getHasExpansions();
521:                case NewprocessPackage.PROCESS__HAS_CONDITION_PROXY:
522:                    return getHasConditionProxy();
523:                case NewprocessPackage.PROCESS__HAS_GLOBALS:
524:                    return getHasGlobals();
525:                case NewprocessPackage.PROCESS__NAMESPACE:
526:                    return getNamespace();
527:                }
528:                return super .eGet(featureID, resolve, coreType);
529:            }
530:
531:            /**
532:             * <!-- begin-user-doc -->
533:             * <!-- end-user-doc -->
534:             * @generated
535:             */
536:            @SuppressWarnings("unchecked")
537:            @Override
538:            public void eSet(int featureID, Object newValue) {
539:                switch (featureID) {
540:                case NewprocessPackage.PROCESS__SUBJECT:
541:                    setSubject((String) newValue);
542:                    return;
543:                case NewprocessPackage.PROCESS__HAS_SYNC_ACTIVITIES:
544:                    getHasSyncActivities().clear();
545:                    getHasSyncActivities().addAll(
546:                            (Collection<? extends SyncActivity>) newValue);
547:                    return;
548:                case NewprocessPackage.PROCESS__HAS_ASYNC_ACTIVITIES:
549:                    getHasAsyncActivities().clear();
550:                    getHasAsyncActivities().addAll(
551:                            (Collection<? extends AsyncActivity>) newValue);
552:                    return;
553:                case NewprocessPackage.PROCESS__HAS_EVENTS:
554:                    getHasEvents().clear();
555:                    getHasEvents().addAll(
556:                            (Collection<? extends Event>) newValue);
557:                    return;
558:                case NewprocessPackage.PROCESS__HAS_LISTENERS:
559:                    getHasListeners().clear();
560:                    getHasListeners().addAll(
561:                            (Collection<? extends Listener>) newValue);
562:                    return;
563:                case NewprocessPackage.PROCESS__HAS_ACTORS:
564:                    getHasActors().clear();
565:                    getHasActors().addAll(
566:                            (Collection<? extends Actor>) newValue);
567:                    return;
568:                case NewprocessPackage.PROCESS__HAS_MESSAGES:
569:                    getHasMessages().clear();
570:                    getHasMessages().addAll(
571:                            (Collection<? extends Message>) newValue);
572:                    return;
573:                case NewprocessPackage.PROCESS__HAS_CONCLUSIONS:
574:                    getHasConclusions().clear();
575:                    getHasConclusions().addAll(
576:                            (Collection<? extends Conclusion>) newValue);
577:                    return;
578:                case NewprocessPackage.PROCESS__HAS_EXPANSIONS:
579:                    getHasExpansions().clear();
580:                    getHasExpansions().addAll(
581:                            (Collection<? extends Expansion>) newValue);
582:                    return;
583:                case NewprocessPackage.PROCESS__HAS_CONDITION_PROXY:
584:                    getHasConditionProxy().clear();
585:                    getHasConditionProxy().addAll(
586:                            (Collection<? extends ConditionProxy>) newValue);
587:                    return;
588:                case NewprocessPackage.PROCESS__HAS_GLOBALS:
589:                    setHasGlobals((Globals) newValue);
590:                    return;
591:                case NewprocessPackage.PROCESS__NAMESPACE:
592:                    setNamespace((String) newValue);
593:                    return;
594:                }
595:                super .eSet(featureID, newValue);
596:            }
597:
598:            /**
599:             * <!-- begin-user-doc -->
600:             * <!-- end-user-doc -->
601:             * @generated
602:             */
603:            @Override
604:            public void eUnset(int featureID) {
605:                switch (featureID) {
606:                case NewprocessPackage.PROCESS__SUBJECT:
607:                    setSubject(SUBJECT_EDEFAULT);
608:                    return;
609:                case NewprocessPackage.PROCESS__HAS_SYNC_ACTIVITIES:
610:                    getHasSyncActivities().clear();
611:                    return;
612:                case NewprocessPackage.PROCESS__HAS_ASYNC_ACTIVITIES:
613:                    getHasAsyncActivities().clear();
614:                    return;
615:                case NewprocessPackage.PROCESS__HAS_EVENTS:
616:                    getHasEvents().clear();
617:                    return;
618:                case NewprocessPackage.PROCESS__HAS_LISTENERS:
619:                    getHasListeners().clear();
620:                    return;
621:                case NewprocessPackage.PROCESS__HAS_ACTORS:
622:                    getHasActors().clear();
623:                    return;
624:                case NewprocessPackage.PROCESS__HAS_MESSAGES:
625:                    getHasMessages().clear();
626:                    return;
627:                case NewprocessPackage.PROCESS__HAS_CONCLUSIONS:
628:                    getHasConclusions().clear();
629:                    return;
630:                case NewprocessPackage.PROCESS__HAS_EXPANSIONS:
631:                    getHasExpansions().clear();
632:                    return;
633:                case NewprocessPackage.PROCESS__HAS_CONDITION_PROXY:
634:                    getHasConditionProxy().clear();
635:                    return;
636:                case NewprocessPackage.PROCESS__HAS_GLOBALS:
637:                    setHasGlobals((Globals) null);
638:                    return;
639:                case NewprocessPackage.PROCESS__NAMESPACE:
640:                    setNamespace(NAMESPACE_EDEFAULT);
641:                    return;
642:                }
643:                super .eUnset(featureID);
644:            }
645:
646:            /**
647:             * <!-- begin-user-doc -->
648:             * <!-- end-user-doc -->
649:             * @generated
650:             */
651:            @Override
652:            public boolean eIsSet(int featureID) {
653:                switch (featureID) {
654:                case NewprocessPackage.PROCESS__SUBJECT:
655:                    return SUBJECT_EDEFAULT == null ? subject != null
656:                            : !SUBJECT_EDEFAULT.equals(subject);
657:                case NewprocessPackage.PROCESS__HAS_SYNC_ACTIVITIES:
658:                    return hasSyncActivities != null
659:                            && !hasSyncActivities.isEmpty();
660:                case NewprocessPackage.PROCESS__HAS_ASYNC_ACTIVITIES:
661:                    return hasAsyncActivities != null
662:                            && !hasAsyncActivities.isEmpty();
663:                case NewprocessPackage.PROCESS__HAS_EVENTS:
664:                    return hasEvents != null && !hasEvents.isEmpty();
665:                case NewprocessPackage.PROCESS__HAS_LISTENERS:
666:                    return hasListeners != null && !hasListeners.isEmpty();
667:                case NewprocessPackage.PROCESS__HAS_ACTORS:
668:                    return hasActors != null && !hasActors.isEmpty();
669:                case NewprocessPackage.PROCESS__HAS_MESSAGES:
670:                    return hasMessages != null && !hasMessages.isEmpty();
671:                case NewprocessPackage.PROCESS__HAS_CONCLUSIONS:
672:                    return hasConclusions != null && !hasConclusions.isEmpty();
673:                case NewprocessPackage.PROCESS__HAS_EXPANSIONS:
674:                    return hasExpansions != null && !hasExpansions.isEmpty();
675:                case NewprocessPackage.PROCESS__HAS_CONDITION_PROXY:
676:                    return hasConditionProxy != null
677:                            && !hasConditionProxy.isEmpty();
678:                case NewprocessPackage.PROCESS__HAS_GLOBALS:
679:                    return hasGlobals != null;
680:                case NewprocessPackage.PROCESS__NAMESPACE:
681:                    return NAMESPACE_EDEFAULT == null ? namespace != null
682:                            : !NAMESPACE_EDEFAULT.equals(namespace);
683:                }
684:                return super .eIsSet(featureID);
685:            }
686:
687:            /**
688:             * <!-- begin-user-doc -->
689:             * <!-- end-user-doc -->
690:             * @generated
691:             */
692:            @Override
693:            public String toString() {
694:                if (eIsProxy())
695:                    return super .toString();
696:
697:                StringBuffer result = new StringBuffer(super .toString());
698:                result.append(" (subject: ");
699:                result.append(subject);
700:                result.append(", namespace: ");
701:                result.append(namespace);
702:                result.append(')');
703:                return result.toString();
704:            }
705:
706:            /**
707:             * Validates the Implementation of the Process
708:             * @author sh
709:             */
710:            public boolean validateImplementation(Process proc) {
711:                return ProcessValidatorImpl.INSTANCE
712:                        .validateImplementation(proc);
713:            }
714:
715:            /**
716:             * Validates the Name of the Process
717:             * @author sh
718:             */
719:            public boolean validateName(Process proc) {
720:                return ProcessValidatorImpl.INSTANCE.validateName(proc);
721:            }
722:
723:            /**
724:             * Validates the Namespace of the Process
725:             * @author sh
726:             */
727:            public boolean validateNamespace(Process proc) {
728:                return ProcessValidatorImpl.INSTANCE.validateNamespace(proc);
729:            }
730:
731:            /**
732:             * Validates the Subject of the Process
733:             * @author sh
734:             */
735:            public boolean validateSubject(Process proc) {
736:                return ProcessValidatorImpl.INSTANCE.validateSubject(proc);
737:            }
738:        } //ProcessImpl
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.