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: 2714 $ $Date: 2012-03-24 10:29:08 +0400 (Sat, 24 Mar 2012) $ 43------------------------------------------------------------------------------ 44-- This file is generated, don't edit it. 45------------------------------------------------------------------------------ 46-- An extension end is used to tie an extension to a stereotype when 47-- extending a metaclass. 48-- 49-- The default multiplicity of an extension end is 0..1. 50------------------------------------------------------------------------------ 51with AMF.UML.Properties; 52limited with AMF.UML.Stereotypes; 53 54package AMF.UML.Extension_Ends is 55 56 pragma Preelaborate; 57 58 type UML_Extension_End is limited interface 59 and AMF.UML.Properties.UML_Property; 60 61 type UML_Extension_End_Access is 62 access all UML_Extension_End'Class; 63 for UML_Extension_End_Access'Storage_Size use 0; 64 65 overriding function Get_Lower 66 (Self : not null access constant UML_Extension_End) 67 return AMF.Optional_Integer is abstract; 68 -- Getter of ExtensionEnd::lower. 69 -- 70 -- This redefinition changes the default multiplicity of association ends, 71 -- since model elements are usually extended by 0 or 1 instance of the 72 -- extension stereotype. 73 74 overriding procedure Set_Lower 75 (Self : not null access UML_Extension_End; 76 To : AMF.Optional_Integer) is abstract; 77 -- Setter of ExtensionEnd::lower. 78 -- 79 -- This redefinition changes the default multiplicity of association ends, 80 -- since model elements are usually extended by 0 or 1 instance of the 81 -- extension stereotype. 82 83 not overriding function Get_Type 84 (Self : not null access constant UML_Extension_End) 85 return AMF.UML.Stereotypes.UML_Stereotype_Access is abstract; 86 -- Getter of ExtensionEnd::type. 87 -- 88 -- References the type of the ExtensionEnd. Note that this association 89 -- restricts the possible types of an ExtensionEnd to only be Stereotypes. 90 91 not overriding procedure Set_Type 92 (Self : not null access UML_Extension_End; 93 To : AMF.UML.Stereotypes.UML_Stereotype_Access) is abstract; 94 -- Setter of ExtensionEnd::type. 95 -- 96 -- References the type of the ExtensionEnd. Note that this association 97 -- restricts the possible types of an ExtensionEnd to only be Stereotypes. 98 99 overriding function Lower_Bound 100 (Self : not null access constant UML_Extension_End) 101 return AMF.Optional_Integer is abstract; 102 -- Operation ExtensionEnd::lowerBound. 103 -- 104 -- The query lowerBound() returns the lower bound of the multiplicity as 105 -- an Integer. This is a redefinition of the default lower bound, which 106 -- normally, for MultiplicityElements, evaluates to 1 if empty. 107 108end AMF.UML.Extension_Ends; 109