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: 2864 $ $Date: 2012-04-13 14:08:07 +0400 (Fri, 13 Apr 2012) $ 43------------------------------------------------------------------------------ 44with AMF.Internals.UML_Elements; 45with AMF.UML.Input_Pins; 46with AMF.UML.Link_End_Datas; 47with AMF.UML.Properties; 48with AMF.UML.Qualifier_Values.Collections; 49with AMF.Visitors; 50 51package AMF.Internals.UML_Link_End_Datas is 52 53 type UML_Link_End_Data_Proxy is 54 limited new AMF.Internals.UML_Elements.UML_Element_Proxy 55 and AMF.UML.Link_End_Datas.UML_Link_End_Data with null record; 56 57 overriding function Get_End 58 (Self : not null access constant UML_Link_End_Data_Proxy) 59 return AMF.UML.Properties.UML_Property_Access; 60 -- Getter of LinkEndData::end. 61 -- 62 -- Association end for which this link-end data specifies values. 63 64 overriding procedure Set_End 65 (Self : not null access UML_Link_End_Data_Proxy; 66 To : AMF.UML.Properties.UML_Property_Access); 67 -- Setter of LinkEndData::end. 68 -- 69 -- Association end for which this link-end data specifies values. 70 71 overriding function Get_Qualifier 72 (Self : not null access constant UML_Link_End_Data_Proxy) 73 return AMF.UML.Qualifier_Values.Collections.Set_Of_UML_Qualifier_Value; 74 -- Getter of LinkEndData::qualifier. 75 -- 76 -- List of qualifier values 77 78 overriding function Get_Value 79 (Self : not null access constant UML_Link_End_Data_Proxy) 80 return AMF.UML.Input_Pins.UML_Input_Pin_Access; 81 -- Getter of LinkEndData::value. 82 -- 83 -- Input pin that provides the specified object for the given end. This 84 -- pin is omitted if the link-end data specifies an 'open' end for reading. 85 86 overriding procedure Set_Value 87 (Self : not null access UML_Link_End_Data_Proxy; 88 To : AMF.UML.Input_Pins.UML_Input_Pin_Access); 89 -- Setter of LinkEndData::value. 90 -- 91 -- Input pin that provides the specified object for the given end. This 92 -- pin is omitted if the link-end data specifies an 'open' end for reading. 93 94 overriding procedure Enter_Element 95 (Self : not null access constant UML_Link_End_Data_Proxy; 96 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 97 Control : in out AMF.Visitors.Traverse_Control); 98 -- Dispatch call to corresponding subprogram of visitor interface. 99 100 overriding procedure Leave_Element 101 (Self : not null access constant UML_Link_End_Data_Proxy; 102 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 103 Control : in out AMF.Visitors.Traverse_Control); 104 -- Dispatch call to corresponding subprogram of visitor interface. 105 106 overriding procedure Visit_Element 107 (Self : not null access constant UML_Link_End_Data_Proxy; 108 Iterator : in out AMF.Visitors.Abstract_Iterator'Class; 109 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 110 Control : in out AMF.Visitors.Traverse_Control); 111 -- Dispatch call to corresponding subprogram of iterator interface. 112 113end AMF.Internals.UML_Link_End_Datas; 114