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: 2720 $ $Date: 2012-03-24 10:52:18 +0400 (Sat, 24 Mar 2012) $
43------------------------------------------------------------------------------
44--  This file is generated, don't edit it.
45------------------------------------------------------------------------------
46with AMF.Elements;
47with AMF.Internals.Helpers;
48with AMF.Internals.Tables.UML_Attributes;
49with AMF.UML.Behavioral_Features;
50with AMF.UML.Usages;
51with AMF.Visitors.Standard_Profile_L2_Iterators;
52with AMF.Visitors.Standard_Profile_L2_Visitors;
53
54package body AMF.Internals.Standard_Profile_L2_Creates is
55
56   ---------------------------------
57   -- Get_Base_Behavioral_Feature --
58   ---------------------------------
59
60   overriding function Get_Base_Behavioral_Feature
61    (Self : not null access constant Standard_Profile_L2_Create_Proxy)
62       return AMF.UML.Behavioral_Features.UML_Behavioral_Feature_Access is
63   begin
64      return
65        AMF.UML.Behavioral_Features.UML_Behavioral_Feature_Access
66         (AMF.Internals.Helpers.To_Element
67           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Base_Behavioral_Feature
68             (Self.Element)));
69   end Get_Base_Behavioral_Feature;
70
71   ---------------------------------
72   -- Set_Base_Behavioral_Feature --
73   ---------------------------------
74
75   overriding procedure Set_Base_Behavioral_Feature
76    (Self : not null access Standard_Profile_L2_Create_Proxy;
77     To   : AMF.UML.Behavioral_Features.UML_Behavioral_Feature_Access) is
78   begin
79      AMF.Internals.Tables.UML_Attributes.Internal_Set_Base_Behavioral_Feature
80       (Self.Element,
81        AMF.Internals.Helpers.To_Element
82         (AMF.Elements.Element_Access (To)));
83   end Set_Base_Behavioral_Feature;
84
85   --------------------
86   -- Get_Base_Usage --
87   --------------------
88
89   overriding function Get_Base_Usage
90    (Self : not null access constant Standard_Profile_L2_Create_Proxy)
91       return AMF.UML.Usages.UML_Usage_Access is
92   begin
93      return
94        AMF.UML.Usages.UML_Usage_Access
95         (AMF.Internals.Helpers.To_Element
96           (AMF.Internals.Tables.UML_Attributes.Internal_Get_Base_Usage
97             (Self.Element)));
98   end Get_Base_Usage;
99
100   --------------------
101   -- Set_Base_Usage --
102   --------------------
103
104   overriding procedure Set_Base_Usage
105    (Self : not null access Standard_Profile_L2_Create_Proxy;
106     To   : AMF.UML.Usages.UML_Usage_Access) is
107   begin
108      AMF.Internals.Tables.UML_Attributes.Internal_Set_Base_Usage
109       (Self.Element,
110        AMF.Internals.Helpers.To_Element
111         (AMF.Elements.Element_Access (To)));
112   end Set_Base_Usage;
113
114   -------------------
115   -- Enter_Element --
116   -------------------
117
118   overriding procedure Enter_Element
119    (Self    : not null access constant Standard_Profile_L2_Create_Proxy;
120     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
121     Control : in out AMF.Visitors.Traverse_Control) is
122   begin
123      if Visitor in AMF.Visitors.Standard_Profile_L2_Visitors.Standard_Profile_L2_Visitor'Class then
124         AMF.Visitors.Standard_Profile_L2_Visitors.Standard_Profile_L2_Visitor'Class
125          (Visitor).Enter_Create
126            (AMF.Standard_Profile_L2.Creates.Standard_Profile_L2_Create_Access (Self),
127           Control);
128      end if;
129   end Enter_Element;
130
131   -------------------
132   -- Leave_Element --
133   -------------------
134
135   overriding procedure Leave_Element
136    (Self    : not null access constant Standard_Profile_L2_Create_Proxy;
137     Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
138     Control : in out AMF.Visitors.Traverse_Control) is
139   begin
140      if Visitor in AMF.Visitors.Standard_Profile_L2_Visitors.Standard_Profile_L2_Visitor'Class then
141         AMF.Visitors.Standard_Profile_L2_Visitors.Standard_Profile_L2_Visitor'Class
142          (Visitor).Leave_Create
143            (AMF.Standard_Profile_L2.Creates.Standard_Profile_L2_Create_Access (Self),
144           Control);
145      end if;
146   end Leave_Element;
147
148   -------------------
149   -- Visit_Element --
150   -------------------
151
152   overriding procedure Visit_Element
153    (Self     : not null access constant Standard_Profile_L2_Create_Proxy;
154     Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
155     Visitor  : in out AMF.Visitors.Abstract_Visitor'Class;
156     Control  : in out AMF.Visitors.Traverse_Control) is
157   begin
158      if Iterator in AMF.Visitors.Standard_Profile_L2_Iterators.Standard_Profile_L2_Iterator'Class then
159         AMF.Visitors.Standard_Profile_L2_Iterators.Standard_Profile_L2_Iterator'Class
160          (Iterator).Visit_Create
161            (Visitor,
162             AMF.Standard_Profile_L2.Creates.Standard_Profile_L2_Create_Access (Self),
163           Control);
164      end if;
165   end Visit_Element;
166
167end AMF.Internals.Standard_Profile_L2_Creates;
168