1------------------------------------------------------------------------------
2--                                                                          --
3--                            Matreshka Project                             --
4--                                                                          --
5--                          Ada Modeling Framework                          --
6--                                                                          --
7--                        Runtime Library Component                         --
8--                                                                          --
9------------------------------------------------------------------------------
10--                                                                          --
11-- Copyright © 2011-2012, Vadim Godunko <vgodunko@gmail.com>                --
12-- All rights reserved.                                                     --
13--                                                                          --
14-- Redistribution and use in source and binary forms, with or without       --
15-- modification, are permitted provided that the following conditions       --
16-- are met:                                                                 --
17--                                                                          --
18--  * Redistributions of source code must retain the above copyright        --
19--    notice, this list of conditions and the following disclaimer.         --
20--                                                                          --
21--  * Redistributions in binary form must reproduce the above copyright     --
22--    notice, this list of conditions and the following disclaimer in the   --
23--    documentation and/or other materials provided with the distribution.  --
24--                                                                          --
25--  * Neither the name of the Vadim Godunko, IE nor the names of its        --
26--    contributors may be used to endorse or promote products derived from  --
27--    this software without specific prior written permission.              --
28--                                                                          --
29-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS      --
30-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT        --
31-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR    --
32-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT     --
33-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,   --
34-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
35-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR   --
36-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF   --
37-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING     --
38-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS       --
39-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.             --
40--                                                                          --
41------------------------------------------------------------------------------
42--  $Revision: 2937 $ $Date: 2012-05-01 21:07:27 +0400 (Tue, 01 May 2012) $
43------------------------------------------------------------------------------
44with AMF.Elements;
45with AMF.Internals.Element_Collections;
46with AMF.Internals.Helpers;
47with AMF.Internals.Tables.UML_Attributes;
48with AMF.Visitors.UML_Iterators;
49with AMF.Visitors.UML_Visitors;
50with League.Strings.Internals;
51with Matreshka.Internals.Strings;
52
53package body AMF.Internals.UML_Structured_Activity_Nodes is
54
55   -------------------
56   -- Enter_Element --
57   -------------------
58
59   overriding procedure Enter_Element
60    (Self    : not null access constant UML_Structured_Activity_Node_Proxy;
61     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
62     Control : in out AMF.Visitors.Traverse_Control) is
63   begin
64      if Visitor in AMF.Visitors.UML_Visitors.UML_Visitor'Class then
65         AMF.Visitors.UML_Visitors.UML_Visitor'Class
66          (Visitor).Enter_Structured_Activity_Node
67            (AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access (Self),
68           Control);
69      end if;
70   end Enter_Element;
71
72   -------------------
73   -- Leave_Element --
74   -------------------
75
76   overriding procedure Leave_Element
77    (Self    : not null access constant UML_Structured_Activity_Node_Proxy;
78     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
79     Control : in out AMF.Visitors.Traverse_Control) is
80   begin
81      if Visitor in AMF.Visitors.UML_Visitors.UML_Visitor'Class then
82         AMF.Visitors.UML_Visitors.UML_Visitor'Class
83          (Visitor).Leave_Structured_Activity_Node
84            (AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access (Self),
85           Control);
86      end if;
87   end Leave_Element;
88
89   -------------------
90   -- Visit_Element --
91   -------------------
92
93   overriding procedure Visit_Element
94    (Self     : not null access constant UML_Structured_Activity_Node_Proxy;
95     Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
96     Visitor  : in out AMF.Visitors.Abstract_Visitor'Class;
97     Control  : in out AMF.Visitors.Traverse_Control) is
98   begin
99      if Iterator in AMF.Visitors.UML_Iterators.UML_Iterator'Class then
100         AMF.Visitors.UML_Iterators.UML_Iterator'Class
101          (Iterator).Visit_Structured_Activity_Node
102            (Visitor,
103             AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access (Self),
104             Control);
105      end if;
106   end Visit_Element;
107
108   ------------------
109   -- Get_Activity --
110   ------------------
111
112   overriding function Get_Activity
113    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
114       return AMF.UML.Activities.UML_Activity_Access is
115   begin
116      return
117        AMF.UML.Activities.UML_Activity_Access
118         (AMF.Internals.Helpers.To_Element
119           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Activity
120             (Self.Element)));
121   end Get_Activity;
122
123   ------------------
124   -- Set_Activity --
125   ------------------
126
127   overriding procedure Set_Activity
128    (Self : not null access UML_Structured_Activity_Node_Proxy;
129     To   : AMF.UML.Activities.UML_Activity_Access) is
130   begin
131      AMF.Internals.Tables.UML_Attributes.Internal_Set_Activity
132       (Self.Element,
133        AMF.Internals.Helpers.To_Element
134         (AMF.Elements.Element_Access (To)));
135   end Set_Activity;
136
137   --------------
138   -- Get_Edge --
139   --------------
140
141   overriding function Get_Edge
142    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
143       return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge is
144   begin
145      return
146        AMF.UML.Activity_Edges.Collections.Wrap
147         (AMF.Internals.Element_Collections.Wrap
148           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Edge
149             (Self.Element)));
150   end Get_Edge;
151
152   ----------------------
153   -- Get_Must_Isolate --
154   ----------------------
155
156   overriding function Get_Must_Isolate
157    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
158       return Boolean is
159   begin
160      return
161        AMF.Internals.Tables.UML_Attributes.Internal_Get_Must_Isolate
162         (Self.Element);
163   end Get_Must_Isolate;
164
165   ----------------------
166   -- Set_Must_Isolate --
167   ----------------------
168
169   overriding procedure Set_Must_Isolate
170    (Self : not null access UML_Structured_Activity_Node_Proxy;
171     To   : Boolean) is
172   begin
173      AMF.Internals.Tables.UML_Attributes.Internal_Set_Must_Isolate
174       (Self.Element, To);
175   end Set_Must_Isolate;
176
177   --------------
178   -- Get_Node --
179   --------------
180
181   overriding function Get_Node
182    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
183       return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node is
184   begin
185      return
186        AMF.UML.Activity_Nodes.Collections.Wrap
187         (AMF.Internals.Element_Collections.Wrap
188           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Node
189             (Self.Element)));
190   end Get_Node;
191
192   -------------------------------
193   -- Get_Structured_Node_Input --
194   -------------------------------
195
196   overriding function Get_Structured_Node_Input
197    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
198       return AMF.UML.Input_Pins.Collections.Set_Of_UML_Input_Pin is
199   begin
200      return
201        AMF.UML.Input_Pins.Collections.Wrap
202         (AMF.Internals.Element_Collections.Wrap
203           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Structured_Node_Input
204             (Self.Element)));
205   end Get_Structured_Node_Input;
206
207   --------------------------------
208   -- Get_Structured_Node_Output --
209   --------------------------------
210
211   overriding function Get_Structured_Node_Output
212    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
213       return AMF.UML.Output_Pins.Collections.Set_Of_UML_Output_Pin is
214   begin
215      return
216        AMF.UML.Output_Pins.Collections.Wrap
217         (AMF.Internals.Element_Collections.Wrap
218           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Structured_Node_Output
219             (Self.Element)));
220   end Get_Structured_Node_Output;
221
222   ------------------
223   -- Get_Variable --
224   ------------------
225
226   overriding function Get_Variable
227    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
228       return AMF.UML.Variables.Collections.Set_Of_UML_Variable is
229   begin
230      return
231        AMF.UML.Variables.Collections.Wrap
232         (AMF.Internals.Element_Collections.Wrap
233           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Variable
234             (Self.Element)));
235   end Get_Variable;
236
237   ------------------------
238   -- Get_Element_Import --
239   ------------------------
240
241   overriding function Get_Element_Import
242    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
243       return AMF.UML.Element_Imports.Collections.Set_Of_UML_Element_Import is
244   begin
245      return
246        AMF.UML.Element_Imports.Collections.Wrap
247         (AMF.Internals.Element_Collections.Wrap
248           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Element_Import
249             (Self.Element)));
250   end Get_Element_Import;
251
252   -------------------------
253   -- Get_Imported_Member --
254   -------------------------
255
256   overriding function Get_Imported_Member
257    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
258       return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is
259   begin
260      return
261        AMF.UML.Packageable_Elements.Collections.Wrap
262         (AMF.Internals.Element_Collections.Wrap
263           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Imported_Member
264             (Self.Element)));
265   end Get_Imported_Member;
266
267   ----------------
268   -- Get_Member --
269   ----------------
270
271   overriding function Get_Member
272    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
273       return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is
274   begin
275      return
276        AMF.UML.Named_Elements.Collections.Wrap
277         (AMF.Internals.Element_Collections.Wrap
278           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Member
279             (Self.Element)));
280   end Get_Member;
281
282   ----------------------
283   -- Get_Owned_Member --
284   ----------------------
285
286   overriding function Get_Owned_Member
287    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
288       return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is
289   begin
290      return
291        AMF.UML.Named_Elements.Collections.Wrap
292         (AMF.Internals.Element_Collections.Wrap
293           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Owned_Member
294             (Self.Element)));
295   end Get_Owned_Member;
296
297   --------------------
298   -- Get_Owned_Rule --
299   --------------------
300
301   overriding function Get_Owned_Rule
302    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
303       return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint is
304   begin
305      return
306        AMF.UML.Constraints.Collections.Wrap
307         (AMF.Internals.Element_Collections.Wrap
308           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Owned_Rule
309             (Self.Element)));
310   end Get_Owned_Rule;
311
312   ------------------------
313   -- Get_Package_Import --
314   ------------------------
315
316   overriding function Get_Package_Import
317    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
318       return AMF.UML.Package_Imports.Collections.Set_Of_UML_Package_Import is
319   begin
320      return
321        AMF.UML.Package_Imports.Collections.Wrap
322         (AMF.Internals.Element_Collections.Wrap
323           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Package_Import
324             (Self.Element)));
325   end Get_Package_Import;
326
327   ---------------------------
328   -- Get_Client_Dependency --
329   ---------------------------
330
331   overriding function Get_Client_Dependency
332    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
333       return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency is
334   begin
335      return
336        AMF.UML.Dependencies.Collections.Wrap
337         (AMF.Internals.Element_Collections.Wrap
338           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Client_Dependency
339             (Self.Element)));
340   end Get_Client_Dependency;
341
342   -------------------------
343   -- Get_Name_Expression --
344   -------------------------
345
346   overriding function Get_Name_Expression
347    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
348       return AMF.UML.String_Expressions.UML_String_Expression_Access is
349   begin
350      return
351        AMF.UML.String_Expressions.UML_String_Expression_Access
352         (AMF.Internals.Helpers.To_Element
353           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Name_Expression
354             (Self.Element)));
355   end Get_Name_Expression;
356
357   -------------------------
358   -- Set_Name_Expression --
359   -------------------------
360
361   overriding procedure Set_Name_Expression
362    (Self : not null access UML_Structured_Activity_Node_Proxy;
363     To   : AMF.UML.String_Expressions.UML_String_Expression_Access) is
364   begin
365      AMF.Internals.Tables.UML_Attributes.Internal_Set_Name_Expression
366       (Self.Element,
367        AMF.Internals.Helpers.To_Element
368         (AMF.Elements.Element_Access (To)));
369   end Set_Name_Expression;
370
371   -------------------
372   -- Get_Namespace --
373   -------------------
374
375   overriding function Get_Namespace
376    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
377       return AMF.UML.Namespaces.UML_Namespace_Access is
378   begin
379      return
380        AMF.UML.Namespaces.UML_Namespace_Access
381         (AMF.Internals.Helpers.To_Element
382           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Namespace
383             (Self.Element)));
384   end Get_Namespace;
385
386   ------------------------
387   -- Get_Qualified_Name --
388   ------------------------
389
390   overriding function Get_Qualified_Name
391    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
392       return AMF.Optional_String is
393   begin
394      declare
395         use type Matreshka.Internals.Strings.Shared_String_Access;
396
397         Aux : constant Matreshka.Internals.Strings.Shared_String_Access
398           := AMF.Internals.Tables.UML_Attributes.Internal_Get_Qualified_Name (Self.Element);
399
400      begin
401         if Aux = null then
402            return (Is_Empty => True);
403
404         else
405            return (False, League.Strings.Internals.Create (Aux));
406         end if;
407      end;
408   end Get_Qualified_Name;
409
410   ------------------------
411   -- Get_Contained_Edge --
412   ------------------------
413
414   overriding function Get_Contained_Edge
415    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
416       return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge is
417   begin
418      return
419        AMF.UML.Activity_Edges.Collections.Wrap
420         (AMF.Internals.Element_Collections.Wrap
421           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Contained_Edge
422             (Self.Element)));
423   end Get_Contained_Edge;
424
425   ------------------------
426   -- Get_Contained_Node --
427   ------------------------
428
429   overriding function Get_Contained_Node
430    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
431       return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node is
432   begin
433      return
434        AMF.UML.Activity_Nodes.Collections.Wrap
435         (AMF.Internals.Element_Collections.Wrap
436           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Contained_Node
437             (Self.Element)));
438   end Get_Contained_Node;
439
440   ---------------------
441   -- Get_In_Activity --
442   ---------------------
443
444   overriding function Get_In_Activity
445    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
446       return AMF.UML.Activities.UML_Activity_Access is
447   begin
448      return
449        AMF.UML.Activities.UML_Activity_Access
450         (AMF.Internals.Helpers.To_Element
451           (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Activity
452             (Self.Element)));
453   end Get_In_Activity;
454
455   ---------------------
456   -- Set_In_Activity --
457   ---------------------
458
459   overriding procedure Set_In_Activity
460    (Self : not null access UML_Structured_Activity_Node_Proxy;
461     To   : AMF.UML.Activities.UML_Activity_Access) is
462   begin
463      AMF.Internals.Tables.UML_Attributes.Internal_Set_In_Activity
464       (Self.Element,
465        AMF.Internals.Helpers.To_Element
466         (AMF.Elements.Element_Access (To)));
467   end Set_In_Activity;
468
469   ------------------
470   -- Get_Subgroup --
471   ------------------
472
473   overriding function Get_Subgroup
474    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
475       return AMF.UML.Activity_Groups.Collections.Set_Of_UML_Activity_Group is
476   begin
477      return
478        AMF.UML.Activity_Groups.Collections.Wrap
479         (AMF.Internals.Element_Collections.Wrap
480           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Subgroup
481             (Self.Element)));
482   end Get_Subgroup;
483
484   ---------------------
485   -- Get_Super_Group --
486   ---------------------
487
488   overriding function Get_Super_Group
489    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
490       return AMF.UML.Activity_Groups.UML_Activity_Group_Access is
491   begin
492      return
493        AMF.UML.Activity_Groups.UML_Activity_Group_Access
494         (AMF.Internals.Helpers.To_Element
495           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Super_Group
496             (Self.Element)));
497   end Get_Super_Group;
498
499   -----------------
500   -- Get_Context --
501   -----------------
502
503   overriding function Get_Context
504    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
505       return AMF.UML.Classifiers.UML_Classifier_Access is
506   begin
507      return
508        AMF.UML.Classifiers.UML_Classifier_Access
509         (AMF.Internals.Helpers.To_Element
510           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Context
511             (Self.Element)));
512   end Get_Context;
513
514   ---------------
515   -- Get_Input --
516   ---------------
517
518   overriding function Get_Input
519    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
520       return AMF.UML.Input_Pins.Collections.Ordered_Set_Of_UML_Input_Pin is
521   begin
522      return
523        AMF.UML.Input_Pins.Collections.Wrap
524         (AMF.Internals.Element_Collections.Wrap
525           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Input
526             (Self.Element)));
527   end Get_Input;
528
529   ------------------------------
530   -- Get_Is_Locally_Reentrant --
531   ------------------------------
532
533   overriding function Get_Is_Locally_Reentrant
534    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
535       return Boolean is
536   begin
537      return
538        AMF.Internals.Tables.UML_Attributes.Internal_Get_Is_Locally_Reentrant
539         (Self.Element);
540   end Get_Is_Locally_Reentrant;
541
542   ------------------------------
543   -- Set_Is_Locally_Reentrant --
544   ------------------------------
545
546   overriding procedure Set_Is_Locally_Reentrant
547    (Self : not null access UML_Structured_Activity_Node_Proxy;
548     To   : Boolean) is
549   begin
550      AMF.Internals.Tables.UML_Attributes.Internal_Set_Is_Locally_Reentrant
551       (Self.Element, To);
552   end Set_Is_Locally_Reentrant;
553
554   -----------------------------
555   -- Get_Local_Postcondition --
556   -----------------------------
557
558   overriding function Get_Local_Postcondition
559    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
560       return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint is
561   begin
562      return
563        AMF.UML.Constraints.Collections.Wrap
564         (AMF.Internals.Element_Collections.Wrap
565           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Local_Postcondition
566             (Self.Element)));
567   end Get_Local_Postcondition;
568
569   ----------------------------
570   -- Get_Local_Precondition --
571   ----------------------------
572
573   overriding function Get_Local_Precondition
574    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
575       return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint is
576   begin
577      return
578        AMF.UML.Constraints.Collections.Wrap
579         (AMF.Internals.Element_Collections.Wrap
580           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Local_Precondition
581             (Self.Element)));
582   end Get_Local_Precondition;
583
584   ----------------
585   -- Get_Output --
586   ----------------
587
588   overriding function Get_Output
589    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
590       return AMF.UML.Output_Pins.Collections.Ordered_Set_Of_UML_Output_Pin is
591   begin
592      return
593        AMF.UML.Output_Pins.Collections.Wrap
594         (AMF.Internals.Element_Collections.Wrap
595           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Output
596             (Self.Element)));
597   end Get_Output;
598
599   -----------------
600   -- Get_Handler --
601   -----------------
602
603   overriding function Get_Handler
604    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
605       return AMF.UML.Exception_Handlers.Collections.Set_Of_UML_Exception_Handler is
606   begin
607      return
608        AMF.UML.Exception_Handlers.Collections.Wrap
609         (AMF.Internals.Element_Collections.Wrap
610           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Handler
611             (Self.Element)));
612   end Get_Handler;
613
614   ------------------
615   -- Get_In_Group --
616   ------------------
617
618   overriding function Get_In_Group
619    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
620       return AMF.UML.Activity_Groups.Collections.Set_Of_UML_Activity_Group is
621   begin
622      return
623        AMF.UML.Activity_Groups.Collections.Wrap
624         (AMF.Internals.Element_Collections.Wrap
625           (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Group
626             (Self.Element)));
627   end Get_In_Group;
628
629   ---------------------------------
630   -- Get_In_Interruptible_Region --
631   ---------------------------------
632
633   overriding function Get_In_Interruptible_Region
634    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
635       return AMF.UML.Interruptible_Activity_Regions.Collections.Set_Of_UML_Interruptible_Activity_Region is
636   begin
637      return
638        AMF.UML.Interruptible_Activity_Regions.Collections.Wrap
639         (AMF.Internals.Element_Collections.Wrap
640           (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Interruptible_Region
641             (Self.Element)));
642   end Get_In_Interruptible_Region;
643
644   ----------------------
645   -- Get_In_Partition --
646   ----------------------
647
648   overriding function Get_In_Partition
649    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
650       return AMF.UML.Activity_Partitions.Collections.Set_Of_UML_Activity_Partition is
651   begin
652      return
653        AMF.UML.Activity_Partitions.Collections.Wrap
654         (AMF.Internals.Element_Collections.Wrap
655           (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Partition
656             (Self.Element)));
657   end Get_In_Partition;
658
659   ----------------------------
660   -- Get_In_Structured_Node --
661   ----------------------------
662
663   overriding function Get_In_Structured_Node
664    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
665       return AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access is
666   begin
667      return
668        AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access
669         (AMF.Internals.Helpers.To_Element
670           (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Structured_Node
671             (Self.Element)));
672   end Get_In_Structured_Node;
673
674   ----------------------------
675   -- Set_In_Structured_Node --
676   ----------------------------
677
678   overriding procedure Set_In_Structured_Node
679    (Self : not null access UML_Structured_Activity_Node_Proxy;
680     To   : AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access) is
681   begin
682      AMF.Internals.Tables.UML_Attributes.Internal_Set_In_Structured_Node
683       (Self.Element,
684        AMF.Internals.Helpers.To_Element
685         (AMF.Elements.Element_Access (To)));
686   end Set_In_Structured_Node;
687
688   ------------------
689   -- Get_Incoming --
690   ------------------
691
692   overriding function Get_Incoming
693    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
694       return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge is
695   begin
696      return
697        AMF.UML.Activity_Edges.Collections.Wrap
698         (AMF.Internals.Element_Collections.Wrap
699           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Incoming
700             (Self.Element)));
701   end Get_Incoming;
702
703   ------------------
704   -- Get_Outgoing --
705   ------------------
706
707   overriding function Get_Outgoing
708    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
709       return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge is
710   begin
711      return
712        AMF.UML.Activity_Edges.Collections.Wrap
713         (AMF.Internals.Element_Collections.Wrap
714           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Outgoing
715             (Self.Element)));
716   end Get_Outgoing;
717
718   ------------------------
719   -- Get_Redefined_Node --
720   ------------------------
721
722   overriding function Get_Redefined_Node
723    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
724       return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node is
725   begin
726      return
727        AMF.UML.Activity_Nodes.Collections.Wrap
728         (AMF.Internals.Element_Collections.Wrap
729           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Redefined_Node
730             (Self.Element)));
731   end Get_Redefined_Node;
732
733   -----------------
734   -- Get_Is_Leaf --
735   -----------------
736
737   overriding function Get_Is_Leaf
738    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
739       return Boolean is
740   begin
741      return
742        AMF.Internals.Tables.UML_Attributes.Internal_Get_Is_Leaf
743         (Self.Element);
744   end Get_Is_Leaf;
745
746   -----------------
747   -- Set_Is_Leaf --
748   -----------------
749
750   overriding procedure Set_Is_Leaf
751    (Self : not null access UML_Structured_Activity_Node_Proxy;
752     To   : Boolean) is
753   begin
754      AMF.Internals.Tables.UML_Attributes.Internal_Set_Is_Leaf
755       (Self.Element, To);
756   end Set_Is_Leaf;
757
758   ---------------------------
759   -- Get_Redefined_Element --
760   ---------------------------
761
762   overriding function Get_Redefined_Element
763    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
764       return AMF.UML.Redefinable_Elements.Collections.Set_Of_UML_Redefinable_Element is
765   begin
766      return
767        AMF.UML.Redefinable_Elements.Collections.Wrap
768         (AMF.Internals.Element_Collections.Wrap
769           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Redefined_Element
770             (Self.Element)));
771   end Get_Redefined_Element;
772
773   ------------------------------
774   -- Get_Redefinition_Context --
775   ------------------------------
776
777   overriding function Get_Redefinition_Context
778    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
779       return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier is
780   begin
781      return
782        AMF.UML.Classifiers.Collections.Wrap
783         (AMF.Internals.Element_Collections.Wrap
784           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Redefinition_Context
785             (Self.Element)));
786   end Get_Redefinition_Context;
787
788   ------------------------
789   -- Exclude_Collisions --
790   ------------------------
791
792   overriding function Exclude_Collisions
793    (Self : not null access constant UML_Structured_Activity_Node_Proxy;
794     Imps : AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element)
795       return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is
796   begin
797      --  Generated stub: replace with real body!
798      pragma Compile_Time_Warning (Standard.True, "Exclude_Collisions unimplemented");
799      raise Program_Error with "Unimplemented procedure UML_Structured_Activity_Node_Proxy.Exclude_Collisions";
800      return Exclude_Collisions (Self, Imps);
801   end Exclude_Collisions;
802
803   -------------------------
804   -- Get_Names_Of_Member --
805   -------------------------
806
807   overriding function Get_Names_Of_Member
808    (Self : not null access constant UML_Structured_Activity_Node_Proxy;
809     Element : AMF.UML.Named_Elements.UML_Named_Element_Access)
810       return AMF.String_Collections.Set_Of_String is
811   begin
812      --  Generated stub: replace with real body!
813      pragma Compile_Time_Warning (Standard.True, "Get_Names_Of_Member unimplemented");
814      raise Program_Error with "Unimplemented procedure UML_Structured_Activity_Node_Proxy.Get_Names_Of_Member";
815      return Get_Names_Of_Member (Self, Element);
816   end Get_Names_Of_Member;
817
818   --------------------
819   -- Import_Members --
820   --------------------
821
822   overriding function Import_Members
823    (Self : not null access constant UML_Structured_Activity_Node_Proxy;
824     Imps : AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element)
825       return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is
826   begin
827      --  Generated stub: replace with real body!
828      pragma Compile_Time_Warning (Standard.True, "Import_Members unimplemented");
829      raise Program_Error with "Unimplemented procedure UML_Structured_Activity_Node_Proxy.Import_Members";
830      return Import_Members (Self, Imps);
831   end Import_Members;
832
833   ---------------------
834   -- Imported_Member --
835   ---------------------
836
837   overriding function Imported_Member
838    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
839       return AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element is
840   begin
841      --  Generated stub: replace with real body!
842      pragma Compile_Time_Warning (Standard.True, "Imported_Member unimplemented");
843      raise Program_Error with "Unimplemented procedure UML_Structured_Activity_Node_Proxy.Imported_Member";
844      return Imported_Member (Self);
845   end Imported_Member;
846
847   ---------------------------------
848   -- Members_Are_Distinguishable --
849   ---------------------------------
850
851   overriding function Members_Are_Distinguishable
852    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
853       return Boolean is
854   begin
855      --  Generated stub: replace with real body!
856      pragma Compile_Time_Warning (Standard.True, "Members_Are_Distinguishable unimplemented");
857      raise Program_Error with "Unimplemented procedure UML_Structured_Activity_Node_Proxy.Members_Are_Distinguishable";
858      return Members_Are_Distinguishable (Self);
859   end Members_Are_Distinguishable;
860
861   ------------------
862   -- Owned_Member --
863   ------------------
864
865   overriding function Owned_Member
866    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
867       return AMF.UML.Named_Elements.Collections.Set_Of_UML_Named_Element is
868   begin
869      --  Generated stub: replace with real body!
870      pragma Compile_Time_Warning (Standard.True, "Owned_Member unimplemented");
871      raise Program_Error with "Unimplemented procedure UML_Structured_Activity_Node_Proxy.Owned_Member";
872      return Owned_Member (Self);
873   end Owned_Member;
874
875   -------------------------
876   -- All_Owning_Packages --
877   -------------------------
878
879   overriding function All_Owning_Packages
880    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
881       return AMF.UML.Packages.Collections.Set_Of_UML_Package is
882   begin
883      --  Generated stub: replace with real body!
884      pragma Compile_Time_Warning (Standard.True, "All_Owning_Packages unimplemented");
885      raise Program_Error with "Unimplemented procedure UML_Structured_Activity_Node_Proxy.All_Owning_Packages";
886      return All_Owning_Packages (Self);
887   end All_Owning_Packages;
888
889   -----------------------------
890   -- Is_Distinguishable_From --
891   -----------------------------
892
893   overriding function Is_Distinguishable_From
894    (Self : not null access constant UML_Structured_Activity_Node_Proxy;
895     N : AMF.UML.Named_Elements.UML_Named_Element_Access;
896     Ns : AMF.UML.Namespaces.UML_Namespace_Access)
897       return Boolean is
898   begin
899      --  Generated stub: replace with real body!
900      pragma Compile_Time_Warning (Standard.True, "Is_Distinguishable_From unimplemented");
901      raise Program_Error with "Unimplemented procedure UML_Structured_Activity_Node_Proxy.Is_Distinguishable_From";
902      return Is_Distinguishable_From (Self, N, Ns);
903   end Is_Distinguishable_From;
904
905   ---------------
906   -- Namespace --
907   ---------------
908
909   overriding function Namespace
910    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
911       return AMF.UML.Namespaces.UML_Namespace_Access is
912   begin
913      --  Generated stub: replace with real body!
914      pragma Compile_Time_Warning (Standard.True, "Namespace unimplemented");
915      raise Program_Error with "Unimplemented procedure UML_Structured_Activity_Node_Proxy.Namespace";
916      return Namespace (Self);
917   end Namespace;
918
919   -------------
920   -- Context --
921   -------------
922
923   overriding function Context
924    (Self : not null access constant UML_Structured_Activity_Node_Proxy)
925       return AMF.UML.Classifiers.UML_Classifier_Access is
926   begin
927      --  Generated stub: replace with real body!
928      pragma Compile_Time_Warning (Standard.True, "Context unimplemented");
929      raise Program_Error with "Unimplemented procedure UML_Structured_Activity_Node_Proxy.Context";
930      return Context (Self);
931   end Context;
932
933   ------------------------
934   -- Is_Consistent_With --
935   ------------------------
936
937   overriding function Is_Consistent_With
938    (Self : not null access constant UML_Structured_Activity_Node_Proxy;
939     Redefinee : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access)
940       return Boolean is
941   begin
942      --  Generated stub: replace with real body!
943      pragma Compile_Time_Warning (Standard.True, "Is_Consistent_With unimplemented");
944      raise Program_Error with "Unimplemented procedure UML_Structured_Activity_Node_Proxy.Is_Consistent_With";
945      return Is_Consistent_With (Self, Redefinee);
946   end Is_Consistent_With;
947
948   -----------------------------------
949   -- Is_Redefinition_Context_Valid --
950   -----------------------------------
951
952   overriding function Is_Redefinition_Context_Valid
953    (Self : not null access constant UML_Structured_Activity_Node_Proxy;
954     Redefined : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access)
955       return Boolean is
956   begin
957      --  Generated stub: replace with real body!
958      pragma Compile_Time_Warning (Standard.True, "Is_Redefinition_Context_Valid unimplemented");
959      raise Program_Error with "Unimplemented procedure UML_Structured_Activity_Node_Proxy.Is_Redefinition_Context_Valid";
960      return Is_Redefinition_Context_Valid (Self, Redefined);
961   end Is_Redefinition_Context_Valid;
962
963end AMF.Internals.UML_Structured_Activity_Nodes;
964