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.Parameterable_Elements; 46with AMF.UML.Template_Bindings; 47with AMF.UML.Template_Parameter_Substitutions; 48with AMF.UML.Template_Parameters; 49with AMF.Visitors; 50 51package AMF.Internals.UML_Template_Parameter_Substitutions is 52 53 type UML_Template_Parameter_Substitution_Proxy is 54 limited new AMF.Internals.UML_Elements.UML_Element_Proxy 55 and AMF.UML.Template_Parameter_Substitutions.UML_Template_Parameter_Substitution with null record; 56 57 overriding function Get_Actual 58 (Self : not null access constant UML_Template_Parameter_Substitution_Proxy) 59 return AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access; 60 -- Getter of TemplateParameterSubstitution::actual. 61 -- 62 -- The element that is the actual parameter for this substitution. 63 64 overriding procedure Set_Actual 65 (Self : not null access UML_Template_Parameter_Substitution_Proxy; 66 To : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access); 67 -- Setter of TemplateParameterSubstitution::actual. 68 -- 69 -- The element that is the actual parameter for this substitution. 70 71 overriding function Get_Formal 72 (Self : not null access constant UML_Template_Parameter_Substitution_Proxy) 73 return AMF.UML.Template_Parameters.UML_Template_Parameter_Access; 74 -- Getter of TemplateParameterSubstitution::formal. 75 -- 76 -- The formal template parameter that is associated with this substitution. 77 78 overriding procedure Set_Formal 79 (Self : not null access UML_Template_Parameter_Substitution_Proxy; 80 To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access); 81 -- Setter of TemplateParameterSubstitution::formal. 82 -- 83 -- The formal template parameter that is associated with this substitution. 84 85 overriding function Get_Owned_Actual 86 (Self : not null access constant UML_Template_Parameter_Substitution_Proxy) 87 return AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access; 88 -- Getter of TemplateParameterSubstitution::ownedActual. 89 -- 90 -- The actual parameter that is owned by this substitution. 91 92 overriding procedure Set_Owned_Actual 93 (Self : not null access UML_Template_Parameter_Substitution_Proxy; 94 To : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access); 95 -- Setter of TemplateParameterSubstitution::ownedActual. 96 -- 97 -- The actual parameter that is owned by this substitution. 98 99 overriding function Get_Template_Binding 100 (Self : not null access constant UML_Template_Parameter_Substitution_Proxy) 101 return AMF.UML.Template_Bindings.UML_Template_Binding_Access; 102 -- Getter of TemplateParameterSubstitution::templateBinding. 103 -- 104 -- The optional bindings from this element to templates. 105 106 overriding procedure Set_Template_Binding 107 (Self : not null access UML_Template_Parameter_Substitution_Proxy; 108 To : AMF.UML.Template_Bindings.UML_Template_Binding_Access); 109 -- Setter of TemplateParameterSubstitution::templateBinding. 110 -- 111 -- The optional bindings from this element to templates. 112 113 overriding procedure Enter_Element 114 (Self : not null access constant UML_Template_Parameter_Substitution_Proxy; 115 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 116 Control : in out AMF.Visitors.Traverse_Control); 117 -- Dispatch call to corresponding subprogram of visitor interface. 118 119 overriding procedure Leave_Element 120 (Self : not null access constant UML_Template_Parameter_Substitution_Proxy; 121 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 122 Control : in out AMF.Visitors.Traverse_Control); 123 -- Dispatch call to corresponding subprogram of visitor interface. 124 125 overriding procedure Visit_Element 126 (Self : not null access constant UML_Template_Parameter_Substitution_Proxy; 127 Iterator : in out AMF.Visitors.Abstract_Iterator'Class; 128 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 129 Control : in out AMF.Visitors.Traverse_Control); 130 -- Dispatch call to corresponding subprogram of iterator interface. 131 132end AMF.Internals.UML_Template_Parameter_Substitutions; 133