1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
package org.argouml.model.euml; |
13 | |
|
14 | |
import org.argouml.model.AbstractModelFactory; |
15 | |
import org.argouml.model.CollaborationsFactory; |
16 | |
import org.eclipse.uml2.uml.Classifier; |
17 | |
import org.eclipse.uml2.uml.Collaboration; |
18 | |
import org.eclipse.uml2.uml.Element; |
19 | |
import org.eclipse.uml2.uml.Interaction; |
20 | |
import org.eclipse.uml2.uml.Message; |
21 | |
import org.eclipse.uml2.uml.UMLFactory; |
22 | |
|
23 | |
|
24 | |
|
25 | |
|
26 | 0 | class CollaborationsFactoryEUMLImpl implements CollaborationsFactory, |
27 | |
AbstractModelFactory { |
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
private EUMLModelImplementation modelImpl; |
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | 0 | public CollaborationsFactoryEUMLImpl(EUMLModelImplementation implementation) { |
40 | 0 | modelImpl = implementation; |
41 | 0 | } |
42 | |
|
43 | |
public Object buildActivator(Object owner, Object interaction) { |
44 | |
|
45 | 0 | return null; |
46 | |
} |
47 | |
|
48 | |
public Object buildAssociationEndRole(Object atype) { |
49 | |
|
50 | 0 | return null; |
51 | |
} |
52 | |
|
53 | |
public Object buildAssociationRole(Object from, Object to) { |
54 | |
|
55 | 0 | return null; |
56 | |
} |
57 | |
|
58 | |
@Deprecated |
59 | |
public Object buildAssociationRole(Object from, Object agg1, Object to, |
60 | |
Object agg2, Boolean unidirectional) { |
61 | 0 | if (unidirectional == null) { |
62 | 0 | return buildAssociationRole(from, agg1, to, agg2, false); |
63 | |
} else { |
64 | 0 | return buildAssociationRole(from, agg1, to, agg2, |
65 | |
unidirectional.booleanValue()); |
66 | |
} |
67 | |
} |
68 | |
|
69 | |
public Object buildAssociationRole(Object from, Object agg1, Object to, |
70 | |
Object agg2, boolean unidirectional) { |
71 | |
|
72 | 0 | return null; |
73 | |
} |
74 | |
|
75 | |
public Object buildAssociationRole(Object link) { |
76 | |
|
77 | 0 | return null; |
78 | |
} |
79 | |
|
80 | |
public Object buildClassifierRole(Object collaboration) { |
81 | |
|
82 | 0 | return null; |
83 | |
} |
84 | |
|
85 | |
|
86 | |
|
87 | |
public Collaboration buildCollaboration(Object handle) { |
88 | 0 | Collaboration collab = createCollaboration(); |
89 | 0 | ((Element) handle).getOwnedElements().add(collab); |
90 | 0 | return collab; |
91 | |
} |
92 | |
|
93 | |
public Collaboration buildCollaboration(Object namespace, |
94 | |
Object representedElement) { |
95 | 0 | Collaboration collab = buildCollaboration(namespace); |
96 | 0 | Classifier cls = (Classifier) representedElement; |
97 | |
|
98 | |
|
99 | 0 | return collab; |
100 | |
} |
101 | |
|
102 | |
public Object buildInteraction(Object handle) { |
103 | |
|
104 | 0 | return null; |
105 | |
} |
106 | |
|
107 | |
public Message buildMessage(Object acollab, Object arole) { |
108 | |
|
109 | 0 | return createMessage(); |
110 | |
} |
111 | |
|
112 | |
public Object createAssociationEndRole() { |
113 | |
|
114 | 0 | return null; |
115 | |
} |
116 | |
|
117 | |
public Object createAssociationRole() { |
118 | |
|
119 | 0 | return null; |
120 | |
} |
121 | |
|
122 | |
public Object createClassifierRole() { |
123 | |
|
124 | 0 | return null; |
125 | |
} |
126 | |
|
127 | |
public Collaboration createCollaboration() { |
128 | 0 | return UMLFactory.eINSTANCE.createCollaboration(); |
129 | |
} |
130 | |
|
131 | |
public Object createCollaborationInstanceSet() { |
132 | |
|
133 | 0 | return null; |
134 | |
} |
135 | |
|
136 | |
public Interaction createInteraction() { |
137 | 0 | return UMLFactory.eINSTANCE.createInteraction(); |
138 | |
} |
139 | |
|
140 | |
public Object createInteractionInstanceSet() { |
141 | |
|
142 | 0 | return null; |
143 | |
} |
144 | |
|
145 | |
public Message createMessage() { |
146 | 0 | return UMLFactory.eINSTANCE.createMessage(); |
147 | |
} |
148 | |
|
149 | |
|
150 | |
} |