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.Elements.Collections; 46with AMF.UML.Template_Bindings; 47with AMF.UML.Template_Parameter_Substitutions.Collections; 48with AMF.UML.Template_Signatures; 49with AMF.UML.Templateable_Elements; 50with AMF.Visitors; 51 52package AMF.Internals.UML_Template_Bindings is 53 54 type UML_Template_Binding_Proxy is 55 limited new AMF.Internals.UML_Elements.UML_Element_Proxy 56 and AMF.UML.Template_Bindings.UML_Template_Binding with null record; 57 58 overriding function Get_Bound_Element 59 (Self : not null access constant UML_Template_Binding_Proxy) 60 return AMF.UML.Templateable_Elements.UML_Templateable_Element_Access; 61 -- Getter of TemplateBinding::boundElement. 62 -- 63 -- The element that is bound by this binding. 64 65 overriding procedure Set_Bound_Element 66 (Self : not null access UML_Template_Binding_Proxy; 67 To : AMF.UML.Templateable_Elements.UML_Templateable_Element_Access); 68 -- Setter of TemplateBinding::boundElement. 69 -- 70 -- The element that is bound by this binding. 71 72 overriding function Get_Parameter_Substitution 73 (Self : not null access constant UML_Template_Binding_Proxy) 74 return AMF.UML.Template_Parameter_Substitutions.Collections.Set_Of_UML_Template_Parameter_Substitution; 75 -- Getter of TemplateBinding::parameterSubstitution. 76 -- 77 -- The parameter substitutions owned by this template binding. 78 79 overriding function Get_Signature 80 (Self : not null access constant UML_Template_Binding_Proxy) 81 return AMF.UML.Template_Signatures.UML_Template_Signature_Access; 82 -- Getter of TemplateBinding::signature. 83 -- 84 -- The template signature for the template that is the target of the 85 -- binding. 86 87 overriding procedure Set_Signature 88 (Self : not null access UML_Template_Binding_Proxy; 89 To : AMF.UML.Template_Signatures.UML_Template_Signature_Access); 90 -- Setter of TemplateBinding::signature. 91 -- 92 -- The template signature for the template that is the target of the 93 -- binding. 94 95 overriding function Get_Source 96 (Self : not null access constant UML_Template_Binding_Proxy) 97 return AMF.UML.Elements.Collections.Set_Of_UML_Element; 98 -- Getter of DirectedRelationship::source. 99 -- 100 -- Specifies the sources of the DirectedRelationship. 101 102 overriding function Get_Target 103 (Self : not null access constant UML_Template_Binding_Proxy) 104 return AMF.UML.Elements.Collections.Set_Of_UML_Element; 105 -- Getter of DirectedRelationship::target. 106 -- 107 -- Specifies the targets of the DirectedRelationship. 108 109 overriding function Get_Related_Element 110 (Self : not null access constant UML_Template_Binding_Proxy) 111 return AMF.UML.Elements.Collections.Set_Of_UML_Element; 112 -- Getter of Relationship::relatedElement. 113 -- 114 -- Specifies the elements related by the Relationship. 115 116 overriding procedure Enter_Element 117 (Self : not null access constant UML_Template_Binding_Proxy; 118 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 119 Control : in out AMF.Visitors.Traverse_Control); 120 -- Dispatch call to corresponding subprogram of visitor interface. 121 122 overriding procedure Leave_Element 123 (Self : not null access constant UML_Template_Binding_Proxy; 124 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 125 Control : in out AMF.Visitors.Traverse_Control); 126 -- Dispatch call to corresponding subprogram of visitor interface. 127 128 overriding procedure Visit_Element 129 (Self : not null access constant UML_Template_Binding_Proxy; 130 Iterator : in out AMF.Visitors.Abstract_Iterator'Class; 131 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 132 Control : in out AMF.Visitors.Traverse_Control); 133 -- Dispatch call to corresponding subprogram of iterator interface. 134 135end AMF.Internals.UML_Template_Bindings; 136