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