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