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_Destruction_Datas; 47with AMF.UML.Properties; 48with AMF.UML.Qualifier_Values.Collections; 49with AMF.Visitors; 50 51package AMF.Internals.UML_Link_End_Destruction_Datas is 52 53 type UML_Link_End_Destruction_Data_Proxy is 54 limited new AMF.Internals.UML_Elements.UML_Element_Proxy 55 and AMF.UML.Link_End_Destruction_Datas.UML_Link_End_Destruction_Data with null record; 56 57 overriding function Get_Destroy_At 58 (Self : not null access constant UML_Link_End_Destruction_Data_Proxy) 59 return AMF.UML.Input_Pins.UML_Input_Pin_Access; 60 -- Getter of LinkEndDestructionData::destroyAt. 61 -- 62 -- Specifies the position of an existing link to be destroyed in ordered 63 -- nonunique association ends. The type of the pin is UnlimitedNatural, 64 -- but the value cannot be zero or unlimited. 65 66 overriding procedure Set_Destroy_At 67 (Self : not null access UML_Link_End_Destruction_Data_Proxy; 68 To : AMF.UML.Input_Pins.UML_Input_Pin_Access); 69 -- Setter of LinkEndDestructionData::destroyAt. 70 -- 71 -- Specifies the position of an existing link to be destroyed in ordered 72 -- nonunique association ends. The type of the pin is UnlimitedNatural, 73 -- but the value cannot be zero or unlimited. 74 75 overriding function Get_Is_Destroy_Duplicates 76 (Self : not null access constant UML_Link_End_Destruction_Data_Proxy) 77 return Boolean; 78 -- Getter of LinkEndDestructionData::isDestroyDuplicates. 79 -- 80 -- Specifies whether to destroy duplicates of the value in nonunique 81 -- association ends. 82 83 overriding procedure Set_Is_Destroy_Duplicates 84 (Self : not null access UML_Link_End_Destruction_Data_Proxy; 85 To : Boolean); 86 -- Setter of LinkEndDestructionData::isDestroyDuplicates. 87 -- 88 -- Specifies whether to destroy duplicates of the value in nonunique 89 -- association ends. 90 91 overriding function Get_End 92 (Self : not null access constant UML_Link_End_Destruction_Data_Proxy) 93 return AMF.UML.Properties.UML_Property_Access; 94 -- Getter of LinkEndData::end. 95 -- 96 -- Association end for which this link-end data specifies values. 97 98 overriding procedure Set_End 99 (Self : not null access UML_Link_End_Destruction_Data_Proxy; 100 To : AMF.UML.Properties.UML_Property_Access); 101 -- Setter of LinkEndData::end. 102 -- 103 -- Association end for which this link-end data specifies values. 104 105 overriding function Get_Qualifier 106 (Self : not null access constant UML_Link_End_Destruction_Data_Proxy) 107 return AMF.UML.Qualifier_Values.Collections.Set_Of_UML_Qualifier_Value; 108 -- Getter of LinkEndData::qualifier. 109 -- 110 -- List of qualifier values 111 112 overriding function Get_Value 113 (Self : not null access constant UML_Link_End_Destruction_Data_Proxy) 114 return AMF.UML.Input_Pins.UML_Input_Pin_Access; 115 -- Getter of LinkEndData::value. 116 -- 117 -- Input pin that provides the specified object for the given end. This 118 -- pin is omitted if the link-end data specifies an 'open' end for reading. 119 120 overriding procedure Set_Value 121 (Self : not null access UML_Link_End_Destruction_Data_Proxy; 122 To : AMF.UML.Input_Pins.UML_Input_Pin_Access); 123 -- Setter of LinkEndData::value. 124 -- 125 -- Input pin that provides the specified object for the given end. This 126 -- pin is omitted if the link-end data specifies an 'open' end for reading. 127 128 overriding procedure Enter_Element 129 (Self : not null access constant UML_Link_End_Destruction_Data_Proxy; 130 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 131 Control : in out AMF.Visitors.Traverse_Control); 132 -- Dispatch call to corresponding subprogram of visitor interface. 133 134 overriding procedure Leave_Element 135 (Self : not null access constant UML_Link_End_Destruction_Data_Proxy; 136 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 137 Control : in out AMF.Visitors.Traverse_Control); 138 -- Dispatch call to corresponding subprogram of visitor interface. 139 140 overriding procedure Visit_Element 141 (Self : not null access constant UML_Link_End_Destruction_Data_Proxy; 142 Iterator : in out AMF.Visitors.Abstract_Iterator'Class; 143 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 144 Control : in out AMF.Visitors.Traverse_Control); 145 -- Dispatch call to corresponding subprogram of iterator interface. 146 147end AMF.Internals.UML_Link_End_Destruction_Datas; 148