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: 2937 $ $Date: 2012-05-01 21:07:27 +0400 (Tue, 01 May 2012) $ 43------------------------------------------------------------------------------ 44with AMF.Internals.UML_Named_Elements; 45with AMF.UML.Collaboration_Uses; 46with AMF.UML.Collaborations; 47with AMF.UML.Dependencies.Collections; 48with AMF.UML.Named_Elements; 49with AMF.UML.Namespaces; 50with AMF.UML.Packages.Collections; 51with AMF.UML.String_Expressions; 52with AMF.Visitors; 53 54package AMF.Internals.UML_Collaboration_Uses is 55 56 type UML_Collaboration_Use_Proxy is 57 limited new AMF.Internals.UML_Named_Elements.UML_Named_Element_Proxy 58 and AMF.UML.Collaboration_Uses.UML_Collaboration_Use with null record; 59 60 overriding function Get_Role_Binding 61 (Self : not null access constant UML_Collaboration_Use_Proxy) 62 return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency; 63 -- Getter of CollaborationUse::roleBinding. 64 -- 65 -- A mapping between features of the collaboration type and features of 66 -- the owning classifier. This mapping indicates which connectable element 67 -- of the classifier plays which role(s) in the collaboration. A 68 -- connectable element may be bound to multiple roles in the same 69 -- collaboration use (that is, it may play multiple roles). 70 71 overriding function Get_Type 72 (Self : not null access constant UML_Collaboration_Use_Proxy) 73 return AMF.UML.Collaborations.UML_Collaboration_Access; 74 -- Getter of CollaborationUse::type. 75 -- 76 -- The collaboration which is used in this occurrence. The collaboration 77 -- defines the cooperation between its roles which are mapped to 78 -- properties of the classifier owning the collaboration use. 79 80 overriding procedure Set_Type 81 (Self : not null access UML_Collaboration_Use_Proxy; 82 To : AMF.UML.Collaborations.UML_Collaboration_Access); 83 -- Setter of CollaborationUse::type. 84 -- 85 -- The collaboration which is used in this occurrence. The collaboration 86 -- defines the cooperation between its roles which are mapped to 87 -- properties of the classifier owning the collaboration use. 88 89 overriding function Get_Client_Dependency 90 (Self : not null access constant UML_Collaboration_Use_Proxy) 91 return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency; 92 -- Getter of NamedElement::clientDependency. 93 -- 94 -- Indicates the dependencies that reference the client. 95 96 overriding function Get_Name_Expression 97 (Self : not null access constant UML_Collaboration_Use_Proxy) 98 return AMF.UML.String_Expressions.UML_String_Expression_Access; 99 -- Getter of NamedElement::nameExpression. 100 -- 101 -- The string expression used to define the name of this named element. 102 103 overriding procedure Set_Name_Expression 104 (Self : not null access UML_Collaboration_Use_Proxy; 105 To : AMF.UML.String_Expressions.UML_String_Expression_Access); 106 -- Setter of NamedElement::nameExpression. 107 -- 108 -- The string expression used to define the name of this named element. 109 110 overriding function Get_Namespace 111 (Self : not null access constant UML_Collaboration_Use_Proxy) 112 return AMF.UML.Namespaces.UML_Namespace_Access; 113 -- Getter of NamedElement::namespace. 114 -- 115 -- Specifies the namespace that owns the NamedElement. 116 117 overriding function Get_Qualified_Name 118 (Self : not null access constant UML_Collaboration_Use_Proxy) 119 return AMF.Optional_String; 120 -- Getter of NamedElement::qualifiedName. 121 -- 122 -- A name which allows the NamedElement to be identified within a 123 -- hierarchy of nested Namespaces. It is constructed from the names of the 124 -- containing namespaces starting at the root of the hierarchy and ending 125 -- with the name of the NamedElement itself. 126 127 overriding function All_Owning_Packages 128 (Self : not null access constant UML_Collaboration_Use_Proxy) 129 return AMF.UML.Packages.Collections.Set_Of_UML_Package; 130 -- Operation NamedElement::allOwningPackages. 131 -- 132 -- The query allOwningPackages() returns all the directly or indirectly 133 -- owning packages. 134 135 overriding function Is_Distinguishable_From 136 (Self : not null access constant UML_Collaboration_Use_Proxy; 137 N : AMF.UML.Named_Elements.UML_Named_Element_Access; 138 Ns : AMF.UML.Namespaces.UML_Namespace_Access) 139 return Boolean; 140 -- Operation NamedElement::isDistinguishableFrom. 141 -- 142 -- The query isDistinguishableFrom() determines whether two NamedElements 143 -- may logically co-exist within a Namespace. By default, two named 144 -- elements are distinguishable if (a) they have unrelated types or (b) 145 -- they have related types but different names. 146 147 overriding function Namespace 148 (Self : not null access constant UML_Collaboration_Use_Proxy) 149 return AMF.UML.Namespaces.UML_Namespace_Access; 150 -- Operation NamedElement::namespace. 151 -- 152 -- Missing derivation for NamedElement::/namespace : Namespace 153 154 overriding procedure Enter_Element 155 (Self : not null access constant UML_Collaboration_Use_Proxy; 156 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 157 Control : in out AMF.Visitors.Traverse_Control); 158 -- Dispatch call to corresponding subprogram of visitor interface. 159 160 overriding procedure Leave_Element 161 (Self : not null access constant UML_Collaboration_Use_Proxy; 162 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 163 Control : in out AMF.Visitors.Traverse_Control); 164 -- Dispatch call to corresponding subprogram of visitor interface. 165 166 overriding procedure Visit_Element 167 (Self : not null access constant UML_Collaboration_Use_Proxy; 168 Iterator : in out AMF.Visitors.Abstract_Iterator'Class; 169 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 170 Control : in out AMF.Visitors.Traverse_Control); 171 -- Dispatch call to corresponding subprogram of iterator interface. 172 173end AMF.Internals.UML_Collaboration_Uses; 174