1------------------------------------------------------------------------------ 2-- -- 3-- Matreshka Project -- 4-- -- 5-- Ada Modeling Framework -- 6-- -- 7-- Runtime Library Component -- 8-- -- 9------------------------------------------------------------------------------ 10-- -- 11-- Copyright © 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: 2807 $ $Date: 2012-04-07 01:28:23 +0400 (Sat, 07 Apr 2012) $ 43------------------------------------------------------------------------------ 44-- This file is generated, don't edit it. 45------------------------------------------------------------------------------ 46with AMF.Elements; 47with AMF.Internals.Helpers; 48with AMF.Internals.Tables.Utp_Attributes; 49with AMF.UML.Invocation_Actions; 50with AMF.UML.Opaque_Actions; 51with AMF.Visitors.Utp_Iterators; 52with AMF.Visitors.Utp_Visitors; 53 54package body AMF.Internals.Utp_Finish_Actions is 55 56 ---------------------------- 57 -- Get_Base_Opaque_Action -- 58 ---------------------------- 59 60 overriding function Get_Base_Opaque_Action 61 (Self : not null access constant Utp_Finish_Action_Proxy) 62 return AMF.UML.Opaque_Actions.UML_Opaque_Action_Access is 63 begin 64 return 65 AMF.UML.Opaque_Actions.UML_Opaque_Action_Access 66 (AMF.Internals.Helpers.To_Element 67 (AMF.Internals.Tables.Utp_Attributes.Internal_Get_Base_Opaque_Action 68 (Self.Element))); 69 end Get_Base_Opaque_Action; 70 71 ---------------------------- 72 -- Set_Base_Opaque_Action -- 73 ---------------------------- 74 75 overriding procedure Set_Base_Opaque_Action 76 (Self : not null access Utp_Finish_Action_Proxy; 77 To : AMF.UML.Opaque_Actions.UML_Opaque_Action_Access) is 78 begin 79 AMF.Internals.Tables.Utp_Attributes.Internal_Set_Base_Opaque_Action 80 (Self.Element, 81 AMF.Internals.Helpers.To_Element 82 (AMF.Elements.Element_Access (To))); 83 end Set_Base_Opaque_Action; 84 85 -------------------------------- 86 -- Get_Base_Invocation_Action -- 87 -------------------------------- 88 89 overriding function Get_Base_Invocation_Action 90 (Self : not null access constant Utp_Finish_Action_Proxy) 91 return AMF.UML.Invocation_Actions.UML_Invocation_Action_Access is 92 begin 93 return 94 AMF.UML.Invocation_Actions.UML_Invocation_Action_Access 95 (AMF.Internals.Helpers.To_Element 96 (AMF.Internals.Tables.Utp_Attributes.Internal_Get_Base_Invocation_Action 97 (Self.Element))); 98 end Get_Base_Invocation_Action; 99 100 -------------------------------- 101 -- Set_Base_Invocation_Action -- 102 -------------------------------- 103 104 overriding procedure Set_Base_Invocation_Action 105 (Self : not null access Utp_Finish_Action_Proxy; 106 To : AMF.UML.Invocation_Actions.UML_Invocation_Action_Access) is 107 begin 108 AMF.Internals.Tables.Utp_Attributes.Internal_Set_Base_Invocation_Action 109 (Self.Element, 110 AMF.Internals.Helpers.To_Element 111 (AMF.Elements.Element_Access (To))); 112 end Set_Base_Invocation_Action; 113 114 ------------------- 115 -- Enter_Element -- 116 ------------------- 117 118 overriding procedure Enter_Element 119 (Self : not null access constant Utp_Finish_Action_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.Utp_Visitors.Utp_Visitor'Class then 124 AMF.Visitors.Utp_Visitors.Utp_Visitor'Class 125 (Visitor).Enter_Finish_Action 126 (AMF.Utp.Finish_Actions.Utp_Finish_Action_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 Utp_Finish_Action_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.Utp_Visitors.Utp_Visitor'Class then 141 AMF.Visitors.Utp_Visitors.Utp_Visitor'Class 142 (Visitor).Leave_Finish_Action 143 (AMF.Utp.Finish_Actions.Utp_Finish_Action_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 Utp_Finish_Action_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.Utp_Iterators.Utp_Iterator'Class then 159 AMF.Visitors.Utp_Iterators.Utp_Iterator'Class 160 (Iterator).Visit_Finish_Action 161 (Visitor, 162 AMF.Utp.Finish_Actions.Utp_Finish_Action_Access (Self), 163 Control); 164 end if; 165 end Visit_Element; 166 167end AMF.Internals.Utp_Finish_Actions; 168