1------------------------------------------------------------------------------ 2-- -- 3-- Matreshka Project -- 4-- -- 5-- Ada Modeling Framework -- 6-- -- 7-- Runtime Library Component -- 8-- -- 9------------------------------------------------------------------------------ 10-- -- 11-- Copyright © 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: 2635 $ $Date: 2012-03-18 19:06:27 +0400 (Sun, 18 Mar 2012) $ 43------------------------------------------------------------------------------ 44-- This file is generated, don't edit it. 45------------------------------------------------------------------------------ 46with AMF.Internals.OCL_Elements; 47with AMF.OCL.Collection_Ranges; 48with AMF.OCL.Ocl_Expressions; 49with AMF.UML.Comments.Collections; 50with AMF.UML.Dependencies.Collections; 51with AMF.UML.Elements.Collections; 52with AMF.UML.Named_Elements; 53with AMF.UML.Namespaces.Collections; 54with AMF.UML.Packages.Collections; 55with AMF.UML.String_Expressions; 56with AMF.UML.Types; 57with AMF.Visitors; 58 59package AMF.Internals.OCL_Collection_Ranges is 60 61 type OCL_Collection_Range_Proxy is 62 limited new AMF.Internals.OCL_Elements.OCL_Element_Proxy 63 and AMF.OCL.Collection_Ranges.OCL_Collection_Range with null record; 64 65 overriding function Get_First 66 (Self : not null access constant OCL_Collection_Range_Proxy) 67 return AMF.OCL.Ocl_Expressions.OCL_Ocl_Expression_Access; 68 -- Getter of CollectionRange::first. 69 -- 70 71 overriding procedure Set_First 72 (Self : not null access OCL_Collection_Range_Proxy; 73 To : AMF.OCL.Ocl_Expressions.OCL_Ocl_Expression_Access); 74 -- Setter of CollectionRange::first. 75 -- 76 77 overriding function Get_Last 78 (Self : not null access constant OCL_Collection_Range_Proxy) 79 return AMF.OCL.Ocl_Expressions.OCL_Ocl_Expression_Access; 80 -- Getter of CollectionRange::last. 81 -- 82 83 overriding procedure Set_Last 84 (Self : not null access OCL_Collection_Range_Proxy; 85 To : AMF.OCL.Ocl_Expressions.OCL_Ocl_Expression_Access); 86 -- Setter of CollectionRange::last. 87 -- 88 89 overriding function Get_Type 90 (Self : not null access constant OCL_Collection_Range_Proxy) 91 return AMF.UML.Types.UML_Type_Access; 92 -- Getter of TypedElement::type. 93 -- 94 -- The type of the TypedElement. 95 -- This information is derived from the return result for this Operation. 96 97 overriding procedure Set_Type 98 (Self : not null access OCL_Collection_Range_Proxy; 99 To : AMF.UML.Types.UML_Type_Access); 100 -- Setter of TypedElement::type. 101 -- 102 -- The type of the TypedElement. 103 -- This information is derived from the return result for this Operation. 104 105 overriding function Get_Client_Dependency 106 (Self : not null access constant OCL_Collection_Range_Proxy) 107 return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency; 108 -- Getter of NamedElement::clientDependency. 109 -- 110 -- Indicates the dependencies that reference the client. 111 112 overriding function Get_Name 113 (Self : not null access constant OCL_Collection_Range_Proxy) 114 return AMF.Optional_String; 115 -- Getter of NamedElement::name. 116 -- 117 -- The name of the NamedElement. 118 119 overriding procedure Set_Name 120 (Self : not null access OCL_Collection_Range_Proxy; 121 To : AMF.Optional_String); 122 -- Setter of NamedElement::name. 123 -- 124 -- The name of the NamedElement. 125 126 overriding function Get_Name_Expression 127 (Self : not null access constant OCL_Collection_Range_Proxy) 128 return AMF.UML.String_Expressions.UML_String_Expression_Access; 129 -- Getter of NamedElement::nameExpression. 130 -- 131 -- The string expression used to define the name of this named element. 132 133 overriding procedure Set_Name_Expression 134 (Self : not null access OCL_Collection_Range_Proxy; 135 To : AMF.UML.String_Expressions.UML_String_Expression_Access); 136 -- Setter of NamedElement::nameExpression. 137 -- 138 -- The string expression used to define the name of this named element. 139 140 overriding function Get_Namespace 141 (Self : not null access constant OCL_Collection_Range_Proxy) 142 return AMF.UML.Namespaces.UML_Namespace_Access; 143 -- Getter of NamedElement::namespace. 144 -- 145 -- Specifies the namespace that owns the NamedElement. 146 147 overriding function Get_Qualified_Name 148 (Self : not null access constant OCL_Collection_Range_Proxy) 149 return AMF.Optional_String; 150 -- Getter of NamedElement::qualifiedName. 151 -- 152 -- A name which allows the NamedElement to be identified within a 153 -- hierarchy of nested Namespaces. It is constructed from the names of the 154 -- containing namespaces starting at the root of the hierarchy and ending 155 -- with the name of the NamedElement itself. 156 157 overriding function Get_Visibility 158 (Self : not null access constant OCL_Collection_Range_Proxy) 159 return AMF.UML.Optional_UML_Visibility_Kind; 160 -- Getter of NamedElement::visibility. 161 -- 162 -- Determines where the NamedElement appears within different Namespaces 163 -- within the overall model, and its accessibility. 164 165 overriding procedure Set_Visibility 166 (Self : not null access OCL_Collection_Range_Proxy; 167 To : AMF.UML.Optional_UML_Visibility_Kind); 168 -- Setter of NamedElement::visibility. 169 -- 170 -- Determines where the NamedElement appears within different Namespaces 171 -- within the overall model, and its accessibility. 172 173 overriding function Get_Owned_Comment 174 (Self : not null access constant OCL_Collection_Range_Proxy) 175 return AMF.UML.Comments.Collections.Set_Of_UML_Comment; 176 -- Getter of Element::ownedComment. 177 -- 178 -- The Comments owned by this element. 179 180 overriding function Get_Owned_Element 181 (Self : not null access constant OCL_Collection_Range_Proxy) 182 return AMF.UML.Elements.Collections.Set_Of_UML_Element; 183 -- Getter of Element::ownedElement. 184 -- 185 -- The Elements owned by this element. 186 187 overriding function Get_Owner 188 (Self : not null access constant OCL_Collection_Range_Proxy) 189 return AMF.UML.Elements.UML_Element_Access; 190 -- Getter of Element::owner. 191 -- 192 -- The Element that owns this element. 193 194 overriding function All_Namespaces 195 (Self : not null access constant OCL_Collection_Range_Proxy) 196 return AMF.UML.Namespaces.Collections.Ordered_Set_Of_UML_Namespace; 197 -- Operation NamedElement::allNamespaces. 198 -- 199 -- The query allNamespaces() gives the sequence of namespaces in which the 200 -- NamedElement is nested, working outwards. 201 202 overriding function All_Owning_Packages 203 (Self : not null access constant OCL_Collection_Range_Proxy) 204 return AMF.UML.Packages.Collections.Set_Of_UML_Package; 205 -- Operation NamedElement::allOwningPackages. 206 -- 207 -- The query allOwningPackages() returns all the directly or indirectly 208 -- owning packages. 209 210 overriding function Is_Distinguishable_From 211 (Self : not null access constant OCL_Collection_Range_Proxy; 212 N : AMF.UML.Named_Elements.UML_Named_Element_Access; 213 Ns : AMF.UML.Namespaces.UML_Namespace_Access) 214 return Boolean; 215 -- Operation NamedElement::isDistinguishableFrom. 216 -- 217 -- The query isDistinguishableFrom() determines whether two NamedElements 218 -- may logically co-exist within a Namespace. By default, two named 219 -- elements are distinguishable if (a) they have unrelated types or (b) 220 -- they have related types but different names. 221 222 overriding function Namespace 223 (Self : not null access constant OCL_Collection_Range_Proxy) 224 return AMF.UML.Namespaces.UML_Namespace_Access; 225 -- Operation NamedElement::namespace. 226 -- 227 -- Missing derivation for NamedElement::/namespace : Namespace 228 229 overriding function Qualified_Name 230 (Self : not null access constant OCL_Collection_Range_Proxy) 231 return League.Strings.Universal_String; 232 -- Operation NamedElement::qualifiedName. 233 -- 234 -- When there is a name, and all of the containing namespaces have a name, 235 -- the qualified name is constructed from the names of the containing 236 -- namespaces. 237 238 overriding function Separator 239 (Self : not null access constant OCL_Collection_Range_Proxy) 240 return League.Strings.Universal_String; 241 -- Operation NamedElement::separator. 242 -- 243 -- The query separator() gives the string that is used to separate names 244 -- when constructing a qualified name. 245 246 overriding function All_Owned_Elements 247 (Self : not null access constant OCL_Collection_Range_Proxy) 248 return AMF.UML.Elements.Collections.Set_Of_UML_Element; 249 -- Operation Element::allOwnedElements. 250 -- 251 -- The query allOwnedElements() gives all of the direct and indirect owned 252 -- elements of an element. 253 254 overriding function Must_Be_Owned 255 (Self : not null access constant OCL_Collection_Range_Proxy) 256 return Boolean; 257 -- Operation Element::mustBeOwned. 258 -- 259 -- The query mustBeOwned() indicates whether elements of this type must 260 -- have an owner. Subclasses of Element that do not require an owner must 261 -- override this operation. 262 263 overriding procedure Enter_Element 264 (Self : not null access constant OCL_Collection_Range_Proxy; 265 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 266 Control : in out AMF.Visitors.Traverse_Control); 267 268 overriding procedure Leave_Element 269 (Self : not null access constant OCL_Collection_Range_Proxy; 270 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 271 Control : in out AMF.Visitors.Traverse_Control); 272 273 overriding procedure Visit_Element 274 (Self : not null access constant OCL_Collection_Range_Proxy; 275 Iterator : in out AMF.Visitors.Abstract_Iterator'Class; 276 Visitor : in out AMF.Visitors.Abstract_Visitor'Class; 277 Control : in out AMF.Visitors.Traverse_Control); 278 279end AMF.Internals.OCL_Collection_Ranges; 280