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_Call_Operation_Actions is
54
55   -------------------
56   -- Enter_Element --
57   -------------------
58
59   overriding procedure Enter_Element
60    (Self    : not null access constant UML_Call_Operation_Action_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_Call_Operation_Action
67            (AMF.UML.Call_Operation_Actions.UML_Call_Operation_Action_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_Call_Operation_Action_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_Call_Operation_Action
84            (AMF.UML.Call_Operation_Actions.UML_Call_Operation_Action_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_Call_Operation_Action_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_Call_Operation_Action
102            (Visitor,
103             AMF.UML.Call_Operation_Actions.UML_Call_Operation_Action_Access (Self),
104             Control);
105      end if;
106   end Visit_Element;
107
108   -------------------
109   -- Get_Operation --
110   -------------------
111
112   overriding function Get_Operation
113    (Self : not null access constant UML_Call_Operation_Action_Proxy)
114       return AMF.UML.Operations.UML_Operation_Access is
115   begin
116      return
117        AMF.UML.Operations.UML_Operation_Access
118         (AMF.Internals.Helpers.To_Element
119           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Operation
120             (Self.Element)));
121   end Get_Operation;
122
123   -------------------
124   -- Set_Operation --
125   -------------------
126
127   overriding procedure Set_Operation
128    (Self : not null access UML_Call_Operation_Action_Proxy;
129     To   : AMF.UML.Operations.UML_Operation_Access) is
130   begin
131      AMF.Internals.Tables.UML_Attributes.Internal_Set_Operation
132       (Self.Element,
133        AMF.Internals.Helpers.To_Element
134         (AMF.Elements.Element_Access (To)));
135   end Set_Operation;
136
137   ----------------
138   -- Get_Target --
139   ----------------
140
141   overriding function Get_Target
142    (Self : not null access constant UML_Call_Operation_Action_Proxy)
143       return AMF.UML.Input_Pins.UML_Input_Pin_Access is
144   begin
145      return
146        AMF.UML.Input_Pins.UML_Input_Pin_Access
147         (AMF.Internals.Helpers.To_Element
148           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Target
149             (Self.Element)));
150   end Get_Target;
151
152   ----------------
153   -- Set_Target --
154   ----------------
155
156   overriding procedure Set_Target
157    (Self : not null access UML_Call_Operation_Action_Proxy;
158     To   : AMF.UML.Input_Pins.UML_Input_Pin_Access) is
159   begin
160      AMF.Internals.Tables.UML_Attributes.Internal_Set_Target
161       (Self.Element,
162        AMF.Internals.Helpers.To_Element
163         (AMF.Elements.Element_Access (To)));
164   end Set_Target;
165
166   ------------------------
167   -- Get_Is_Synchronous --
168   ------------------------
169
170   overriding function Get_Is_Synchronous
171    (Self : not null access constant UML_Call_Operation_Action_Proxy)
172       return Boolean is
173   begin
174      return
175        AMF.Internals.Tables.UML_Attributes.Internal_Get_Is_Synchronous
176         (Self.Element);
177   end Get_Is_Synchronous;
178
179   ------------------------
180   -- Set_Is_Synchronous --
181   ------------------------
182
183   overriding procedure Set_Is_Synchronous
184    (Self : not null access UML_Call_Operation_Action_Proxy;
185     To   : Boolean) is
186   begin
187      AMF.Internals.Tables.UML_Attributes.Internal_Set_Is_Synchronous
188       (Self.Element, To);
189   end Set_Is_Synchronous;
190
191   ----------------
192   -- Get_Result --
193   ----------------
194
195   overriding function Get_Result
196    (Self : not null access constant UML_Call_Operation_Action_Proxy)
197       return AMF.UML.Output_Pins.Collections.Ordered_Set_Of_UML_Output_Pin is
198   begin
199      return
200        AMF.UML.Output_Pins.Collections.Wrap
201         (AMF.Internals.Element_Collections.Wrap
202           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Result
203             (Self.Element)));
204   end Get_Result;
205
206   ------------------
207   -- Get_Argument --
208   ------------------
209
210   overriding function Get_Argument
211    (Self : not null access constant UML_Call_Operation_Action_Proxy)
212       return AMF.UML.Input_Pins.Collections.Ordered_Set_Of_UML_Input_Pin is
213   begin
214      return
215        AMF.UML.Input_Pins.Collections.Wrap
216         (AMF.Internals.Element_Collections.Wrap
217           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Argument
218             (Self.Element)));
219   end Get_Argument;
220
221   -----------------
222   -- Get_On_Port --
223   -----------------
224
225   overriding function Get_On_Port
226    (Self : not null access constant UML_Call_Operation_Action_Proxy)
227       return AMF.UML.Ports.UML_Port_Access is
228   begin
229      return
230        AMF.UML.Ports.UML_Port_Access
231         (AMF.Internals.Helpers.To_Element
232           (AMF.Internals.Tables.UML_Attributes.Internal_Get_On_Port
233             (Self.Element)));
234   end Get_On_Port;
235
236   -----------------
237   -- Set_On_Port --
238   -----------------
239
240   overriding procedure Set_On_Port
241    (Self : not null access UML_Call_Operation_Action_Proxy;
242     To   : AMF.UML.Ports.UML_Port_Access) is
243   begin
244      AMF.Internals.Tables.UML_Attributes.Internal_Set_On_Port
245       (Self.Element,
246        AMF.Internals.Helpers.To_Element
247         (AMF.Elements.Element_Access (To)));
248   end Set_On_Port;
249
250   -----------------
251   -- Get_Context --
252   -----------------
253
254   overriding function Get_Context
255    (Self : not null access constant UML_Call_Operation_Action_Proxy)
256       return AMF.UML.Classifiers.UML_Classifier_Access is
257   begin
258      return
259        AMF.UML.Classifiers.UML_Classifier_Access
260         (AMF.Internals.Helpers.To_Element
261           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Context
262             (Self.Element)));
263   end Get_Context;
264
265   ---------------
266   -- Get_Input --
267   ---------------
268
269   overriding function Get_Input
270    (Self : not null access constant UML_Call_Operation_Action_Proxy)
271       return AMF.UML.Input_Pins.Collections.Ordered_Set_Of_UML_Input_Pin is
272   begin
273      return
274        AMF.UML.Input_Pins.Collections.Wrap
275         (AMF.Internals.Element_Collections.Wrap
276           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Input
277             (Self.Element)));
278   end Get_Input;
279
280   ------------------------------
281   -- Get_Is_Locally_Reentrant --
282   ------------------------------
283
284   overriding function Get_Is_Locally_Reentrant
285    (Self : not null access constant UML_Call_Operation_Action_Proxy)
286       return Boolean is
287   begin
288      return
289        AMF.Internals.Tables.UML_Attributes.Internal_Get_Is_Locally_Reentrant
290         (Self.Element);
291   end Get_Is_Locally_Reentrant;
292
293   ------------------------------
294   -- Set_Is_Locally_Reentrant --
295   ------------------------------
296
297   overriding procedure Set_Is_Locally_Reentrant
298    (Self : not null access UML_Call_Operation_Action_Proxy;
299     To   : Boolean) is
300   begin
301      AMF.Internals.Tables.UML_Attributes.Internal_Set_Is_Locally_Reentrant
302       (Self.Element, To);
303   end Set_Is_Locally_Reentrant;
304
305   -----------------------------
306   -- Get_Local_Postcondition --
307   -----------------------------
308
309   overriding function Get_Local_Postcondition
310    (Self : not null access constant UML_Call_Operation_Action_Proxy)
311       return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint is
312   begin
313      return
314        AMF.UML.Constraints.Collections.Wrap
315         (AMF.Internals.Element_Collections.Wrap
316           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Local_Postcondition
317             (Self.Element)));
318   end Get_Local_Postcondition;
319
320   ----------------------------
321   -- Get_Local_Precondition --
322   ----------------------------
323
324   overriding function Get_Local_Precondition
325    (Self : not null access constant UML_Call_Operation_Action_Proxy)
326       return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint is
327   begin
328      return
329        AMF.UML.Constraints.Collections.Wrap
330         (AMF.Internals.Element_Collections.Wrap
331           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Local_Precondition
332             (Self.Element)));
333   end Get_Local_Precondition;
334
335   ----------------
336   -- Get_Output --
337   ----------------
338
339   overriding function Get_Output
340    (Self : not null access constant UML_Call_Operation_Action_Proxy)
341       return AMF.UML.Output_Pins.Collections.Ordered_Set_Of_UML_Output_Pin is
342   begin
343      return
344        AMF.UML.Output_Pins.Collections.Wrap
345         (AMF.Internals.Element_Collections.Wrap
346           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Output
347             (Self.Element)));
348   end Get_Output;
349
350   -----------------
351   -- Get_Handler --
352   -----------------
353
354   overriding function Get_Handler
355    (Self : not null access constant UML_Call_Operation_Action_Proxy)
356       return AMF.UML.Exception_Handlers.Collections.Set_Of_UML_Exception_Handler is
357   begin
358      return
359        AMF.UML.Exception_Handlers.Collections.Wrap
360         (AMF.Internals.Element_Collections.Wrap
361           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Handler
362             (Self.Element)));
363   end Get_Handler;
364
365   ------------------
366   -- Get_Activity --
367   ------------------
368
369   overriding function Get_Activity
370    (Self : not null access constant UML_Call_Operation_Action_Proxy)
371       return AMF.UML.Activities.UML_Activity_Access is
372   begin
373      return
374        AMF.UML.Activities.UML_Activity_Access
375         (AMF.Internals.Helpers.To_Element
376           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Activity
377             (Self.Element)));
378   end Get_Activity;
379
380   ------------------
381   -- Set_Activity --
382   ------------------
383
384   overriding procedure Set_Activity
385    (Self : not null access UML_Call_Operation_Action_Proxy;
386     To   : AMF.UML.Activities.UML_Activity_Access) is
387   begin
388      AMF.Internals.Tables.UML_Attributes.Internal_Set_Activity
389       (Self.Element,
390        AMF.Internals.Helpers.To_Element
391         (AMF.Elements.Element_Access (To)));
392   end Set_Activity;
393
394   ------------------
395   -- Get_In_Group --
396   ------------------
397
398   overriding function Get_In_Group
399    (Self : not null access constant UML_Call_Operation_Action_Proxy)
400       return AMF.UML.Activity_Groups.Collections.Set_Of_UML_Activity_Group is
401   begin
402      return
403        AMF.UML.Activity_Groups.Collections.Wrap
404         (AMF.Internals.Element_Collections.Wrap
405           (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Group
406             (Self.Element)));
407   end Get_In_Group;
408
409   ---------------------------------
410   -- Get_In_Interruptible_Region --
411   ---------------------------------
412
413   overriding function Get_In_Interruptible_Region
414    (Self : not null access constant UML_Call_Operation_Action_Proxy)
415       return AMF.UML.Interruptible_Activity_Regions.Collections.Set_Of_UML_Interruptible_Activity_Region is
416   begin
417      return
418        AMF.UML.Interruptible_Activity_Regions.Collections.Wrap
419         (AMF.Internals.Element_Collections.Wrap
420           (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Interruptible_Region
421             (Self.Element)));
422   end Get_In_Interruptible_Region;
423
424   ----------------------
425   -- Get_In_Partition --
426   ----------------------
427
428   overriding function Get_In_Partition
429    (Self : not null access constant UML_Call_Operation_Action_Proxy)
430       return AMF.UML.Activity_Partitions.Collections.Set_Of_UML_Activity_Partition is
431   begin
432      return
433        AMF.UML.Activity_Partitions.Collections.Wrap
434         (AMF.Internals.Element_Collections.Wrap
435           (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Partition
436             (Self.Element)));
437   end Get_In_Partition;
438
439   ----------------------------
440   -- Get_In_Structured_Node --
441   ----------------------------
442
443   overriding function Get_In_Structured_Node
444    (Self : not null access constant UML_Call_Operation_Action_Proxy)
445       return AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access is
446   begin
447      return
448        AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access
449         (AMF.Internals.Helpers.To_Element
450           (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Structured_Node
451             (Self.Element)));
452   end Get_In_Structured_Node;
453
454   ----------------------------
455   -- Set_In_Structured_Node --
456   ----------------------------
457
458   overriding procedure Set_In_Structured_Node
459    (Self : not null access UML_Call_Operation_Action_Proxy;
460     To   : AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access) is
461   begin
462      AMF.Internals.Tables.UML_Attributes.Internal_Set_In_Structured_Node
463       (Self.Element,
464        AMF.Internals.Helpers.To_Element
465         (AMF.Elements.Element_Access (To)));
466   end Set_In_Structured_Node;
467
468   ------------------
469   -- Get_Incoming --
470   ------------------
471
472   overriding function Get_Incoming
473    (Self : not null access constant UML_Call_Operation_Action_Proxy)
474       return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge is
475   begin
476      return
477        AMF.UML.Activity_Edges.Collections.Wrap
478         (AMF.Internals.Element_Collections.Wrap
479           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Incoming
480             (Self.Element)));
481   end Get_Incoming;
482
483   ------------------
484   -- Get_Outgoing --
485   ------------------
486
487   overriding function Get_Outgoing
488    (Self : not null access constant UML_Call_Operation_Action_Proxy)
489       return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge is
490   begin
491      return
492        AMF.UML.Activity_Edges.Collections.Wrap
493         (AMF.Internals.Element_Collections.Wrap
494           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Outgoing
495             (Self.Element)));
496   end Get_Outgoing;
497
498   ------------------------
499   -- Get_Redefined_Node --
500   ------------------------
501
502   overriding function Get_Redefined_Node
503    (Self : not null access constant UML_Call_Operation_Action_Proxy)
504       return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node is
505   begin
506      return
507        AMF.UML.Activity_Nodes.Collections.Wrap
508         (AMF.Internals.Element_Collections.Wrap
509           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Redefined_Node
510             (Self.Element)));
511   end Get_Redefined_Node;
512
513   -----------------
514   -- Get_Is_Leaf --
515   -----------------
516
517   overriding function Get_Is_Leaf
518    (Self : not null access constant UML_Call_Operation_Action_Proxy)
519       return Boolean is
520   begin
521      return
522        AMF.Internals.Tables.UML_Attributes.Internal_Get_Is_Leaf
523         (Self.Element);
524   end Get_Is_Leaf;
525
526   -----------------
527   -- Set_Is_Leaf --
528   -----------------
529
530   overriding procedure Set_Is_Leaf
531    (Self : not null access UML_Call_Operation_Action_Proxy;
532     To   : Boolean) is
533   begin
534      AMF.Internals.Tables.UML_Attributes.Internal_Set_Is_Leaf
535       (Self.Element, To);
536   end Set_Is_Leaf;
537
538   ---------------------------
539   -- Get_Redefined_Element --
540   ---------------------------
541
542   overriding function Get_Redefined_Element
543    (Self : not null access constant UML_Call_Operation_Action_Proxy)
544       return AMF.UML.Redefinable_Elements.Collections.Set_Of_UML_Redefinable_Element is
545   begin
546      return
547        AMF.UML.Redefinable_Elements.Collections.Wrap
548         (AMF.Internals.Element_Collections.Wrap
549           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Redefined_Element
550             (Self.Element)));
551   end Get_Redefined_Element;
552
553   ------------------------------
554   -- Get_Redefinition_Context --
555   ------------------------------
556
557   overriding function Get_Redefinition_Context
558    (Self : not null access constant UML_Call_Operation_Action_Proxy)
559       return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier is
560   begin
561      return
562        AMF.UML.Classifiers.Collections.Wrap
563         (AMF.Internals.Element_Collections.Wrap
564           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Redefinition_Context
565             (Self.Element)));
566   end Get_Redefinition_Context;
567
568   ---------------------------
569   -- Get_Client_Dependency --
570   ---------------------------
571
572   overriding function Get_Client_Dependency
573    (Self : not null access constant UML_Call_Operation_Action_Proxy)
574       return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency is
575   begin
576      return
577        AMF.UML.Dependencies.Collections.Wrap
578         (AMF.Internals.Element_Collections.Wrap
579           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Client_Dependency
580             (Self.Element)));
581   end Get_Client_Dependency;
582
583   -------------------------
584   -- Get_Name_Expression --
585   -------------------------
586
587   overriding function Get_Name_Expression
588    (Self : not null access constant UML_Call_Operation_Action_Proxy)
589       return AMF.UML.String_Expressions.UML_String_Expression_Access is
590   begin
591      return
592        AMF.UML.String_Expressions.UML_String_Expression_Access
593         (AMF.Internals.Helpers.To_Element
594           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Name_Expression
595             (Self.Element)));
596   end Get_Name_Expression;
597
598   -------------------------
599   -- Set_Name_Expression --
600   -------------------------
601
602   overriding procedure Set_Name_Expression
603    (Self : not null access UML_Call_Operation_Action_Proxy;
604     To   : AMF.UML.String_Expressions.UML_String_Expression_Access) is
605   begin
606      AMF.Internals.Tables.UML_Attributes.Internal_Set_Name_Expression
607       (Self.Element,
608        AMF.Internals.Helpers.To_Element
609         (AMF.Elements.Element_Access (To)));
610   end Set_Name_Expression;
611
612   -------------------
613   -- Get_Namespace --
614   -------------------
615
616   overriding function Get_Namespace
617    (Self : not null access constant UML_Call_Operation_Action_Proxy)
618       return AMF.UML.Namespaces.UML_Namespace_Access is
619   begin
620      return
621        AMF.UML.Namespaces.UML_Namespace_Access
622         (AMF.Internals.Helpers.To_Element
623           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Namespace
624             (Self.Element)));
625   end Get_Namespace;
626
627   ------------------------
628   -- Get_Qualified_Name --
629   ------------------------
630
631   overriding function Get_Qualified_Name
632    (Self : not null access constant UML_Call_Operation_Action_Proxy)
633       return AMF.Optional_String is
634   begin
635      declare
636         use type Matreshka.Internals.Strings.Shared_String_Access;
637
638         Aux : constant Matreshka.Internals.Strings.Shared_String_Access
639           := AMF.Internals.Tables.UML_Attributes.Internal_Get_Qualified_Name (Self.Element);
640
641      begin
642         if Aux = null then
643            return (Is_Empty => True);
644
645         else
646            return (False, League.Strings.Internals.Create (Aux));
647         end if;
648      end;
649   end Get_Qualified_Name;
650
651   -------------
652   -- Context --
653   -------------
654
655   overriding function Context
656    (Self : not null access constant UML_Call_Operation_Action_Proxy)
657       return AMF.UML.Classifiers.UML_Classifier_Access is
658   begin
659      --  Generated stub: replace with real body!
660      pragma Compile_Time_Warning (Standard.True, "Context unimplemented");
661      raise Program_Error with "Unimplemented procedure UML_Call_Operation_Action_Proxy.Context";
662      return Context (Self);
663   end Context;
664
665   ------------------------
666   -- Is_Consistent_With --
667   ------------------------
668
669   overriding function Is_Consistent_With
670    (Self : not null access constant UML_Call_Operation_Action_Proxy;
671     Redefinee : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access)
672       return Boolean is
673   begin
674      --  Generated stub: replace with real body!
675      pragma Compile_Time_Warning (Standard.True, "Is_Consistent_With unimplemented");
676      raise Program_Error with "Unimplemented procedure UML_Call_Operation_Action_Proxy.Is_Consistent_With";
677      return Is_Consistent_With (Self, Redefinee);
678   end Is_Consistent_With;
679
680   -----------------------------------
681   -- Is_Redefinition_Context_Valid --
682   -----------------------------------
683
684   overriding function Is_Redefinition_Context_Valid
685    (Self : not null access constant UML_Call_Operation_Action_Proxy;
686     Redefined : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access)
687       return Boolean is
688   begin
689      --  Generated stub: replace with real body!
690      pragma Compile_Time_Warning (Standard.True, "Is_Redefinition_Context_Valid unimplemented");
691      raise Program_Error with "Unimplemented procedure UML_Call_Operation_Action_Proxy.Is_Redefinition_Context_Valid";
692      return Is_Redefinition_Context_Valid (Self, Redefined);
693   end Is_Redefinition_Context_Valid;
694
695   -------------------------
696   -- All_Owning_Packages --
697   -------------------------
698
699   overriding function All_Owning_Packages
700    (Self : not null access constant UML_Call_Operation_Action_Proxy)
701       return AMF.UML.Packages.Collections.Set_Of_UML_Package is
702   begin
703      --  Generated stub: replace with real body!
704      pragma Compile_Time_Warning (Standard.True, "All_Owning_Packages unimplemented");
705      raise Program_Error with "Unimplemented procedure UML_Call_Operation_Action_Proxy.All_Owning_Packages";
706      return All_Owning_Packages (Self);
707   end All_Owning_Packages;
708
709   -----------------------------
710   -- Is_Distinguishable_From --
711   -----------------------------
712
713   overriding function Is_Distinguishable_From
714    (Self : not null access constant UML_Call_Operation_Action_Proxy;
715     N : AMF.UML.Named_Elements.UML_Named_Element_Access;
716     Ns : AMF.UML.Namespaces.UML_Namespace_Access)
717       return Boolean is
718   begin
719      --  Generated stub: replace with real body!
720      pragma Compile_Time_Warning (Standard.True, "Is_Distinguishable_From unimplemented");
721      raise Program_Error with "Unimplemented procedure UML_Call_Operation_Action_Proxy.Is_Distinguishable_From";
722      return Is_Distinguishable_From (Self, N, Ns);
723   end Is_Distinguishable_From;
724
725   ---------------
726   -- Namespace --
727   ---------------
728
729   overriding function Namespace
730    (Self : not null access constant UML_Call_Operation_Action_Proxy)
731       return AMF.UML.Namespaces.UML_Namespace_Access is
732   begin
733      --  Generated stub: replace with real body!
734      pragma Compile_Time_Warning (Standard.True, "Namespace unimplemented");
735      raise Program_Error with "Unimplemented procedure UML_Call_Operation_Action_Proxy.Namespace";
736      return Namespace (Self);
737   end Namespace;
738
739end AMF.Internals.UML_Call_Operation_Actions;
740