1 package org.andromda.metafacades.emf.uml22;
2
3 import org.eclipse.uml2.uml.Action;
4 import org.eclipse.uml2.uml.Behavior;
5 import org.eclipse.uml2.uml.ConnectableElement;
6 import org.eclipse.uml2.uml.State;
7
8
9
10
11
12
13
14 public class ActionStateFacadeLogicImpl
15 extends ActionStateFacadeLogic
16 {
17 private static final long serialVersionUID = 34L;
18
19
20
21
22 public ActionStateFacadeLogicImpl(
23 final State metaObject,
24 final String context)
25 {
26 super(metaObject, context);
27 }
28
29
30
31
32
33
34
35 @Override
36 protected Action handleGetEntry()
37 {
38 final Behavior activity = this.metaObject.getEntry();
39 if (activity != null)
40 {
41 for (ConnectableElement nextNode : activity.getRoles())
42 {
43 if (nextNode instanceof Action)
44 {
45 return (Action) nextNode;
46 }
47 }
48 }
49
50
51 return null;
52 }
53 }